%global gem_name stickshift-node # Conditionally set required macros for distros without rubygems-devel This can # be removed once https://bugzilla.redhat.com/show_bug.cgi?id=788001 is # resolved. %{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)} %{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}} # Used for openshift.com only default to False %global hosted 0 %global appdir %{_localstatedir}/lib/stickshift Summary: Cloud Development Node Name: rubygem-%{gem_name} Version: 0.15.1 Release: 2%{?dist} Group: Development/Languages License: ASL 2.0 URL: http://openshift.redhat.com Source0: rubygem-%{gemname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: rubygems Requires: rubygem(json) Requires: rubygem(parseconfig) Requires: rubygem(stickshift-common) #Requires: rubygem(mocha) Requires: rubygem(rspec) #Requires: rubygem(rcov) Requires: python %if %{hosted} Requires: mercurial %endif BuildRequires: ruby-devel %if 0%{?rhel} == 6 Requires: ruby(abi) >= 1.8 BuildRequires: rubygems %else Requires: ruby(abi) >= 1.9 BuildRequires: rubygems-devel %endif BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %version %description This contains the Cloud Development Node packaged as a rubygem. %prep %setup -q %build %install rm -rf %{buildroot} #mkdir -p %{buildroot}%{_bindir}/ss mkdir -p %{buildroot}%{_sysconfdir}/stickshift mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{ruby_sitelib} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{appdir} mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d mkdir -p %{buildroot}%{appdir}/.httpd.d ln -sf %{appdir}/.httpd.d %{buildroot}%{_sysconfdir}/httpd/conf.d/stickshift # Build and install into the rubygem structure gem build %{gem_name}.gemspec gem install --local --install-dir %{buildroot}%{gem_dir} --force %{gem_name}-%{version}.gem # Move the gem binaries to the standard filesystem location mv %{buildroot}%{gem_dir}/bin/* %{buildroot}%{_bindir} rm -rf %{buildroot}%{gem_dir}/bin # Move the gem configs to the standard filesystem location mv %{buildroot}%{gem_instdir}/conf/* %{buildroot}%{_sysconfdir}/stickshift #move the shell binaries into proper location mv %{buildroot}%{gem_instdir}/misc/bin/* %{buildroot}%{_bindir}/ rm -rf %{buildroot}%{gem_instdir}/misc mv httpd/000001_stickshift_node.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE COPYRIGHT %{_bindir}/* %{gem_dir}/doc/%{gem_name}-%{version} %{gem_dir}/gems/%{gem_name}-%{version} %{gem_dir}/cache/%{gem_name}-%{version}.gem %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec %config(noreplace) %{_sysconfdir}/stickshift %config(noreplace) %attr(0750,-,-) %{_sysconfdir}/httpd/conf.d/stickshift %config(noreplace) %{_sysconfdir}/httpd/conf.d/000001_stickshift_node.conf %attr(0755,-,-) %{_var}/lib/stickshift %post echo "/usr/bin/ss-trap-user" >> /etc/shells restorecon -r %{_var}/lib/stickshift # copying this file in the post hook so that this file can be replaced by rhc-node # copy this file only if it doesn't already exist if ! [ -f /etc/stickshift/resource_limits.conf ]; then cp -f /etc/stickshift/resource_limits.template /etc/stickshift/resource_limits.conf fi %changelog * Tue Aug 14 2012 Adam Miller 0.15.1-2 - Refactoring based on feedback from Fedora Package Review BZ#840037 * Thu Aug 02 2012 Adam Miller 0.15.1-1 - Updating gem versions (admiller@redhat.com) - bump_minor_versions for sprint 16 (admiller@redhat.com) - setup broker/nod script fixes for static IP and custom ethernet devices add support for configuring different domain suffix (other than example.com) Fixing dependency to qpid library (causes fedora package conflict) Make livecd start faster by doing static configuration during cd build rather than startup Fixes some selinux policy errors which prevented scaled apps from starting (kraman@gmail.com) * Fri Jul 27 2012 Dan McPherson 0.14.6-1 - Updating gem versions (dmcphers@redhat.com) - Merge pull request #291 from mrunalp/bugs/843759 (rmillner@redhat.com) - Bug 843757 (dmcphers@redhat.com) - Fix for BZ843759 (mpatel@redhat.com) * Thu Jul 26 2012 Dan McPherson 0.14.5-1 - Updating gem versions (dmcphers@redhat.com) - bz841157 (bdecoste@gmail.com) - The initialize_homedir only deals with the contents of the home directory; move the unobfuscated function up to create where it belongs so it can be unit tested properly. Using an iterator across the directory contents rather than extracting the whole dir as an array is more efficient on nodes with thousands of gears. (rmillner@redhat.com) - US2439: Add support for getting/setting quota. (mpatel@madagascar.(none)) * Tue Jul 24 2012 Adam Miller 0.14.4-1 - Updating gem versions (admiller@redhat.com) - Add pre and post destroy calls on gear destruction and move unobfuscate and stickshift-proxy out of cartridge hooks and into node. (rmillner@redhat.com) * Fri Jul 20 2012 Adam Miller 0.14.3-1 - Updating gem versions (admiller@redhat.com) - fix for bug#841407 (rchopra@redhat.com) * Thu Jul 19 2012 Adam Miller 0.14.2-1 - Updating gem versions (admiller@redhat.com) - bz 831062 (bdecoste@gmail.com) * Wed Jul 11 2012 Adam Miller 0.14.1-1 - Updating gem versions (admiller@redhat.com) - bump_minor_versions for sprint 15 (admiller@redhat.com) * Thu Jul 05 2012 Adam Miller 0.13.6-1 - Updating gem versions (admiller@redhat.com) * Tue Jul 03 2012 Adam Miller 0.13.5-1 - Updating gem versions (admiller@redhat.com) * Tue Jul 03 2012 Adam Miller 0.13.4-1 - Updating gem versions (admiller@redhat.com) - MCollective updates - Added mcollective-qpid plugin - Added mcollective- gearchanger plugin - Added mcollective agent and facter plugins - Added option to support ignoring node profile - Added systemu dependency for mcollective-client (kraman@gmail.com) * Mon Jul 02 2012 Adam Miller 0.13.3-1 - Updating gem versions (admiller@redhat.com) - Revert "Updating gem versions" (dmcphers@redhat.com) - Updating gem versions (admiller@redhat.com) * Wed Jun 20 2012 Adam Miller 0.13.2-1 - Updating gem versions (admiller@redhat.com) * Wed Jun 20 2012 Adam Miller 0.13.1-1 - Updating gem versions (admiller@redhat.com) - bump_minor_versions for sprint 14 (admiller@redhat.com) * Tue Jun 19 2012 Adam Miller 0.12.7-1 - Updating gem versions (admiller@redhat.com) - bug 800188 (dmcphers@redhat.com) * Tue Jun 12 2012 Adam Miller 0.12.6-1 - Updating gem versions (admiller@redhat.com) - Merge branch 'master' of github.com:openshift/crankcase (mmcgrath@redhat.com) - pull in mercurial as a dep (mmcgrath@redhat.com) * Tue Jun 12 2012 Adam Miller 0.12.5-1 - Updating gem versions (admiller@redhat.com) - Strip out the unnecessary gems from rcov reports and focus it on just the OpenShift code. (rmillner@redhat.com) * Fri Jun 08 2012 Adam Miller 0.12.4-1 - Updating gem versions (admiller@redhat.com) * Fri Jun 08 2012 Adam Miller 0.12.3-1 - Updating gem versions (admiller@redhat.com) - Updated gem info for rails 3.0.13 (admiller@redhat.com) * Mon Jun 04 2012 Adam Miller 0.12.2-1 - Updating gem versions (admiller@redhat.com) - fixes to cucumber tests to run under OpenShift Origin (abhgupta@redhat.com) * Fri Jun 01 2012 Adam Miller 0.12.1-1 - Updating gem versions (admiller@redhat.com) - bumping spec versions (admiller@redhat.com) * Wed May 30 2012 Adam Miller 0.11.11-1 - Updating gem versions (admiller@redhat.com) - Set debugging output to false (jhonce@redhat.com) - Rename ~/app to ~/app-root to avoid application name conflicts and additional links and fixes around testing US2109. (jhonce@redhat.com) * Tue May 29 2012 Adam Miller 0.11.10-1 - Updating gem versions (admiller@redhat.com) - re-introduce ~/data in typeless gears (jhonce@redhat.com) * Fri May 25 2012 Adam Miller 0.11.9-1 - Updating gem versions (admiller@redhat.com) * Thu May 24 2012 Adam Miller 0.11.8-1 - Updating gem versions (admiller@redhat.com) - Bug 824662 (dmcphers@redhat.com) * Thu May 24 2012 Adam Miller 0.11.7-1 - Updating gem versions (admiller@redhat.com) - Fix up unix_user unit test. (ramr@redhat.com) - Fixup unit test parameters to match up call sign. (ramr@redhat.com) - Revert "Broke the build, the tests have not been update to reflect this changeset." (ramr@redhat.com) - Broke the build, the tests have not been update to reflect this changeset. (admiller@redhat.com) * Wed May 23 2012 Adam Miller 0.11.6-1 - Updating gem versions (admiller@redhat.com) - [mpatel+ramr] Fix issues where app_name is not the same as gear_name - fixup for typeless gears. (ramr@redhat.com) * Wed May 23 2012 Dan McPherson 0.11.5-1 - Updating gem versions (dmcphers@redhat.com) - .state file in new location (jhonce@redhat.com) * Tue May 22 2012 Dan McPherson 0.11.4-1 - Updating gem versions (dmcphers@redhat.com) - Merge branch 'master' of github.com:openshift/crankcase (rmillner@redhat.com) - Merge branch 'master' into US2109 (rmillner@redhat.com) - clean up comments etc (jhonce@redhat.com) - Automatic commit of package [rubygem-stickshift-node] release [0.11.2-1]. (admiller@redhat.com) - Updating gem versions (admiller@redhat.com) - Merge branch 'master' into US2109 (jhonce@redhat.com) - Updating gem versions (admiller@redhat.com) - Merge branch 'master' into US2109 (ramr@redhat.com) - Bug fixes to get tests running - mysql and python fixes, delete user dirs otherwise rhc-accept-node fails and tests fail. (ramr@redhat.com) - Merge branch 'master' into US2109 (ramr@redhat.com) - Don't create gear dir (symlink for short term to the 'framework') and don't set the gear ctl script in unix user. (ramr@redhat.com) - Change to use cartridge instance dir in lieu of app_dir and correct use of app and $gear-name directories. (ramr@redhat.com) - Updated code to meet coding standards (jhonce@redhat.com) - Updated documentation after refactor. Corrected merge (jhonce@redhat.com) - Merge branch 'master' into US2109 (ramr@redhat.com) - Breakout HTTP configuration/proxy (jhonce@redhat.com) - Refactor unix_user model to create gear TA1975 (jhonce@redhat.com) * Tue May 22 2012 Adam Miller 0.11.3-1 - Updating gem versions (admiller@redhat.com) - Remove mongodb duplicate entry. (mpatel@redhat.com) * Thu May 17 2012 Adam Miller 0.11.2-1 - Updating gem versions (admiller@redhat.com) * Thu May 10 2012 Adam Miller 0.11.1-1 - Updating gem versions (admiller@redhat.com) - bumping spec versions (admiller@redhat.com) * Mon May 07 2012 Adam Miller 0.10.4-1 - Updating gem versions (admiller@redhat.com) - Merge pull request #24 from rmillner/master (dmcphers@redhat.com) - Merge pull request #25 from abhgupta/abhgupta-dev (kraman@gmail.com) - additional changes for showing gear states in gear_groups rest api (abhgupta@redhat.com) - Add rcov testing to stickshift-node via "rake rcov". (rmillner@redhat.com) - adding gear state to gear_groups rest api (abhgupta@redhat.com) - Merge pull request #18 from kraman/dev/kraman/bug/814444 (dmcphers@redhat.com) - Adding a seperate message for errors returned by cartridge when trying to add them. Fixing CLIENT_RESULT error in node Removing tmp editor file (kraman@gmail.com) * Mon May 07 2012 Adam Miller 0.10.3-1 - Updating gem versions (admiller@redhat.com) - Fix to use Open4 -- merge from previous checkin changed it to Open5. (ramr@redhat.com) - fixing merge conflicts wrt code cleanup (mmcgrath@redhat.com) - Moved logic up from scripts to library. (mpatel@redhat.com) - Merge pull request #9 from drnic/add_env_var (dan.mcpherson@gmail.com) - exit status of connectors should be passed along properly (rchopra@redhat.com) - pass the two uuid fields through to StickShift::ApplicationContainer (drnicwilliams@gmail.com) - corrected syntax error (mmcgrath@redhat.com) - syle changes (mmcgrath@redhat.com) - better coding syle and comments (mmcgrath@redhat.com) - removing tabs, they are the devil (mmcgrath@redhat.com) - more code style cleanup and comments (mmcgrath@redhat.com) - style cleanup and comments (mmcgrath@redhat.com) - Added style cleanup, comments (mmcgrath@redhat.com) - Corrected some ruby style, added comments (mmcgrath@redhat.com) - Better ruby style and commenting (mmcgrath@redhat.com) - added better ruby styling (mmcgrath@redhat.com) - Added better styling and help menu (mmcgrath@redhat.com) - update gem versions (dmcphers@redhat.com) * Fri Apr 27 2012 Krishna Raman 0.10.2-1 - Updating login prompt script to work with mongo and mysql shell (kraman@gmail.com) * Thu Apr 26 2012 Adam Miller 0.10.1-1 - Updating gem versions (admiller@redhat.com) - bumping spec versions (admiller@redhat.com) * Tue Apr 24 2012 Adam Miller 0.9.9-1 - Updating gem versions (admiller@redhat.com) * Mon Apr 23 2012 Adam Miller 0.9.8-1 - Updating gem versions (admiller@redhat.com) * Sat Apr 21 2012 Dan McPherson 0.9.7-1 - Updating gem versions (dmcphers@redhat.com) - cleaning up spec (dmcphers@redhat.com) * Sat Apr 21 2012 Dan McPherson 0.9.6-1 - Updating gem versions (dmcphers@redhat.com) - forcing builds (dmcphers@redhat.com)