4a1ea47
Name: virt-bootstrap
Fabiano Fidêncio cb848cf
Version: 1.1.1
ea3eadb
Release: 21%{?dist}
4a1ea47
Summary: System container rootfs creation tool
4a1ea47
4a1ea47
License: GPLv3+
4a1ea47
URL: https://github.com/virt-manager/virt-bootstrap
4a1ea47
Source0: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz
4a1ea47
4a1ea47
# Upstream patches
4a1ea47
Radostin Stoyanov d713dd6
# Fix for Python 3.11
Radostin Stoyanov d713dd6
Patch100: virt_bootstrap-Fix-build-with-Python-3.11.patch
Radostin Stoyanov d713dd6
4a1ea47
BuildRequires: /usr/bin/pod2man
4a1ea47
BuildRequires: /usr/bin/git
4a1ea47
BuildRequires: python3-devel
4a1ea47
BuildRequires: python3-libguestfs
4a1ea47
BuildRequires: python3-passlib
4a1ea47
BuildRequires: python3-setuptools
4a1ea47
BuildRequires: fdupes
4a1ea47
4a1ea47
Requires: python3-libguestfs
4a1ea47
Requires: python3-passlib
4a1ea47
Requires: skopeo
4a1ea47
Requires: libvirt-sandbox
4a1ea47
4a1ea47
BuildArch: noarch
4a1ea47
4a1ea47
%description
4a1ea47
Provides a way to create the root file system to use for
4a1ea47
libvirt containers.
4a1ea47
4a1ea47
%prep
4a1ea47
%autosetup -S git
4a1ea47
4a1ea47
%build
4a1ea47
%py3_build
4a1ea47
4a1ea47
%install
4a1ea47
%py3_install
4a1ea47
%fdupes %{buildroot}%{_prefix}
4a1ea47
4a1ea47
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
4a1ea47
# The format is ideal for upstream, but not a distro. See:
4a1ea47
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
4a1ea47
for f in $(find %{buildroot} -type f -executable -print); do
4a1ea47
    sed -i '1 s/^#!\/usr\/bin\/env python3/#!%{__python3}/' $f || :
4a1ea47
done
4a1ea47
4a1ea47
# Delete '#!/usr/bin/env python'
4a1ea47
# The format is ideal for upstream, but not a distro. See:
4a1ea47
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
4a1ea47
for f in $(find %{buildroot} -type f \! -executable -print); do
4a1ea47
    sed -i '/^#!\/usr\/bin\/env python/d' $f || :
4a1ea47
done
4a1ea47
4a1ea47
%files
4a1ea47
%license LICENSE
4a1ea47
%doc README.md ChangeLog AUTHORS
4a1ea47
%{_bindir}/virt-bootstrap
4a1ea47
%{python3_sitelib}/virtBootstrap
4a1ea47
%{python3_sitelib}/virt_bootstrap-*.egg-info
4a1ea47
%{_mandir}/man1/virt-bootstrap*
4a1ea47
4a1ea47
%changelog
ea3eadb
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-21
ea3eadb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ea3eadb
92cd0d2
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-20
92cd0d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
92cd0d2
7830cd1
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1.1.1-19
7830cd1
- Rebuilt for Python 3.12
7830cd1
3c59a0f
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-18
3c59a0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3c59a0f
e1177d9
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-17
e1177d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e1177d9
Radostin Stoyanov 008e5ac
* Fri Jul 8 2022 Radostin Stoyanov <rstoyanov@fedoraproject.org> - 1.1.1-16
Radostin Stoyanov 008e5ac
- Rebuilt for Python 3.11
Radostin Stoyanov 008e5ac
Radostin Stoyanov d713dd6
* Mon Jun 27 2022 Radostin Stoyanov <rstoyanov@fedoraproject.org> - 1.1.1-15
Radostin Stoyanov d713dd6
- Fix built for Python 3.11
Radostin Stoyanov d713dd6
ad84f03
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.1.1-14
ad84f03
- Rebuilt for Python 3.11
ad84f03
0a79554
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-13
0a79554
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0a79554
8a46698
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-12
8a46698
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8a46698
f7b7d7c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.1-11
f7b7d7c
- Rebuilt for Python 3.10
f7b7d7c
8b254bc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
8b254bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8b254bc
7ccbec5
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
7ccbec5
- Second attempt - Rebuilt for
7ccbec5
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7ccbec5
de16c49
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
de16c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
de16c49
fedb01f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-7
fedb01f
- Rebuilt for Python 3.9
fedb01f
2d05bb8
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
2d05bb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d05bb8
428d008
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
428d008
- Rebuilt for Python 3.8.0rc1 (#1748018)
428d008
2932ace
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-4
2932ace
- Rebuilt for Python 3.8
2932ace
f3780c7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-3
f3780c7
- Rebuilt for Python 3.8
f3780c7
46fe962
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
46fe962
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
46fe962
Fabiano Fidêncio cb848cf
* Tue Jul 09 2019 Fabiano Fidêncio <fabiano@fidencio.org> - 1.1.1-1
Fabiano Fidêncio cb848cf
- Update to new upstream release: 1.1.1
Fabiano Fidêncio cb848cf
- Resolves: rhbz#1727771
Fabiano Fidêncio cb848cf
7a867c0
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
7a867c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7a867c0
4d082ca
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
4d082ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4d082ca
da77b81
* Wed Jun 20 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
da77b81
- Rebuilt for Python 3.7
da77b81
5c95b01
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
5c95b01
- Rebuilt for Python 3.7
5c95b01
Fabiano Fidêncio a855138
* Thu May 31 2018 Fabiano Fidêncio <fabiano@fidencio.org> -1.1.0-1
Fabiano Fidêncio a855138
- Update to new upstream release: 1.1.0
Fabiano Fidêncio a855138
4a1ea47
* Thu May 17 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 1.0.0-2
4a1ea47
- Set "BuildArch: noarch" as this is an arch independent package
4a1ea47
- Drop "Buildroot" tag as it's obsolete
4a1ea47
- Drop "%%defattr" tag as it's obsolete
4a1ea47
- Add "BuildRequires: /usr/bin/git" (due to %%autosetup -S git)
4a1ea47
- Add a note to make clear that the patches are backported from upstream
4a1ea47
- Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
4a1ea47
- Delete '#!/usr/bin/env python' from non executable files
4a1ea47
4a1ea47
* Wed May 16 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 1.0.0-1
4a1ea47
- Initial release