2011-07-07 10:31:42 +00:00
|
|
|
Summary: Library and utilities for automated guest OS installs
|
|
|
|
Name: oz
|
2011-09-16 18:28:32 +00:00
|
|
|
Version: 0.7.0
|
2011-10-18 20:53:20 +00:00
|
|
|
Release: 3%{?dist}
|
2011-07-07 10:31:42 +00:00
|
|
|
License: LGPLv2
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://aeolusproject.org/oz.html
|
2011-10-18 20:53:20 +00:00
|
|
|
Source0: http://repos.fedorapeople.org/repos/aeolus/oz/%{version}/tarball/%{name}-%{version}.tar.gz
|
|
|
|
Patch1: oz-local-repo.patch
|
|
|
|
Patch2: oz-monitor-network.patch
|
2011-07-07 10:31:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Requires: python >= 2.5
|
|
|
|
Requires: gvnc-tools
|
|
|
|
Requires: python-libguestfs
|
|
|
|
Requires: libxml2-python
|
|
|
|
Requires: libvirt-python
|
|
|
|
# in theory, oz doesn't really require libvirtd to be local to operate
|
|
|
|
# properly. However, because of the libguestfs manipulations, in practice
|
|
|
|
# it really does. Make it depend on libvirt (so we get libvirtd) for now,
|
|
|
|
# unless/until we are able to make it really be remote.
|
|
|
|
Requires: libvirt
|
|
|
|
Requires: python-pycurl
|
|
|
|
Requires: mkisofs
|
|
|
|
Requires: numpy
|
|
|
|
Requires: mtools
|
|
|
|
Requires: python-uuid
|
2011-08-12 13:20:58 +00:00
|
|
|
Requires: openssh-clients
|
2011-07-07 10:31:42 +00:00
|
|
|
Requires: m2crypto
|
|
|
|
Requires: pyparted
|
|
|
|
|
|
|
|
BuildRequires: python
|
|
|
|
|
|
|
|
%description
|
|
|
|
Oz is a set of libraries and utilities for doing automated guest OS
|
|
|
|
installations, with minimal input from the user.
|
|
|
|
|
|
|
|
%prep
|
2011-07-27 09:24:47 +00:00
|
|
|
%setup -q
|
2011-07-07 10:31:42 +00:00
|
|
|
|
2011-10-18 20:53:20 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
|
2011-07-07 10:31:42 +00:00
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2011-07-27 09:24:47 +00:00
|
|
|
python setup.py install --root=$RPM_BUILD_ROOT --skip-build
|
2011-07-07 10:31:42 +00:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isocontent/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/isos/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppycontent/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/floppies/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/icicletmp/
|
2011-10-18 20:53:20 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/jeos/
|
2011-09-16 18:28:32 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/kernels/
|
2011-07-07 10:31:42 +00:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/oz
|
2011-07-27 09:24:47 +00:00
|
|
|
cp oz.cfg $RPM_BUILD_ROOT%{_sysconfdir}/oz
|
2011-07-07 10:31:42 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
if [ ! -f %{_sysconfdir}/oz/id_rsa-icicle-gen ]; then
|
2011-07-27 09:24:47 +00:00
|
|
|
ssh-keygen -t rsa -b 2048 -N "" -f %{_sysconfdir}/oz/id_rsa-icicle-gen >& /dev/null
|
2011-07-07 10:31:42 +00:00
|
|
|
fi
|
|
|
|
|
2011-10-18 20:53:20 +00:00
|
|
|
|
2011-07-07 10:31:42 +00:00
|
|
|
%files
|
|
|
|
%doc README COPYING examples
|
|
|
|
%dir %attr(0755, root, root) %{_sysconfdir}/oz/
|
|
|
|
%config(noreplace) %{_sysconfdir}/oz/oz.cfg
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isocontent/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/isos/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppycontent/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/floppies/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/icicletmp/
|
2011-10-18 20:53:20 +00:00
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/jeos/
|
2011-09-16 18:28:32 +00:00
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/kernels/
|
2011-07-27 09:24:47 +00:00
|
|
|
%{python_sitelib}/oz
|
2011-07-07 10:31:42 +00:00
|
|
|
%{_bindir}/oz-install
|
|
|
|
%{_bindir}/oz-generate-icicle
|
|
|
|
%{_bindir}/oz-customize
|
|
|
|
%{_bindir}/oz-cleanup-cache
|
|
|
|
%{python_sitelib}/oz-*.egg-info
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-09-16 18:28:32 +00:00
|
|
|
* Fri Sep 16 2011 Chris Lalancette <clalance@redhat.com> - 0.7.0-1
|
|
|
|
- Update to release 0.7.0
|
|
|
|
|
2011-08-12 13:20:58 +00:00
|
|
|
* Fri Aug 12 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-4
|
|
|
|
- Make oz require openssh-clients to get the ssh binary
|
|
|
|
|
2011-07-27 09:24:47 +00:00
|
|
|
* Wed Jul 27 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-3
|
|
|
|
- Minor cleanups to the spec file
|
|
|
|
|
2011-07-07 10:31:42 +00:00
|
|
|
* Tue Jul 05 2011 Pádraig Brady <P@draigBrady.com> - 0.5.0-2
|
|
|
|
- Adjust package as per updated Fedora standards
|
|
|
|
|
|
|
|
* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.5.0-1
|
|
|
|
- Release 0.5.0
|
|
|
|
|
|
|
|
* Wed Jun 20 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-4
|
|
|
|
- Include examples/.
|
|
|
|
|
|
|
|
* Wed Jun 15 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-3
|
|
|
|
- Address rpmlint issues.
|
|
|
|
|
|
|
|
* Fri Jun 10 2011 Pádraig Brady <P@draigBrady.com> - 0.4.0-2
|
|
|
|
- Change to noarch.
|
|
|
|
|
|
|
|
* Tue May 24 2011 Chris Lalancette <clalance@redhat.com> - 0.4.0-1
|
|
|
|
- Release 0.4.0.
|
|
|
|
|
|
|
|
* Wed Mar 30 2011 Chris Lalancette <clalance@redhat.com> - 0.3.0-1
|
|
|
|
- Release 0.3.0.
|
|
|
|
|
|
|
|
* Wed Mar 16 2011 Chris Lalancette <clalance@redhat.com> - 0.2.0-1
|
|
|
|
- Release 0.2.0.
|
|
|
|
|
|
|
|
* Fri Feb 3 2011 Chris Lalancette <clalance@redhat.com> - 0.1.0-1
|
|
|
|
- Initial public release of Oz.
|
|
|
|
|
|
|
|
* Wed Nov 3 2010 Chris Lalancette <clalance@redhat.com> - 0.0.4-1
|
|
|
|
- Initial build.
|
|
|
|
|