Summary: System image generation tool Name: imagefactory Version: 0.7.1 Release: 2%{?dist} 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 Requires: python-qmf Requires: python-pycurl Requires: python-libguestfs Requires: python-zope-interface Requires: python-boto Requires: libxml2-python Requires: python-httplib2 Requires: python-argparse Requires: python-cloudservers Requires: python-psphere Requires: VMDKstream Requires: python-suds >= 0.4.1 Requires: python-paste-deploy Requires: python-oauth2 Requires(post): chkconfig Requires(preun): chkconfig # This is for /sbin/service Requires(preun): initscripts BuildRequires: python-setuptools %description 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 -q %build python setup.py build %install 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 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 %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 %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 * Fri Jan 13 2012 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Oct 13 2011 Ian McLeod - 0.7.1-1 - Incorporate subpackage improvement from clalance@redhat.com * 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 * Mon Apr 04 2011 Chris Lalancette - 0.1.6-1 - Initial spec file.