31a2aed
%if (0%{?rhel} && 0%{?rhel} <= 7)
31a2aed
# Since the Python 3 stack in EPEL is missing too many dependencies,
31a2aed
# we're sticking with Python 2 there for now.
31a2aed
%global __python %{__python2}
31a2aed
%global python_pkgversion %{nil}
31a2aed
%else
31a2aed
# Default to Python 3 when not EL
31a2aed
%global __python %{__python3}
31a2aed
%global python_pkgversion %{python3_pkgversion}
31a2aed
%endif
31a2aed
239278d
Name: appliance-tools
3c27a74
Summary: Tools for building Appliances
31a2aed
Version: 009.0
dcdc4a9
Release: 5%{?dist}
239278d
License: GPLv2
3c27a74
URL: https://pagure.io/appliance-tools
3c27a74
3c27a74
Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
f83e619
8c8af0a
# Patches backported from upstream
0cfa03b
Patch0001: 0001-fstype-is-optional-for-swap-check-mountpoint-also.patch
8c8af0a
10cf890
# Ensure system deps are installed (rhbz#1409536)
31a2aed
Requires: python%{python_pkgversion}-imgcreate >= 1:25.0-2
31a2aed
Requires: python%{python_pkgversion}-progress
a7ce834
Requires: python%{python_pkgversion}-future
Kevin Kofler f975689
Requires: curl rsync kpartx
fff17af
Requires: zlib
7ddc491
Requires: qemu-img
cd5abfa
Requires: xz
ab0dcb6
Requires: xfsprogs
Lubomir Rintel b76c973
Requires: sssd-client
31a2aed
BuildRequires: python%{python_pkgversion}-devel
398e500
BuildRequires: /usr/bin/pod2man
63d4d46
BuildRequires: /usr/bin/which
239278d
BuildArch: noarch
239278d
239278d
239278d
%description
4dfa53a
Tools for generating appliance images on Fedora based systems, including
4dfa53a
derived distributions such as RHEL, CentOS, and others.
8f1bf40
239278d
%prep
8c8af0a
%autosetup -p1
239278d
239278d
%build
63d4d46
# Nothing to do
239278d
239278d
%install
31a2aed
%make_install PYTHON=%{__python}
239278d
4dfa53a
# Delete docs, we'll grab them later
4dfa53a
rm -rf %{buildroot}%{_datadir}/doc/%{name}
239278d
239278d
%files
3c27a74
%doc README
fff17af
%doc config/fedora-aos.ks
3c27a74
%license COPYING
fff17af
%{_mandir}/man*/*
239278d
%{_bindir}/appliance-creator
fff17af
%{_bindir}/ec2-converter
31a2aed
%{python_sitelib}/appcreate/
31a2aed
%{python_sitelib}/ec2convert/
239278d
239278d
%changelog
dcdc4a9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 009.0-5
dcdc4a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dcdc4a9
0cfa03b
* Thu Nov 22 2018 Neal Gompa <ngompa13@gmail.com> - 009.0-4
0cfa03b
- Backport fix to detect swap partition type correctly
0cfa03b
a7ce834
* Thu Nov 22 2018 Neal Gompa <ngompa13@gmail.com> - 009.0-3
a7ce834
- Add missing dep for python-future
a7ce834
4dfa53a
* Thu Nov 15 2018 Neal Gompa <ngompa13@gmail.com> - 009.0-2
4dfa53a
- Fix package description grammar
4dfa53a
- Fix grabbing docs on EL7
4dfa53a
31a2aed
* Thu Nov 15 2018 Neal Gompa <ngompa13@gmail.com> - 009.0-1
31a2aed
- Update to 009.0 relase
31a2aed
- Dropped merged patches
31a2aed
- Added compatibility for EL7 builds
31a2aed
63d4d46
* Tue Nov 13 2018 Neal Gompa <ngompa13@gmail.com> - 008.0-11
63d4d46
- Port to Python 3
63d4d46
- Backport xz multi-threading support
63d4d46
- Refresh nss libs hack patch
63d4d46
45bbfa2
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 008.0-10
45bbfa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
45bbfa2
07b1928
* Thu Jul 05 2018 Kevin Fenzi <kevin@scrye.com> - 008.0-9
07b1928
- Add a patch to open nss libs in the chroot to avoid install_root keeping them open. 
07b1928
- See https://bugzilla.redhat.com/show_bug.cgi?id=1591804
07b1928
973d7dc
* Sat Feb 10 2018 Neal Gompa <ngompa13@gmail.com> - 008.0-8
973d7dc
- Fix compatibility with pykickstart 3.9+ (#1544075)
973d7dc
- Bump requires of livecd-tools to minimum version with pykickstart 3.9+ compatibility
973d7dc
98e6932
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 008.0-7
98e6932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
98e6932
fdedcb8
* Fri Dec 15 2017 Iryna Shcherbina <ishcherb@redhat.com> - 008.0-6
fdedcb8
- Update Python 2 dependency declarations to new packaging standards
fdedcb8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
fdedcb8
7558ee1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 008.0-5
7558ee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7558ee1
78f450b
* Sun Mar 12 2017 Neal Gompa <ngompa13@gmail.com> - 008.0-4
78f450b
- Use 16 MiB block size for xz compression (#984704)
78f450b
8c8af0a
* Tue Feb 28 2017 Neal Gompa <ngompa13@gmail.com> - 008.0-3
8c8af0a
- Backport patches to make more RPi friendly (#1270606)
8c8af0a
bb148e2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 008.0-2
bb148e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb148e2
3c27a74
* Sat Feb 04 2017 Neal Gompa <ngompa13@gmail.com> - 008.0-1
3c27a74
- Dropped merged patches
3c27a74
- Moved to pagure
3c27a74
- Modernize spec and fix changelog entries
3c27a74
b235ba4
* Mon Jan 02 2017 Neal Gompa <ngompa13@gmail.com> - 007.8-14
b235ba4
- Add missing Epoch for python-imgcreate dependency (#1409650)
b235ba4
10cf890
* Mon Jan 02 2017 Neal Gompa <ngompa13@gmail.com> - 007.8-13
10cf890
- Bump python-imgcreate dependency to ensure system deps are installed (#1409536)
10cf890
428e534
* Mon Dec 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 007.8-12
428e534
- Add missing python-urlgrabber dependency (RHBZ #1405942)
428e534
Kevin Kofler f975689
* Tue Dec 06 2016 Neal Gompa <ngompa13@gmail.com> 007.8-11
Kevin Kofler f975689
- Change dependency from livecd-tools to python-imgcreate
Kevin Kofler f975689
- Fix for python-imgcreate v24 compatibility
Kevin Kofler f975689
17a4789
* Tue Sep 20 2016 Peter Robinson <pbrobinson@fedoraproject.org> 007.8-10
17a4789
- Fix swap partition type creation
17a4789
- Set boot partition as bootable
17a4789
f83e619
* Sat Sep 17 2016 Peter Robinson <pbrobinson@fedoraproject.org> 007.8-9
f83e619
- Allow 4 primary partitions
f83e619
b4ede67
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-8
b4ede67
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b4ede67
e7a2abf
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 007.8-7
e7a2abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e7a2abf
Lubomir Rintel c4d25ce
* Sun Oct 11 2015 Lubomir Rintel <lkundrak@v3.sk> - 007.8-6
Lubomir Rintel b76c973
- Add a dependency on sssd-client
Lubomir Rintel c4d25ce
- Remove thincrust.org references
Lubomir Rintel b76c973
6e6dadd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-5
6e6dadd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6e6dadd
ed41d49
* Thu Aug 21 2014 Dennis Gilmore <dennis@ausil.us> - 007.8-4
ed41d49
- add a hack to preload the sss nss library
ed41d49
69f66ab
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-3
69f66ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
69f66ab
86a52c4
* Sat Apr 26 2014 Dennis Gilmore <dennis@ausil.us> - 007.8-1
86a52c4
- drop image-minimiser
86a52c4
- change partitioning alignment to be optimal rhbz#990469
86a52c4
- change default timeout in extlinux config
ab0dcb6
* Wed Mar 05 2014 Dennis Gilmore <dennis@ausil.us> - 007.7-2
ab0dcb6
- Require xfsprogs
ab0dcb6
b85e019
* Tue Feb 11 2014 Dennis Gilmore <dennis@ausil.us> - 007.7-1
b85e019
- make sure the package list is available when we need it
b85e019
b776983
* Tue Feb 11 2014 Dennis Gilmore <dennis@ausil.us> - 007.6-1
b776983
- use a slightly different path for extlinux-bootloader package
b776983
c38f24b
* Mon Feb 10 2014 Dennis Gilmore <dennis@ausil.us> - 007.5-1
c38f24b
- arm needs extlinux-bootloader to provide for extlinux support 
c38f24b
- not syslinux-extlinux
c38f24b
6b1c4ed
* Mon Aug 26 2013 Dennis Gilmore <dennis@ausil.us> - 007.4-1
6b1c4ed
- refacter how re deal with each mount point old version did not handle swap
6b1c4ed
ab92d13
* Mon Aug 26 2013 Dennis Gilmore <dennis@ausil.us> - 007.3-1
ab92d13
- make sure that we only have a single instance of each mount point
ab92d13
8756ab1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.2-2
8756ab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8756ab1
04e99fa
* Fri Jun 21 2013 Dennis Gilmore <dennis@ausil.us> - 007.2-1
04e99fa
- fix up call to xz
04e99fa
cd5abfa
* Fri Jun 21 2013 Dennis Gilmore <dennis@ausil.us> - 007.1-1
cd5abfa
- xz compress raw images
cd5abfa
ed7d922
* Fri Jun 07 2013 Dennis Gilmore <dennis@ausil.us> - 007.0-1
ed7d922
- specify filesystem type when creating partitions
ed7d922
- extlinux fixes from mattdm
ed7d922
- dont use -F 32 when making vfat partition
ed7d922
08b2ce3
* Thu May 23 2013 Dennis Gilmore <dennis@ausil.us> - 006.6-1
08b2ce3
- really start at 1mb
08b2ce3
- compress qcow2 by default
08b2ce3
- make sure we dont destroy our newly created vfat partition
08b2ce3
f464c41
* Wed May 22 2013 Dennis Gilmore <dennis@ausil.us> - 006.5-2
f464c41
- add patch to read vfat uuid earlier
f464c41
- leave first mb free
1898340
347b0ba
* Sun May 19 2013 Dennis Gilmore <dennis@ausil.us> - 006.5-1
d3f77f2
- fix writing out kickstart file
d3f77f2
2b4b2a6
* Sat May 18 2013 Dennis Gilmore <dennis@ausil.us> - 006.4-1
2b4b2a6
- write out kickstart file
2b4b2a6
- correctly write out extlinux config
2b4b2a6
- dont require --ondisk for partitions
2b4b2a6
c555137
* Sun May 12 2013 Dennis Gilmore <dennis@ausil.us> - 006.3-2
c555137
- add patch for typo fixes in extlinux config from mattdm
c555137
398e500
* Fri May 10 2013 Dennis Gilmore <dennis@ausil.us> - 006.3-1.1
398e500
- BuildRequires: /usr/bin/pod2man
398e500
264e07f
* Fri May 10 2013 Dennis Gilmore <dennis@ausil.us> - 006.3-1
264e07f
- update to 006.3
264e07f
- use UUID's for fstab and root lines
264e07f
- support making vfat partition for /boot/uboot
264e07f
- support extlinux as a bootloader
264e07f
7f47df9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006.2-2
7f47df9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7f47df9
37fe6ad
* Thu Aug 09 2012 Marek Goldmann <mgoldman@redhat.com> - 006.2-1
37fe6ad
- Upstream release 006.2
37fe6ad
38a3c5a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006.1-4
38a3c5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
38a3c5a
3c27a74
* Mon Feb 13 2012 Dennis Gilmore <dennis@ausil.us> - 006.1-3
9aba848
- add patch to always write out a legacy grub config file
9aba848
9bac4ed
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 006.1-2
9bac4ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9bac4ed
f804e3d
* Fri Nov 11 2011 Marek Goldmann <mgoldman@redhat.com> - 006.1-1
f804e3d
- Upstream release 006.1
f804e3d
- Search for grub files also in ARCH-pc directories
f804e3d
1c89539
* Fri Nov 11 2011 Marek Goldmann <mgoldman@redhat.com> - 006-1
1c89539
- Support for GRUB2 rhbz#744390
1c89539
- Align partitions by default
1c89539
- Search for grub files also in ARCH-unknown directories
1c89539
- Allow to build appliances without GRUB installed at all
1c89539
2dbd06e
* Sat Oct 29 2011 Dennis Gilmore <dennis@ausil.us> - 005-1.nogrubhack.2
2dbd06e
- update hack to work around no grub being installed so we can compose ec2 images
2dbd06e
2dbd06e
* Sat Oct 29 2011 Dennis Gilmore <dennis@ausil.us> - 005-1.nogrubhack
b0b3851
- add a hack to work around no grub being installed so we can compose ec2 images
b0b3851
8f1bf40
* Mon Apr 04 2011 Alan Pevec <apevec@redhat.com> 005-1
8f1bf40
- image-minimizer: support drop-keep-drop
8f1bf40
- image-minimizer: add droprpm/keeprpm
8f1bf40
- Added sub-package for image minimizer (dhuff)
8f1bf40
052d1f5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 004.5-2
052d1f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
052d1f5
Adam Tkac eb8a6c5
* Fri Aug 20 2010 Adam Tkac <atkac redhat com> - 004.5-1
Adam Tkac eb8a6c5
- rebuild to ensure NVR in F14 is bigger than in F13
Adam Tkac eb8a6c5
- merge following changes from F12 branch [David Huff]:
Adam Tkac eb8a6c5
  - Fixed error while installing grub
Adam Tkac eb8a6c5
  - Fixed issue with Fedora 12 using dracut to generate initrd
Adam Tkac eb8a6c5
  - Fixed issue with Fedora 12 parted error
Adam Tkac eb8a6c5
cdb1da6
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 004.4-4
cdb1da6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cdb1da6
fffd7a5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 004.4-3
fffd7a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fffd7a5
3c27a74
* Tue Jul 07 2009 David Huff <dhuff@redhat.com> -004.4
3444b60
- added functionality include additional modules in ramdisk 
6924f35
3c27a74
* Mon Dec 01 2008 David Huff <dhuff@redhat.com> -004.2
454bee1
- changed form ExclusiveArch to EcludeArch to fix broken deps
454bee1
3c27a74
* Mon Dec 01 2008 David Huff <dhuff@redhat.com> - 004
7ddc491
- bumped version for rebuild for Python 2.6
7ddc491
- Allow the user to pass in --version and --release command line paramneters (bkearney)
7ddc491
- Patches to integrate ec2 conversion into the adk (bkeareny)
7ddc491
- Allow the appliance-creator to use remote urls with the new image tools (bkearney)
7ddc491
3c27a74
* Fri Nov 14 2008 David Huff <dhuff@redhat.com> - 003.9
7ddc491
- Fixed bug in globbing files under a directory (pmyers)
7ddc491
3c27a74
* Fri Nov 14 2008 David Huff <dhuff@redhat.com> - 003.8
7ddc491
- Fixed bug that causes appliance-creator to stacktrace when -i is omitted (pmyers)
7ddc491
3c27a74
* Wed Nov 12 2008 David Huff <dhuff@redhat.com> - 003.7
7ddc491
- Fixed problem with -i only taking one file, now can include a dir
7ddc491
- Fixed versioning of source file, ie. 003.7
7ddc491
3c27a74
* Mon Nov 10 2008 David Huff <dhuff@redhat.com> - 003-6
7ddc491
- Fixed broken dependencies for specific archs where qemu is not available
7ddc491
3c27a74
* Fri Nov 07 2008 David Huff <dhuff@redhat.com> - 003-5
7ddc491
- Added error for Incomplete partition info (#465988)
7ddc491
- Fixed problem with long move operations (#466278)
7ddc491
- Fixed error converting disk formats (#464798)
7ddc491
- Added support for tar archives (#470292)
7ddc491
- Added md5/sha256 disk signature support (jboggs)
7ddc491
- Modified zip functionality can now do with or with out 64bit ext.
7ddc491
- Added support for including extra file in the package (#470337)
7ddc491
- Added option for -o outdir, no longer uses name
7ddc491
- OutPut is now in a seprate dir under appliance name
a0cdc5f
3c27a74
* Wed Sep 17 2008 David Huff <dhuff@redhat.com> - 003-4
fff17af
- Removed all the kickstart files in the config dir to mirror livecd-tools
fff17af
- Added the image minimization to the refactored code (BKearney)
fff17af
- multiple interface issue (#460922)
fff17af
- added --format option to specity disk image format
fff17af
- added --package option to specify output, currently only .zip supported
fff17af
- added --vmem and --vcpu options
fff17af
- Merged ec2-converter code (jboggs)
fff17af
3c27a74
* Tue Aug 26 2008 David Huff <dhuff@redhat.com> - 003-3
bb4f382
- release 3 fixes minor build errors 
bb4f382
239278d
* Wed Jul 09 2008 David Huff <dhuff@redhat.com> - 003-1
832ff49
- version 003 is build for latest version of livecd-tools with patches
832ff49
832ff49
* Wed Jul 09 2008 Alan Pevec <apevec@redhat.com> 002-1
832ff49
- import imgcreate.fs refactoring and other changes
832ff49
  to make it work with Fedora-9 livecd-tools-0.17.1 w/o Thincrust patches
832ff49
- version 002 is for f9 branch to work with stock f9 livecd-tools
239278d
239278d
* Wed Jun 11 2008 David Huff <dhuff@redhat.com> - 001-3
239278d
- fixed dependancys
239278d
239278d
* Tue Jun 10 2008 David Huff <dhuff@redhat.com> - 001-2
239278d
- Undated opt parser
239278d
- fixed grub issue
239278d
- build aginsted newer livecd-tools for selinux issues
239278d
239278d
* Wed May 14 2008 David Huff <dhuff@redhat.com> - 001
239278d
- Initial build.
239278d
239278d