%global pypi_name pydyf Name: python-pydyf Version: 0.10.0 Release: 1%{?dist} Summary: Low-level PDF creator # The test suite is released under the AGPL but we are not shipping any test # code in the "binary" (noarch) RPM so we can just use the 3-clause BSD. License: BSD-3-Clause URL: https://www.courtbouillon.org/pydyf Source0: %{pypi_source} # remove some dependency/pytest options which are mostly useful for developers # (e.g. style checks) but may cause unnecessary issues for distro-level testing Patch0: %{name}-no-developer-testing-options.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # used as "build-backend" in pyproject.toml but not detected by Fedora's # macros to generate build requirements BuildRequires: python3dist(flit-core) # test suite calls the "gs" binary to verify outputs, not detectable by # Fedora's macros BuildRequires: ghostscript %description pydyf is a low-level PDF generator written in Python and based on PDF specification 1.7. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} pydyf is a low-level PDF generator written in Python and based on PDF specification 1.7. %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -r -x test %build %pyproject_wheel %install %pyproject_install %check %pytest %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ %changelog * Fri Jul 12 2024 Felix Schwarz - 0.10.0-1 - initial package for EPEL 9