| %global app_root %{_datadir}/%{name} |
| |
| Summary: Deltacloud REST API |
| Name: deltacloud-core |
| Version: 0.4.0 |
| Release: 4%{?dist} |
| Group: Development/Languages |
| License: ASL 2.0 and MIT |
| URL: http://deltacloud.apache.org/ |
| Source0: http://gems.rubyforge.org/gems/%{name}-%{version}.gem |
| Source1: deltacloudd-fedora |
| Source2: deltacloud-core.init |
| Source3: deltacloud-core-config |
| Requires: rubygems |
| Requires: ruby(abi) = 1.8 |
| Requires: rubygem(haml) |
| Requires: rubygem(sinatra) >= 1.0 |
| Requires: rubygem(rack) >= 1.1.0 |
| Requires: rubygem(thin) |
| Requires: rubygem(net-ssh) |
| Requires: rubygem(json) >= 1.4.0 |
| Requires: rubygem(rack-accept) |
| Requires: rubygem(nokogiri) |
| Requires(post): chkconfig |
| Requires(preun): chkconfig |
| Requires(preun): initscripts |
| Requires(postun): initscripts |
| BuildRequires: rubygems |
| BuildRequires: ruby(abi) = 1.8 |
| BuildRequires: rubygem(haml) |
| BuildRequires: rubygem(sinatra) >= 1.0 |
| BuildRequires: rubygem(nokogiri) |
| BuildRequires: rubygem(net-ssh) |
| BuildRequires: rubygem(aws) |
| BuildRequires: rubygem(rack-accept) |
| BuildRequires: rubygem(rake) >= 0.8.7 |
| BuildRequires: rubygem(rack) >= 1.1.0 |
| BuildRequires: rubygem(rack-test) >= 0.5.0 |
| BuildRequires: rubygem(rspec) >= 1.3.0 |
| BuildRequires: rubygem(json) >= 1.4.0 |
| BuildArch: noarch |
| Obsoletes: rubygem-deltacloud-core |
| |
| %description |
| The Deltacloud API is built as a service-based REST API. |
| You do not directly link a Deltacloud library into your program to use it. |
| Instead, a client speaks the Deltacloud API over HTTP to a server |
| which implements the REST interface. |
| |
| %package doc |
| Summary: Documentation for %{name} |
| Group: Documentation |
| Requires: %{name} = %{version}-%{release} |
| |
| %description doc |
| Documentation for %{name} |
| |
| %package all |
| Summary: Deltacloud Core with all drivers |
| Requires: %{name} = %{version}-%{release} |
| #Requires: %{name}-azure = %{version}-%{release} |
| Requires: %{name}-condor = %{version}-%{release} |
| Requires: %{name}-ec2 = %{version}-%{release} |
| Requires: %{name}-eucalyptus = %{version}-%{release} |
| Requires: %{name}-gogrid = %{version}-%{release} |
| Requires: %{name}-opennebula = %{version}-%{release} |
| Requires: %{name}-rackspace = %{version}-%{release} |
| Requires: %{name}-rimuhosting = %{version}-%{release} |
| Requires: %{name}-rhevm = %{version}-%{release} |
| Requires: %{name}-sbc = %{version}-%{release} |
| Requires: %{name}-terremark = %{version}-%{release} |
| Requires: %{name}-vsphere = %{version}-%{release} |
| |
| %description all |
| Deltacloud core with all available drivers |
| |
| # FIXME: Azure requires waz-blobs gem which is not yet included in Fedora repos |
| # |
| #% package azure |
| #Summary: Deltacloud Core for Azure |
| #Requires: %{name} = %{version}-%{release} |
| #Requires: rubygem(waz-blobs) |
| |
| #% description azure |
| #The azure sub-package brings in all dependencies necessary to use deltacloud |
| #core to connect to Azure. |
| |
| %package condor |
| Summary: Deltacloud Core for CondorCloud |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(uuidtools) |
| Requires: rubygem(rest-client) |
| Requires: condor >= 7.4.0 |
| Requires: condor-vm-gahp >= 7.4.0 |
| |
| %description condor |
| The condor sub-package brings in all dependencies necessary to use deltacloud core |
| to connect to CondorCloud. |
| |
| %package ec2 |
| Summary: Deltacloud Core for EC2 |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(aws) |
| |
| %description ec2 |
| The ec2 sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to EC2. |
| |
| %package eucalyptus |
| Summary: Deltacloud Core for Eucalyptus |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(aws) |
| |
| %description eucalyptus |
| The eucalyptus sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to EC2. |
| |
| %package gogrid |
| Summary: Deltacloud Core for GoGrid |
| Requires: %{name} = %{version}-%{release} |
| |
| %description gogrid |
| The gogrid sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to GoGrid. |
| |
| %package opennebula |
| Summary: Deltacloud Core for OpenNebula |
| Requires: %{name} = %{version}-%{release} |
| |
| %description opennebula |
| The opennebula sub-package brings in all dependencies necessary to use |
| deltacloud core to connect to OpenNebula. |
| |
| %package rackspace |
| Summary: Deltacloud Core for Rackspace |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(cloudfiles) |
| Requires: rubygem(cloudservers) |
| |
| %description rackspace |
| The rackspace sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to Rackspace. |
| |
| %package rhevm |
| Summary: Deltacloud Core for RHEV-M |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(rest-client) |
| |
| %description rhevm |
| The rhevm sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to RHEV-M. |
| |
| %package rimuhosting |
| Summary: Deltacloud Core for Rimuhosting |
| Requires: %{name} = %{version}-%{release} |
| |
| %description rimuhosting |
| The rimuhosting sub-package brings in all dependencies necessary to use |
| deltacloud core to connect to Rimuhosting. |
| |
| %package sbc |
| Summary: Deltacloud Core for SBC |
| Requires: %{name} = %{version}-%{release} |
| |
| %description sbc |
| The sbc sub-package brings in all dependencies necessary to use deltacloud core |
| to connect to SBC. |
| |
| %package terremark |
| Summary: Deltacloud Core for Terremark |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(fog) |
| Requires: rubygem(excon) |
| |
| %description terremark |
| The terremark sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to Terremark. |
| |
| %package vsphere |
| Summary: Deltacloud Core for vSphere |
| Requires: %{name} = %{version}-%{release} |
| Requires: rubygem(rbvmomi) |
| |
| %description vsphere |
| The vsphere sub-package brings in all dependencies necessary to use deltacloud |
| core to connect to VMware vSphere. |
| |
| %prep |
| %setup -q -c -T |
| gem unpack -V --target=%{_builddir} %{SOURCE0} |
| pushd %{_builddir}/%{name}-%{version} |
| popd |
| |
| %build |
| |
| %install |
| rm -rf %{buildroot} |
| mkdir -p %{buildroot}%{app_root} |
| mkdir -p %{buildroot}%{_initddir} |
| mkdir -p %{buildroot}%{_bindir} |
| mkdir -p %{buildroot}%{_sysconfdir}/sysconfig |
| cp -r %{_builddir}/%{name}-%{version}/* %{buildroot}%{app_root} |
| install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/deltacloudd |
| install -m 0755 %{SOURCE2} %{buildroot}%{_initddir}/%{name} |
| install -m 0655 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name} |
| find %{buildroot}%{app_root}/lib -type f | xargs chmod -x |
| chmod -x %{buildroot}%{_sysconfdir}/sysconfig/%{name} |
| chmod 0755 %{buildroot}%{_initddir}/%{name} |
| chmod 0755 %{buildroot}%{app_root}/bin/deltacloudd |
| |
| # temporarily remove Azure drivers until all dependencies will be pushed in to Fedora |
| rm -rf %{buildroot}%{app_root}/config/drivers/azure.yaml |
| |
| rdoc --op %{buildroot}%{_defaultdocdir}/%{name} |
| |
| mkdir -p %{buildroot}%{_localstatedir}/log/%{name} |
| |
| # the condor stuff is provided by the condor-cloud package; it really doesn't |
| # belong in deltacloud, but until it is removed from upstream we just manually |
| # delete it here |
| rm -rf %{buildroot}%{app_root}/support/condor |
| |
| rm -rf %{buildroot}%{app_root}/support/fedora |
| |
| %check |
| pushd %{buildroot}%{app_root} |
| rake mock:fixtures:clean |
| rake test:mock |
| popd |
| |
| %clean |
| |
| %post |
| # This adds the proper /etc/rc*.d links for the script |
| /sbin/chkconfig --add %{name} |
| |
| %preun |
| if [ $1 -eq 0 ] ; then |
| /sbin/service %{name} stop >/dev/null 2>&1 |
| /sbin/chkconfig --del %{name} |
| fi |
| |
| %postun |
| if [ "$1" -ge "1" ] ; then |
| /sbin/service %{name} condrestart >/dev/null 2>&1 || : |
| fi |
| |
| %files |
| %{_initddir}/%{name} |
| %{_bindir}/deltacloudd |
| %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
| %dir %{app_root}/ |
| %{app_root}/bin |
| %{app_root}/config.ru |
| %{app_root}/*.rb |
| %{app_root}/views |
| %{app_root}/lib |
| %dir %{app_root}/config/drivers |
| %{app_root}/config/drivers/mock.yaml |
| %dir %{app_root}/public |
| %{app_root}/public/images |
| %{app_root}/public/stylesheets |
| %{app_root}/public/favicon.ico |
| %doc %{app_root}/DISCLAIMER |
| %doc %{app_root}/NOTICE |
| %doc %{app_root}/LICENSE |
| # MIT |
| %{app_root}/public/javascripts |
| %dir %attr(0755, nobody, nobody) %{_localstatedir}/log/%{name} |
| |
| %files doc |
| %{_defaultdocdir}/%{name} |
| %{app_root}/tests |
| %{app_root}/%{name}.gemspec |
| %{app_root}/Rakefile |
| |
| %files all |
| |
| #%files azure |
| |
| %files condor |
| %{app_root}/config/drivers/condor.yaml |
| %{app_root}/config/condor.yaml |
| %{app_root}/config/addresses.xml |
| |
| %files ec2 |
| %{app_root}/config/drivers/ec2.yaml |
| |
| %files eucalyptus |
| %{app_root}/config/drivers/eucalyptus.yaml |
| |
| %files gogrid |
| %{app_root}/config/drivers/gogrid.yaml |
| |
| %files opennebula |
| %{app_root}/config/drivers/opennebula.yaml |
| |
| %files rackspace |
| %{app_root}/config/drivers/rackspace.yaml |
| |
| %files rhevm |
| %{app_root}/config/drivers/rhevm.yaml |
| |
| %files rimuhosting |
| %{app_root}/config/drivers/rimuhosting.yaml |
| |
| %files sbc |
| %{app_root}/config/drivers/sbc.yaml |
| |
| %files terremark |
| %{app_root}/config/drivers/terremark.yaml |
| |
| %files vsphere |
| %{app_root}/config/drivers/vsphere.yaml |
| |
| %changelog |
| * Mon Jul 26 2011 Michal Fojtik <mfojtik@redhat.com> - 0.4.0-0.1.git |
| - Deltacloud core GIT build |
| |
| * Mon Jul 11 2011 Michal Fojtik <mfojtik@redhat.com> - 0.4.0-1 |
| - Version bump to 0.4.0 |
| - Added CondorCloud driver |
| |
| * Mon Jul 11 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-11 |
| - Added virtual package with all drivers |
| |
| * Fri Jun 7 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-10 |
| - Added patch to handle long usernames |
| |
| * Fri Jun 3 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-9 |
| - Removed Azure and Terremark driver because of unsatisfied dependencies |
| |
| * Tue May 31 2011 Chris Lalancette <clalance@redhat.com> - 0.3.0-8 |
| - Create sub-packages to bring in dependencies |
| |
| * Tue May 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-7 |
| - Added default config file in /etc/sysconfig/deltacloud-core |
| |
| * Tue May 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-6 |
| - Updated init.d script to match Fedora Guidelines |
| |
| * Fri May 20 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-5 |
| - Obsoleted rubygem-deltacloud-core |
| |
| * Wed May 11 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-4 |
| - Fixed memory calculation for RHEV-M (client) |
| |
| * Wed May 11 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-3 |
| - Fixed loadbalancer bug |
| |
| * Thu May 5 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-2 |
| - Fixed documentation generation |
| - Replaced moving with copying |
| - Removed support folder from doc subpackage |
| |
| * Fri Apr 29 2011 Michal Fojtik <mfojtik@redhat.com> - 0.3.0-1 |
| - Version bump |
| |
| * Tue Mar 15 2011 Michal Fojtik <mfojtik@redhat.com> - 0.2.0-4 |
| - Added missing runtime dependencies |
| |
| * Mon Jan 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.2.0-3 |
| - Removed cache and specification |
| - Added Sinatra to build dependecies |
| |
| * Mon Jan 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.2.0-2 |
| - Moved application to app_root (https://fedoraproject.org/wiki/Packaging_talk:Ruby#Applications) |
| |
| * Mon Jan 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.2.0-1 |
| - Initial package |