|
|
@@ -1,12 +1,17 @@
|
|
|
|
|
|
|
|
%if 0%{?rhel} <= 9
|
|
|
|
|
|
|
|
%global _sysusersdir /usr/lib/sysusers.d
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: testcloud
|
|
|
|
Name: testcloud
|
|
|
|
# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
|
|
|
|
# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
|
|
|
|
Version: 0.11.4
|
|
|
|
Version: 0.11.8
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Tool for running cloud images locally
|
|
|
|
Summary: Tool for running cloud images locally
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://pagure.io/testcloud
|
|
|
|
URL: https://pagure.io/testcloud
|
|
|
|
Source0: https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
Source1: testcloud.sysusers
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{kernel_arches} noarch
|
|
|
|
ExclusiveArch: %{kernel_arches} noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@@ -32,8 +37,8 @@ Summary: Python 3 interface to testcloud
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: acl
|
|
|
|
Requires: genisoimage
|
|
|
|
Requires: genisoimage
|
|
|
|
Requires: libvirt-daemon
|
|
|
|
Requires: libvirt-daemon
|
|
|
|
Requires: libvirt-daemon-config-network
|
|
|
|
Requires: libvirt-daemon-config-network
|
|
|
@@ -59,10 +64,11 @@ sed -i 's/ --cov-report=term-missing --cov testcloud//g' tox.ini
|
|
|
|
%pyproject_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files testcloud
|
|
|
|
|
|
|
|
|
|
|
|
# configuration files
|
|
|
|
# configuration files
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
|
|
|
@@ -81,7 +87,11 @@ install -d %{buildroot}/%{_sharedstatedir}/testcloud/instances
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/rules.d
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/rules.d
|
|
|
|
install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
|
|
|
|
install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sysusers conf file for creation of testcloud group
|
|
|
|
|
|
|
|
install -p -m644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
%pyproject_check_import
|
|
|
|
%pytest
|
|
|
|
%pytest
|
|
|
|
# Remove compiled .py files from /etc after os_install_post
|
|
|
|
# Remove compiled .py files from /etc after os_install_post
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
|
|
|
@@ -104,9 +114,9 @@ rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
|
|
|
|
%{_bindir}/t7d
|
|
|
|
%{_bindir}/t7d
|
|
|
|
%{_datadir}/bash-completion/completions/testcloud
|
|
|
|
%{_datadir}/bash-completion/completions/testcloud
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%{_sysusersdir}/%{name}.conf
|
|
|
|
%{python3_sitelib}/testcloud
|
|
|
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%files -n python3-%{name} -f %{pyproject_files}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
%autochangelog
|
|
|
|