Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a050edc85c | ||
|
|
cb70c24cb6 |
4 changed files with 82 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.0.tar.gz) = 049dff9bee2126ff46dea270b7b08bdaf153d7ef832b1f262150fdbb19b7c09bdb30f3184debcca3f8d2c111c528f8c527a7ae8c8f625cfe6400461529ef1926
|
||||
77
virt-bootstrap.spec
Normal file
77
virt-bootstrap.spec
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
Name: virt-bootstrap
|
||||
Version: 1.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: System container rootfs creation tool
|
||||
|
||||
License: GPLv3+
|
||||
URL: https://github.com/virt-manager/virt-bootstrap
|
||||
Source0: http://virt-manager.org/download/sources/virt-bootstrap/%{name}-%{version}.tar.gz
|
||||
|
||||
# Upstream patches
|
||||
|
||||
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
|
||||
* 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue