## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-cvelib Version: 1.4.0 Release: %autorelease Summary: A library and command line interface for the CVE Project services License: MIT URL: https://github.com/RedHatProductSecurity/cvelib Source: %{pypi_source cvelib} BuildArch: noarch BuildRequires: python3-devel Provides: bundled(cve-schema) %global _description %{expand: A library and a command line interface for the CVE Services API. Note that version 1.3.0 of cvelib is compatible with CVE Services 2.2.0.} %description %_description %package -n python3-cvelib Summary: %{summary} %description -n python3-cvelib %_description %prep %autosetup -p1 -n cvelib-%{version} sed -i 's:"collective.checkdocs",::' pyproject.toml %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cvelib mkdir -p %{buildroot}/%{_mandir} mv %{buildroot}%{python3_sitelib}/man %{buildroot}/%{_mandir}/man1 rm -rf %{buildroot}%{python3_sitelib}/tests %check %pyproject_check_import %files -n python3-cvelib -f %{pyproject_files} %{_bindir}/cve %{_mandir}/man1/cve* %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jun 19 2024 Paul Wouters - 1.4.0-1 - Initial import of python-cvelib ## END: Generated by rpmautospec