5a8c851
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
5a8c851
5a8c851
Summary: Library and utilities for automated guest OS installs
5a8c851
Name: oz
98b8ec9
Version: 0.10.0
a84f400
Release: 1%{?dist}
5a8c851
License: LGPLv2
5a8c851
Group: Development/Libraries
5a8c851
URL: http://aeolusproject.org/oz.html
Chris Lalancette a3636f0
Source0: http://repos.fedorapeople.org/repos/aeolus/oz/%{version}/tarball/%{name}-%{version}.tar.gz
5a8c851
BuildArch: noarch
5a8c851
Requires: python >= 2.5
98b8ec9
Requires: python-libguestfs >= 1.18
5a8c851
Requires: libxml2-python
98b8ec9
Requires: libvirt-python >= 0.9.7
5a8c851
# in theory, oz doesn't really require libvirtd to be local to operate
5a8c851
# properly.  However, because of the libguestfs manipulations, in practice
5a8c851
# it really does.  Make it depend on libvirt (so we get libvirtd) for now,
5a8c851
# unless/until we are able to make it really be remote.
98b8ec9
Requires: libvirt-daemon-kvm
98b8ec9
Requires: libvirt-daemon-qemu
5a8c851
Requires: python-pycurl
a84f400
Requires: genisoimage
5a8c851
Requires: mtools
5a8c851
Requires: python-uuid
Chris Lalancette 0b8450c
Requires: openssh-clients
5a8c851
Requires: m2crypto
5a8c851
Requires: pyparted
5a8c851
5a8c851
BuildRequires: python
5a8c851
5a8c851
%description
5a8c851
Oz is a set of libraries and utilities for doing automated guest OS
5a8c851
installations, with minimal input from the user.
5a8c851
5a8c851
%prep
Chris Lalancette 5e98aaf
%setup -q
5a8c851
5a8c851
%build
5a8c851
python setup.py build
5a8c851
5a8c851
%install
Chris Lalancette 5e98aaf
python setup.py install --root=$RPM_BUILD_ROOT --skip-build
5a8c851
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isocontent/
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isos/
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppycontent/
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppies/
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/icicletmp/
Chris Lalancette a3636f0
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/jeos/
Chris Lalancette b7028c0
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/kernels/
98b8ec9
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/screenshots/
5a8c851
5a8c851
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/oz
Chris Lalancette 5e98aaf
cp oz.cfg $RPM_BUILD_ROOT%{_sysconfdir}/oz
5a8c851
5a8c851
%post
5a8c851
if [ ! -f %{_sysconfdir}/oz/id_rsa-icicle-gen ]; then
Chris Lalancette 5e98aaf
   ssh-keygen -t rsa -b 2048 -N "" -f %{_sysconfdir}/oz/id_rsa-icicle-gen >& /dev/null
5a8c851
fi
5a8c851
5a8c851
%files
a84f400
%doc README COPYING examples docs
5a8c851
%dir %attr(0755, root, root) %{_sysconfdir}/oz/
5a8c851
%config(noreplace) %{_sysconfdir}/oz/oz.cfg
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isocontent/
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isos/
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppycontent/
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppies/
5a8c851
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/icicletmp/
Chris Lalancette a3636f0
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/jeos/
Chris Lalancette b7028c0
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/kernels/
98b8ec9
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/screenshots/
Chris Lalancette 5e98aaf
%{python_sitelib}/oz
5a8c851
%{_bindir}/oz-install
5a8c851
%{_bindir}/oz-generate-icicle
5a8c851
%{_bindir}/oz-customize
5a8c851
%{_bindir}/oz-cleanup-cache
5a8c851
%{python_sitelib}/oz-*.egg-info
5a8c851
%{_mandir}/man1/*
5a8c851
5a8c851
5a8c851
%changelog
98b8ec9
* Mon Mar 18 2013 Chris Lalancette <clalancette@gmail.com> - 0.10.0-1
98b8ec9
- Update to release 0.10.0
98b8ec9
7fcb911
* Sat Aug 18 2012 Chris Lalancette <clalancette@gmail.com> - 0.9.0-1
7fcb911
- Update to release 0.9.0
7fcb911
f886734
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
f886734
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f886734
a84f400
* Mon May 14 2012 Pádraig Brady <P@draigBrady.com> - 0.8.0-1
a84f400
- Update to release 0.8.0
a84f400
5a8c851
* Tue Jul 05 2011 Pádraig Brady <P@draigBrady.com> - 0.5.0-2
5a8c851
- Adjust package as per updated Fedora standards
5a8c851
5a8c851
* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-1
5a8c851
- Release 0.5.0
5a8c851
5a8c851
* Wed Jun 20 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-4
5a8c851
- Include examples/.
5a8c851
5a8c851
* Wed Jun 15 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-3
5a8c851
- Address rpmlint issues.
5a8c851
5a8c851
* Fri Jun 10 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-2
5a8c851
- Change to noarch.
5a8c851
5a8c851
* Tue May 24 2011 Chris Lalancette <clalance@redhat.com> - 0.4.0-1
5a8c851
- Release 0.4.0.
5a8c851
5a8c851
* Wed Mar 30 2011 Chris Lalancette <clalance@redhat.com> - 0.3.0-1
5a8c851
- Release 0.3.0.
5a8c851
5a8c851
* Wed Mar 16 2011 Chris Lalancette <clalance@redhat.com> - 0.2.0-1
5a8c851
- Release 0.2.0.
5a8c851
5a8c851
* Fri Feb  3 2011 Chris Lalancette <clalance@redhat.com> - 0.1.0-1
5a8c851
- Initial public release of Oz.
5a8c851
5a8c851
* Wed Nov  3 2010 Chris Lalancette <clalance@redhat.com> - 0.0.4-1
5a8c851
- Initial build.
5a8c851