84cb583
Summary: Library and utilities for automated guest OS installs
84cb583
Name: oz
a50f5e6
Version: 0.16.0
d850097
Release: 1%{?dist}
84cb583
License: LGPLv2
84cb583
Group: Development/Libraries
a76e35f
URL: http://github.com/clalancette/oz
a50f5e6
Source0: https://github.com/clalancette/%{name}/files/1209916/%{name}-%{version}.tar.gz
84cb583
BuildArch: noarch
84cb583
Requires: python >= 2.5
a70ca7d
Requires: python-libguestfs >= 1.18
a76e35f
Requires: python-lxml
a70ca7d
Requires: libvirt-python >= 0.9.7
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.
2551a00
Requires: libvirt >= 0.9.7
a50f5e6
Requires: python-requests
a84f400
Requires: genisoimage
84cb583
Requires: mtools
84cb583
Requires: python-uuid
Chris Lalancette 0b8450c
Requires: openssh-clients
84cb583
Requires: m2crypto
a50f5e6
Requires: python-monotonic
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
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/
a70ca7d
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/oz/screenshots/
84cb583
84cb583
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/oz
Chris Lalancette 5e98aaf
cp oz.cfg $RPM_BUILD_ROOT%{_sysconfdir}/oz
84cb583
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
a76e35f
%doc README COPYING examples
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/
a70ca7d
%dir %attr(0755, root, root) %{_localstatedir}/lib/oz/screenshots/
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
%changelog
a50f5e6
* Tue Aug 08 2017 Chris Lalancette <clalancette@gmail.com> - 0.16.0-1
a50f5e6
- Release 0.16.0
a50f5e6
2614e3b
* Sun Feb 28 2016 Chris Lalancette <clalancette@gmail.com> - 0.15.0-1
2614e3b
- Release 0.15.0
2614e3b
637e2e7
* Fri Jun 26 2015 Chris Lalancette <clalancette@gmail.com> - 0.14.0-1
637e2e7
- Release 0.14.0
637e2e7
d850097
* Sat Mar 07 2015 Chris Lalancette <clalancette@gmail.com> - 0.13.0-1
d850097
- Update to release 0.13.0
d850097
2551a00
* Tue Jul 29 2014 Ian McLeod <imcleod@redhat.com> - 0.12.0-3
2551a00
- Revert to el6 libvirt RPM requirements for epel7 RPM
2551a00
1741764
* Mon Feb 10 2014 Chris Lalancette <clalancette@gmail.com> - 0.12.0-2
1741764
- Add patch to first qcow2 image type
1741764
a76e35f
* Fri Jan  3 2014 Chris Lalancette <clalancette@gmail.com> - 0.12.0-1
a76e35f
- Update to release 0.12.0
a76e35f
71f1363
* Thu Aug  8 2013 Chris Lalancette <clalancette@gmail.com> - 0.11.0-2
71f1363
- Add in the upstream patch that fixes ICICLE generation with extra elements
71f1363
457bb2e
* Sun Jul 28 2013 Chris Lalancette <clalancette@gmail.com> - 0.11.0-1
457bb2e
- Update to release 0.11.0
457bb2e
a70ca7d
* Sat Mar 09 2013 Chris Lalancette <clalancette@gmail.com> - 0.10.0-1
a70ca7d
- Update to release 0.10.0
a70ca7d
734e430
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
734e430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
734e430
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
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
a76e35f
* Mon 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
a76e35f
* Thu 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.