Compare commits
No commits in common. "rawhide" and "f33" have entirely different histories.
4 changed files with 42 additions and 48 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1 @@
|
|||
/virt-lightning-2.1.0.tar.gz
|
||||
/virt-lightning-2.2.0.tar.gz
|
||||
/virt-lightning-2.3.2.tar.gz
|
||||
|
|
|
|||
15
changelog
15
changelog
|
|
@ -1,15 +0,0 @@
|
|||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.0-4
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 11 19:46:23 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.0-1
|
||||
- Initial package.
|
||||
- Close: rhbz#1965791
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (virt-lightning-2.3.2.tar.gz) = badcb74185de895e5042f90bb00a513e5b2fcf58e9c5b11f9aa4cac098b2807471f8091b8451cee3d37c3a9bbbe25b18d16765c2109db87a84b09a0ba8b6512f
|
||||
SHA512 (virt-lightning-2.1.0.tar.gz) = 10e4395cf90b8cbc55258c838c5d43ddaa9585809616ca0e1f5e86ef46215b14078bd344e3c07aa44086bc6013424d5874fdd445c241ee4ac34f6eb4fc680195
|
||||
|
|
|
|||
|
|
@ -1,53 +1,64 @@
|
|||
%global srcname virt-lightning
|
||||
%global libname virt_lightning
|
||||
# Created by pyp2rpm-3.3.6
|
||||
%global pypi_name virt-lightning
|
||||
|
||||
%global common_description %{expand:
|
||||
Name: %{pypi_name}
|
||||
Version: 2.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Deploy your testing VM in a couple of seconds
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://virt-lightning.org
|
||||
Source0: %{pypi_source}
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(libvirt-python)
|
||||
BuildRequires: python3dist(pyyaml)
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(setuptools-scm)
|
||||
BuildRequires: python3dist(urwid)
|
||||
Requires: libvirt-daemon
|
||||
|
||||
%description
|
||||
A CLI to start local Cloud image on libvirt!
|
||||
|
||||
Virt-Lightning can quickly deploy a bunch of new VM. It also prepares the
|
||||
Ansible inventory file!
|
||||
|
||||
This is handy to quickly validate a new Ansible playbook, or a role on a large
|
||||
number of environments.}
|
||||
|
||||
Name: %{srcname}
|
||||
Version: 2.3.2
|
||||
Release: %autorelease
|
||||
Summary: CLI to start Cloud image on libvirt
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://virt-lightning.org
|
||||
VCS: https://github.com/virt-lightning/virt-lightning
|
||||
Source0: %{pypi_source virt-lightning}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
Requires: libvirt-daemon
|
||||
|
||||
%description %{common_description}
|
||||
number of environments.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{srcname}-%{version}
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
# Remove bundled egg-info
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
# Remove shebang from Python libraries
|
||||
for lib in virt_lightning/*.py; do
|
||||
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
||||
touch -r $lib $lib.new &&
|
||||
mv $lib.new $lib
|
||||
done
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{libname}
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%files
|
||||
%license LICENSE-2.0.txt
|
||||
%doc README.md changelog.md conf/example.ini
|
||||
%doc DEBUGGING.md README.md changelog.md conf/example.ini
|
||||
%{_bindir}/virt-lightning
|
||||
%{_bindir}/vl
|
||||
%{python3_sitelib}/virt_lightning
|
||||
%{python3_sitelib}/virt_lightning-%{version}-py%{python3_version}.egg-info
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
* Fri Jun 11 19:46:23 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.0-1
|
||||
- Initial package.
|
||||
- Close: rhbz#1965791
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue