Compare commits
38 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42eb9d23d0 | ||
|
|
f187b82df9 | ||
|
|
04976cc154 | ||
|
|
712db50296 | ||
|
|
be669d7f8b | ||
|
|
8eac5e30b8 | ||
|
|
5cb4b8429f | ||
|
|
6208335aca | ||
|
|
815ac08d6b | ||
|
|
7173ee8c7d | ||
|
|
c02ffb1b8c | ||
|
|
ea3eadb3ef | ||
|
|
92cd0d2076 | ||
|
|
7830cd1160 | ||
|
|
3c59a0fd5d | ||
|
|
e1177d9433 | ||
|
|
008e5ac1f8 | ||
|
|
d713dd608c | ||
|
|
ad84f03dfe | ||
|
|
0a79554830 | ||
|
|
8a46698450 | ||
|
|
f7b7d7ccf8 | ||
|
|
8b254bce05 | ||
|
|
7ccbec5864 | ||
|
|
de16c49910 | ||
|
|
fedb01f1c5 | ||
|
|
2d05bb866c | ||
|
|
428d008874 | ||
|
|
2932ace15b | ||
|
|
f3780c7489 | ||
|
|
46fe96247b | ||
|
|
cb848cf3fe | ||
|
|
7a867c0401 | ||
|
|
4d082ca21c | ||
|
|
da77b81fde | ||
|
|
5c95b0130d | ||
|
|
a855138619 | ||
|
|
4a1ea47b42 |
5 changed files with 226 additions and 3 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
/virt-bootstrap-*.tar.gz
|
||||||
|
/x86_64
|
||||||
|
/.build-*.log
|
||||||
|
*.rpm
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# virt-bootstrap
|
|
||||||
|
|
||||||
The virt-bootstrap package
|
|
||||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
SHA512 (virt-bootstrap-1.1.1.tar.gz) = b9259b37adf3970fb6975ee793a1931cca50d90f44934c41a51fdda9fe359d09c083df25c07b2f94641af128749932e5a26a8207fc5e2c607b6593bcf4276c97
|
||||||
191
virt-bootstrap.spec
Normal file
191
virt-bootstrap.spec
Normal file
|
|
@ -0,0 +1,191 @@
|
||||||
|
Name: virt-bootstrap
|
||||||
|
Version: 1.1.1
|
||||||
|
Release: 32%{?dist}
|
||||||
|
Summary: System container rootfs creation tool
|
||||||
|
|
||||||
|
# Automatically converted from old format: GPLv3+ - review is highly recommended.
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
URL: https://github.com/virt-manager/virt-bootstrap
|
||||||
|
Source0: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# Upstream patches
|
||||||
|
|
||||||
|
# Fix for Python 3.11
|
||||||
|
Patch100: virt_bootstrap-Fix-build-with-Python-3.11.patch
|
||||||
|
|
||||||
|
BuildRequires: /usr/bin/pod2man
|
||||||
|
BuildRequires: /usr/bin/git
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-libguestfs
|
||||||
|
BuildRequires: python3-passlib
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: fdupes
|
||||||
|
|
||||||
|
Requires: python3-libguestfs
|
||||||
|
Requires: python3-passlib
|
||||||
|
Requires: skopeo
|
||||||
|
Requires: libvirt-sandbox
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Provides a way to create the root file system to use for
|
||||||
|
libvirt containers.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -S git
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
|
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
||||||
|
# The format is ideal for upstream, but not a distro. See:
|
||||||
|
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
||||||
|
for f in $(find %{buildroot} -type f -executable -print); do
|
||||||
|
sed -i '1 s/^#!\/usr\/bin\/env python3/#!%{__python3}/' $f || :
|
||||||
|
done
|
||||||
|
|
||||||
|
# Delete '#!/usr/bin/env python'
|
||||||
|
# The format is ideal for upstream, but not a distro. See:
|
||||||
|
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
||||||
|
for f in $(find %{buildroot} -type f \! -executable -print); do
|
||||||
|
sed -i '/^#!\/usr\/bin\/env python/d' $f || :
|
||||||
|
done
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md ChangeLog AUTHORS
|
||||||
|
%{_bindir}/virt-bootstrap
|
||||||
|
%{python3_sitelib}/virtBootstrap
|
||||||
|
%{python3_sitelib}/virt_bootstrap-*.egg-info
|
||||||
|
%{_mandir}/man1/virt-bootstrap*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-32
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 1.1.1-31
|
||||||
|
- Rebuilt for Python 3.15
|
||||||
|
|
||||||
|
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-30
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.1.1-29
|
||||||
|
- Rebuilt for Python 3.14.0rc3 bytecode
|
||||||
|
|
||||||
|
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.1.1-28
|
||||||
|
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-27
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 1.1.1-26
|
||||||
|
- Rebuilt for Python 3.14
|
||||||
|
|
||||||
|
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-25
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 1.1.1-24
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 10 2024 Python Maint <python-maint@redhat.com> - 1.1.1-22
|
||||||
|
- Rebuilt for Python 3.13
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-21
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1.1.1-19
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 8 2022 Radostin Stoyanov <rstoyanov@fedoraproject.org> - 1.1.1-16
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Mon Jun 27 2022 Radostin Stoyanov <rstoyanov@fedoraproject.org> - 1.1.1-15
|
||||||
|
- Fix built for Python 3.11
|
||||||
|
|
||||||
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.1.1-14
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.1-11
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-7
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-4
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-3
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 09 2019 Fabiano Fidêncio <fabiano@fidencio.org> - 1.1.1-1
|
||||||
|
- Update to new upstream release: 1.1.1
|
||||||
|
- Resolves: rhbz#1727771
|
||||||
|
|
||||||
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 20 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
|
||||||
|
- Rebuilt for Python 3.7
|
||||||
|
|
||||||
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
|
||||||
|
- Rebuilt for Python 3.7
|
||||||
|
|
||||||
|
* Thu May 31 2018 Fabiano Fidêncio <fabiano@fidencio.org> -1.1.0-1
|
||||||
|
- Update to new upstream release: 1.1.0
|
||||||
|
|
||||||
|
* Thu May 17 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 1.0.0-2
|
||||||
|
- Set "BuildArch: noarch" as this is an arch independent package
|
||||||
|
- Drop "Buildroot" tag as it's obsolete
|
||||||
|
- Drop "%%defattr" tag as it's obsolete
|
||||||
|
- Add "BuildRequires: /usr/bin/git" (due to %%autosetup -S git)
|
||||||
|
- Add a note to make clear that the patches are backported from upstream
|
||||||
|
- Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
||||||
|
- Delete '#!/usr/bin/env python' from non executable files
|
||||||
|
|
||||||
|
* Wed May 16 2018 Fabiano Fidêncio <fabiano@fidencio.org> - 1.0.0-1
|
||||||
|
- Initial release
|
||||||
30
virt_bootstrap-Fix-build-with-Python-3.11.patch
Normal file
30
virt_bootstrap-Fix-build-with-Python-3.11.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
From 418f8ff6c843ce8f5fd3de5251c913f97b1e7b80 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||||
|
Date: Mon, 27 Jun 2022 19:32:52 +0100
|
||||||
|
Subject: [PATCH] virt_bootstrap: Fix build with Python 3.11
|
||||||
|
|
||||||
|
Changed in version 3.11: codeset parameter is removed.
|
||||||
|
https://docs.python.org/3.11/library/gettext.html
|
||||||
|
|
||||||
|
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||||
|
---
|
||||||
|
src/virtBootstrap/virt_bootstrap.py | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py
|
||||||
|
index b486ac3..1a86cc4 100755
|
||||||
|
--- a/src/virtBootstrap/virt_bootstrap.py
|
||||||
|
+++ b/src/virtBootstrap/virt_bootstrap.py
|
||||||
|
@@ -45,8 +45,7 @@ gettext.bindtextdomain("virt-bootstrap", "/usr/share/locale")
|
||||||
|
gettext.textdomain("virt-bootstrap")
|
||||||
|
try:
|
||||||
|
gettext.install("virt-bootstrap",
|
||||||
|
- localedir="/usr/share/locale",
|
||||||
|
- codeset='utf-8')
|
||||||
|
+ localedir="/usr/share/locale")
|
||||||
|
except IOError:
|
||||||
|
try:
|
||||||
|
import __builtin__
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue