84cb583
Name: oz
f78313e
Version: 0.17.0
c95f7f5
Release: 2%{?dist}
f78313e
Summary: Library and utilities for automated guest OS installs
84cb583
License: LGPLv2
7e8fb4e
URL: http://github.com/clalancette/oz
f78313e
7ffc87b
Source0: https://github.com/clalancette/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
f78313e
# https://github.com/clalancette/oz/pull/269
7ffc87b
Patch1: 01-clarify-bz-instance.patch
7ffc87b
Patch2: 02-drop-armv7-special-console-handling.patch
7ffc87b
Patch3: 03-add-appropriate-arch-checks.patch
7ffc87b
Patch4: 04-armv7-define-gicv2.patch
7ffc87b
Patch5: 05-arm-fix-input-devices.patch
7ffc87b
Patch6: 06-setup-graphical-all-except-s390x.patch
7ffc87b
Patch7: 07-use-2gb-ram.patch
7ffc87b
Patch8: 08-add-latest-location-ovmf.patch
7ffc87b
Patch9: 09-add-tianocore-check.patch
7ffc87b
Patch10: 10-check-edk2-firmware-armv7.patch
7ffc87b
Patch11: 11-make-uefi-configurable.patch
7ffc87b
Patch12: 12-fix-f29-config.patch
7ffc87b
Patch13: 13-add-f30-support.patch
bfd7b5d
84cb583
BuildArch: noarch
b14fd21
b14fd21
%if 0%{?fedora} > 30
b14fd21
BuildRequires: python3
b14fd21
BuildRequires: python3-devel
b14fd21
BuildRequires: python3-setuptools
7ffc87b
Requires: python3
7ffc87b
Requires: python3-lxml
b14fd21
Requires: python3-libguestfs >= 1.18
7ffc87b
Requires: python3-libvirt
b14fd21
Requires: python3-m2crypto
b14fd21
Requires: python3-monotonic
b14fd21
Requires: python3-requests
b14fd21
%else
b14fd21
BuildRequires: python2
b14fd21
BuildRequires: python2-devel
b14fd21
BuildRequires: python3-setuptools
c95f7f5
Requires: m2crypto
b14fd21
Requires: python2
b14fd21
Requires: python2-lxml
b14fd21
Requires: python2-libguestfs >= 1.18
b14fd21
Requires: python2-libvirt
b14fd21
Requires: python2-monotonic
b14fd21
Requires: python2-requests
b14fd21
%endif
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.
a70ca7d
Requires: libvirt-daemon-kvm
a70ca7d
Requires: libvirt-daemon-qemu
2c5d083
Requires: libvirt-daemon-config-network
a84f400
Requires: genisoimage
84cb583
Requires: mtools
Chris Lalancette 0b8450c
Requires: openssh-clients
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
f78313e
%autosetup -p1
84cb583
84cb583
%build
b14fd21
%if 0%{?fedora} > 30
7ffc87b
%py3_build
b14fd21
%else
b14fd21
%py2_build
b14fd21
%endif
84cb583
84cb583
%install
b14fd21
%if 0%{?fedora} > 30
7ffc87b
%py3_install
b14fd21
%else
b14fd21
%py2_install
b14fd21
%endif
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
bfd7b5d
%license COPYING
bfd7b5d
%doc README 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/
84cb583
%{_bindir}/oz-install
84cb583
%{_bindir}/oz-generate-icicle
84cb583
%{_bindir}/oz-customize
84cb583
%{_bindir}/oz-cleanup-cache
84cb583
%{_mandir}/man1/*
b14fd21
%if 0%{?fedora} > 30
b14fd21
%{python3_sitelib}/oz
b14fd21
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
b14fd21
%else
b14fd21
%{python2_sitelib}/oz
b14fd21
%{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info
b14fd21
%endif
84cb583
84cb583
%changelog
c95f7f5
* Tue Apr  2 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.17.0-2
c95f7f5
- Fix m2crypto python2 naming
c95f7f5
b14fd21
* Tue Mar 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.17.0-1
b14fd21
- Conditionalise py3 support
b14fd21
- 0.17.0 is releases, minor cleanups
b14fd21
7ffc87b
* Sat Mar 16 2019 Chris Lalancette <clalancette@gmail.com> - 0.17.0-0.3
7ffc87b
- Update to latest upstream changes for Python 3
7ffc87b
c0b3585
* Wed Mar 13 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.17.0-0.2
c0b3585
- Rebase to latest PR for ARMv7/aarch64 UEFI
c0b3585
f78313e
* Thu Feb 28 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.17.0-0.1
f78313e
- Upstream git 0.17 snapshot
f78313e
- ARMv7 fixes and support for UEFI
f78313e
- UEFI fixes for x86_64 and aarch64
f78313e
23ac95b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-8
23ac95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
23ac95b
0343824
* Mon Dec 10 2018 Kevin Fenzi <kevin@scrye.com> - 0.16.0-7
0343824
- Drop unneeded sed fix.
0343824
e452926
* Mon Dec 10 2018 Kevin Fenzi <kevin@scrye.com> - 0.16.0-6
e452926
- Add patch to add rnd device to provide faster random on boot.
e452926
dd6dca5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-5
dd6dca5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dd6dca5
70b0317
* Thu Mar 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.16.0-4
70b0317
- Update Python 2 dependency declarations to new packaging standards
70b0317
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
70b0317
0dfcb78
* Sun Feb 18 2018 Chris Lalancette <clalancette@gmail.com> - 0.16.0-3
0dfcb78
- Add s390x support patches
0dfcb78
a009701
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
a009701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a009701
1ab8fcd
* Tue Aug 08 2017 Chris Lalancette <clalancette@gmail.com> - 0.16.0-1
0c6158c
- Release 0.16.0
0c6158c
d4ef275
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-7
d4ef275
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d4ef275
4f8d06e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-6
4f8d06e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4f8d06e
ff88fb1
* Thu Sep 22 2016 Chris Lalancette <clalancette@gmail.com> - 0.15.0-5
ff88fb1
- Remove rawhide dependency on python-uuid
ff88fb1
1b31d5e
* Wed Aug 10 2016 Ian McLeod <imcleod@redhat.com> - 0.15.0-4
1b31d5e
- Version bump to simplify upgrade for Fedora rel-eng
1b31d5e
1b31d5e
* Tue Aug 9 2016 Ian McLeod <imcleod@redhat.com> - 0.15.0-3
1b31d5e
- Backport patches for ppc and aarch64 builds
1b31d5e
- Backport patch related to configurable timeouts
1b31d5e
f4dd0e2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.0-2
f4dd0e2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f4dd0e2
904e112
* Sun Feb 28 2016 Chris Lalancette <clalancette@gmail.com> - 0.15.0-1
904e112
- Release 0.15.0
904e112
9ed7298
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
9ed7298
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9ed7298
abd2427
* Fri Jun 26 2015 Chris Lalancette <clalancette@gmail.com> - 0.14.0-1
abd2427
- Release 0.14.0
abd2427
657627c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.0-2
657627c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
657627c
7b9633d
* Sat Mar 07 2015 Chris Lalancette <clalancette@gmail.com> - 0.13.0-1
7b9633d
- Update to release 0.13.0
7b9633d
a59f9d7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-3
a59f9d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a59f9d7
ceba098
* Mon Feb 10 2014 Chris Lalancette <clalancette@gmail.com> - 0.12.0-2
d247b84
- Add patch to first qcow2 image type
d247b84
7e8fb4e
* Fri Jan  3 2014 Chris Lalancette <clalancette@gmail.com> - 0.12.0-1
7e8fb4e
- Update to release 0.12.0
7e8fb4e
c69a4da
* Thu Aug  8 2013 Chris Lalancette <clalancette@gmail.com> - 0.11.0-2
c69a4da
- Add in the upstream patch that fixes ICICLE generation with extra elements
c69a4da
2c5d083
* Sun Jul 28 2013 Chris Lalancette <clalancette@gmail.com> - 0.11.0-1
2c5d083
- Update to release 0.11.0
2c5d083
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
7e8fb4e
* 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
7e8fb4e
* 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.