From ed18ac1ceb424ab658e65b318029afa3d175c5b1 Mon Sep 17 00:00:00 2001 From: Ian McLeod Date: Oct 13 2011 20:58:17 +0000 Subject: Update for test/scratch build of 0.7.1 candidate --- diff --git a/imagefactory.spec b/imagefactory.spec index bf9766a..30fd600 100644 --- a/imagefactory.spec +++ b/imagefactory.spec @@ -1,12 +1,11 @@ -Summary: Image Factory system image generation tool +Summary: System image generation tool Name: imagefactory -Version: 0.7.0 +Version: 0.7.0_4_g4897b98 Release: 1%{?dist} -Source0: %{name}-%{version}.tar.gz -License: GPLv2 -Group: Development/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -Url: http://www.aeolusproject.org/imagefactory.html +Source0: http://repos.fedorapeople.org/repos/aeolus/imagefactory/%{version}/tarball/%{name}-%{version}.tar.gz +License: ASL 2.0 +Group: Applications/System +URL: http://www.aeolusproject.org/imagefactory.html BuildArch: noarch Requires: oz >= 0.7.0 Requires: euca2ools @@ -24,7 +23,10 @@ Requires: VMDKstream Requires: python-suds >= 0.4.1 Requires: python-paste-deploy Requires: python-oauth2 -BuildRequires: python +Requires(post): chkconfig +Requires(preun): chkconfig +# This is for /sbin/service +Requires(preun): initscripts BuildRequires: python-setuptools %description @@ -32,41 +34,71 @@ imagefactory is a daemon that listens for build requests via QMF. When a build request is received, imagefactory will build the requested image for the requested target. +%package jeosconf-ec2-fedora +Summary: Configuration for JEOS images for EC2 +License: ASL 2.0 +Requires: %{name} = %{version}-%{release} + +%description jeosconf-ec2-fedora +The configuration file for Fedora EC2 JEOS images. + +%package jeosconf-ec2-rhel +Summary: Configuration for JEOS images for EC2 +License: ASL 2.0 +Requires: %{name} = %{version}-%{release} + +%description jeosconf-ec2-rhel +The configuration file for Fedora EC2 JEOS images. + %prep -%setup -n %{name}-%{version} +%setup -q %build python setup.py build %install -%{__rm} -rf $RPM_BUILD_ROOT -python setup.py install -O1 --root=$RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/imagefactory/jeos_images -mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/imagefactory/images -%clean -rm -rf $RPM_BUILD_ROOT +python setup.py install -O1 --root=%{buildroot} --skip-build + +mkdir -p %{buildroot}/%{_sysconfdir}/imagefactory/jeos_images +mkdir -p %{buildroot}/%{_localstatedir}/lib/imagefactory/images -%postun -/sbin/service imagefactory condrestart > /dev/null 2>&1 || : +sed -i '/\/usr\/bin\/env python/d' %{buildroot}/%{python_sitelib}/imgfac/*.py + +cp conf/ec2_fedora_jeos_03_OCT_2011.conf %{buildroot}/%{_sysconfdir}/imagefactory/jeos_images +cp conf/ec2_rhel_jeos_03_OCT_2011.conf %{buildroot}/%{_sysconfdir}/imagefactory/jeos_images + +%post +/sbin/chkconfig --add %{name} + +%preun +if [ $1 = 0 ] ; then + /sbin/service %{name} stop >/dev/null 2>&1 + /sbin/chkconfig --del %{name} +fi %files -%defattr(-,root,root,-) -%doc COPYING version.txt -%{_initrddir}/imagefactory +%doc COPYING +%{_initddir}/imagefactory %config(noreplace) %{_sysconfdir}/imagefactory/imagefactory.conf %dir %attr(0755, root, root) %{_sysconfdir}/pki/imagefactory/ %dir %attr(0755, root, root) %{_sysconfdir}/imagefactory/jeos_images/ %dir %attr(0755, root, root) %{_localstatedir}/lib/imagefactory/images -%{_sysconfdir}/pki/imagefactory/cert-ec2.pem +%config %{_sysconfdir}/pki/imagefactory/cert-ec2.pem %{python_sitelib}/imgfac %{python_sitelib}/imagefactory-*.egg-info %{_bindir}/imagefactory %{_mandir}/man1/* +%files jeosconf-ec2-fedora +%{_sysconfdir}/imagefactory/jeos_images/ec2_fedora_jeos_03_OCT_2011.conf + +%files jeosconf-ec2-rhel +%{_sysconfdir}/imagefactory/jeos_images/ec2_rhel_jeos_03_OCT_2011.conf + %changelog * Thu Sep 15 2011 Ian McLeod - 0.6.1 - Update Oz requirement to 0.7.0 or later for new target-specific package config -- Update SPEC file to restart service after an install +- Update SPEC file to restart service after an install * Mon Apr 04 2011 Chris Lalancette - 0.1.6-1 - Initial spec file. diff --git a/sources b/sources index 4e6b5ea..ad1e706 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dd16ae1d0a210a419735a2a0fc66ab4c imagefactory-0.7.0.tar.gz +cf661b706d9aa65cfc4261b0c1674772 imagefactory-0.7.0_4_g4897b98.tar.gz