84cb583
Summary: Library and utilities for automated guest OS installs
84cb583
Name: oz
43c7122
Version: 0.9.0
a84f400
Release: 1%{?dist}
84cb583
License: LGPLv2
84cb583
Group: Development/Libraries
84cb583
URL: http://aeolusproject.org/oz.html
Chris Lalancette a3636f0
Source0: http://repos.fedorapeople.org/repos/aeolus/oz/%{version}/tarball/%{name}-%{version}.tar.gz
84cb583
BuildArch: noarch
84cb583
Requires: python >= 2.5
84cb583
Requires: gvnc-tools
84cb583
Requires: python-libguestfs
84cb583
Requires: libxml2-python
84cb583
Requires: libvirt-python
84cb583
# in theory, oz doesn't really require libvirtd to be local to operate
84cb583
# properly.  However, because of the libguestfs manipulations, in practice
84cb583
# it really does.  Make it depend on libvirt (so we get libvirtd) for now,
84cb583
# unless/until we are able to make it really be remote.
84cb583
Requires: libvirt
84cb583
Requires: python-pycurl
a84f400
Requires: genisoimage
84cb583
Requires: numpy
84cb583
Requires: mtools
84cb583
Requires: python-uuid
Chris Lalancette 0b8450c
Requires: openssh-clients
84cb583
Requires: m2crypto
84cb583
Requires: pyparted
84cb583
84cb583
BuildRequires: python
84cb583
84cb583
%description
84cb583
Oz is a set of libraries and utilities for doing automated guest OS
84cb583
installations, with minimal input from the user.
84cb583
84cb583
%prep
Chris Lalancette 5e98aaf
%setup -q
84cb583
84cb583
%build
84cb583
python setup.py build
84cb583
84cb583
%install
a84f400
# generate the oz-examples man page
Chris Lalancette 5e98aaf
python setup.py install --root=$RPM_BUILD_ROOT --skip-build
84cb583
84cb583
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/
84cb583
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isocontent/
84cb583
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isos/
84cb583
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppycontent/
84cb583
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppies/
84cb583
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/
84cb583
84cb583
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/oz
Chris Lalancette 5e98aaf
cp oz.cfg $RPM_BUILD_ROOT%{_sysconfdir}/oz
84cb583
a84f400
# generate the oz-examples.1 man page and copy it into place
a84f400
make examples-manpage
a84f400
cp man/oz-examples.1 $RPM_BUILD_ROOT%{_mandir}/man1
a84f400
gzip $RPM_BUILD_ROOT%{_mandir}/man1/oz-examples.1
a84f400
84cb583
%post
84cb583
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
84cb583
fi
84cb583
84cb583
%files
a84f400
%doc README COPYING examples docs
84cb583
%dir %attr(0755, root, root) %{_sysconfdir}/oz/
84cb583
%config(noreplace) %{_sysconfdir}/oz/oz.cfg
84cb583
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/
84cb583
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isocontent/
84cb583
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isos/
84cb583
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppycontent/
84cb583
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppies/
84cb583
%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/
Chris Lalancette 5e98aaf
%{python_sitelib}/oz
84cb583
%{_bindir}/oz-install
84cb583
%{_bindir}/oz-generate-icicle
84cb583
%{_bindir}/oz-customize
84cb583
%{_bindir}/oz-cleanup-cache
84cb583
%{python_sitelib}/oz-*.egg-info
84cb583
%{_mandir}/man1/*
84cb583
84cb583
84cb583
%changelog
43c7122
* Sat Aug 18 2012 Chris Lalancette <clalancette@gmail.com> - 0.9.0-1
43c7122
- Update to release 0.9.0
43c7122
a84f400
* Mon May 14 2012 Pádraig Brady <P@draigBrady.com> - 0.8.0-1
a84f400
- Update to release 0.8.0
a84f400
fc1a0e0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
fc1a0e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fc1a0e0
Chris Lalancette b7028c0
* Fri Sep 16 2011 Chris Lalancette <clalance@redhat.com> - 0.7.0-1
Chris Lalancette b7028c0
- Update to release 0.7.0
Chris Lalancette b7028c0
Chris Lalancette 0b8450c
* Fri Aug 12 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-4
Chris Lalancette 0b8450c
- Make oz require openssh-clients to get the ssh binary
Chris Lalancette 0b8450c
Chris Lalancette 5e98aaf
* Wed Jul 27 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-3
Chris Lalancette 5e98aaf
- Minor cleanups to the spec file
Chris Lalancette 5e98aaf
84cb583
* Tue Jul 05 2011 Pádraig Brady <P@draigBrady.com> - 0.5.0-2
84cb583
- Adjust package as per updated Fedora standards
84cb583
84cb583
* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-1
84cb583
- Release 0.5.0
84cb583
84cb583
* Wed Jun 20 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-4
84cb583
- Include examples/.
84cb583
84cb583
* Wed Jun 15 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-3
84cb583
- Address rpmlint issues.
84cb583
84cb583
* Fri Jun 10 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-2
84cb583
- Change to noarch.
84cb583
84cb583
* Tue May 24 2011 Chris Lalancette <clalance@redhat.com> - 0.4.0-1
84cb583
- Release 0.4.0.
84cb583
84cb583
* Wed Mar 30 2011 Chris Lalancette <clalance@redhat.com> - 0.3.0-1
84cb583
- Release 0.3.0.
84cb583
84cb583
* Wed Mar 16 2011 Chris Lalancette <clalance@redhat.com> - 0.2.0-1
84cb583
- Release 0.2.0.
84cb583
84cb583
* Fri Feb  3 2011 Chris Lalancette <clalance@redhat.com> - 0.1.0-1
84cb583
- Initial public release of Oz.
84cb583
84cb583
* Wed Nov  3 2010 Chris Lalancette <clalance@redhat.com> - 0.0.4-1
84cb583
- Initial build.
84cb583