[imagefactory/f16] pull in 0.7.1 update containing JEOS subpackages
Ian McLeod
imcleod at fedoraproject.org
Fri Oct 14 13:56:39 UTC 2011
commit 1a744f55389f591e7a8b19474265fd170f7026c6
Author: Ian McLeod <imcleod at redhat.com>
Date: Fri Oct 14 08:56:36 2011 -0500
pull in 0.7.1 update containing JEOS subpackages
imagefactory.spec | 79 ++++++++++++++++++++++++++++++++++++++---------------
sources | 2 +-
2 files changed, 58 insertions(+), 23 deletions(-)
---
diff --git a/imagefactory.spec b/imagefactory.spec
index bf9766a..9e42e56 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.1
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,74 @@ 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
+
+sed -i '/\/usr\/bin\/env python/d' %{buildroot}/%{python_sitelib}/imgfac/*.py
-%postun
-/sbin/service imagefactory condrestart > /dev/null 2>&1 || :
+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 Oct 13 2011 Ian McLeod <imcleod at redhat.com> - 0.7.1-1
+- Incorporate subpackage improvement from clalance at redhat.com
+
* Thu Sep 15 2011 Ian McLeod <imcleod at redhat.com> - 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 <clalance at redhat.com> - 0.1.6-1
- Initial spec file.
diff --git a/sources b/sources
index 4e6b5ea..0eb7989 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dd16ae1d0a210a419735a2a0fc66ab4c imagefactory-0.7.0.tar.gz
+91efdd9f2ccae896dab4129461501b04 imagefactory-0.7.1.tar.gz
More information about the scm-commits
mailing list