b0ae343
%global srcname virt-lightning
b0ae343
%global libname virt_lightning
e403650
b0ae343
%global common_description %{expand:
b0ae343
A CLI to start local Cloud image on libvirt!
b0ae343
b0ae343
Virt-Lightning can quickly deploy a bunch of new VM. It also prepares the
b0ae343
Ansible inventory file!
b0ae343
b0ae343
This is handy to quickly validate a new Ansible playbook, or a role on a large
b0ae343
number of environments.}
b0ae343
b0ae343
Name:           %{srcname}
b0ae343
Version:        2.2.0
818f393
Release:        %autorelease
b0ae343
Summary:        A pure-Python implementation of the HTTP/2 priority tree
e403650
b0ae343
License:        Apache-2.0
e403650
URL:            https://virt-lightning.org
b0ae343
VCS:            https://github.com/virt-lightning/virt-lightning
b0ae343
Source0:        %{pypi_source virt-lightning}
e403650
b0ae343
BuildArch:      noarch
e403650
BuildRequires:  python3-devel
b0ae343
BuildRequires:  python3-pytest
e403650
Requires:       libvirt-daemon
e403650
b0ae343
%description %{common_description}
e403650
e403650
%prep
b0ae343
%autosetup -p1 -n %{srcname}-%{version}
e403650
b0ae343
%generate_buildrequires
b0ae343
%pyproject_buildrequires
e403650
e403650
%build
b0ae343
%pyproject_wheel
e403650
e403650
%install
b0ae343
%pyproject_install
b0ae343
%pyproject_save_files %{libname}
e403650
e403650
%check
e403650
%pytest
e403650
b0ae343
%files -f %{pyproject_files}
e403650
%license LICENSE-2.0.txt
e403650
%doc DEBUGGING.md README.md changelog.md conf/example.ini
e403650
%{_bindir}/virt-lightning
e403650
%{_bindir}/vl
e403650
e403650
%changelog
818f393
%autochangelog