%global pypi_name cvdupdate %global pypi_version 1.1.1 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: ClamAV Private Database Mirror Updater Tool License: Apache-2.0 URL: https://github.com/Cisco-Talos/cvdupdate # pypi_source is missing fixtures Source0: %{url}/archive/%{pypi_name}-%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: A tool to download and update clamav databases and database patch files for the purposes of hosting your own database mirror.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{pypi_name}-%{version} sed -i -e '1{\@^#!@d}' cvdupdate/__main__.py %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install rm -r %{buildroot}%{python3_sitelib}/tests %pyproject_save_files cvdupdate %check %pytest -v %files -n python3-cvdupdate -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/cvd %{_bindir}/cvdupdate %changelog * Mon Feb 27 2023 Orion Poplawski - 1.1.1-1 - Initial Fedora package