%global pypi_name presets %global pypi_version 0.1.3 Name: python-%{pypi_name} Version: %{pypi_version} Release: 2%{?dist} Summary: A python module to manipulate default parameters of a module's functions License: ISC URL: http://github.com/bmcfee/presets Source0: %{pypi_source} Patch0: importlib.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(six) %description A python module to manipulate default parameters of a module's functions %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3dist(numpydoc) Requires: python3dist(six) %description -n python3-%{pypi_name} A python module to manipulate default parameters of a module's functions %prep %autosetup -n %{pypi_name}-%{pypi_version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} sed -e '1d' -i %{buildroot}%{python3_sitelib}/presets/__init__.py sed -e '1d' -i %{buildroot}%{python3_sitelib}/presets/version.py %files -n python3-%{pypi_name} -f %{pyproject_files} %changelog * Wed Oct 30 2024 Gwyn Ciesla - 0.1.3-2 - Review fixes * Wed Dec 21 2022 Gwyn Ciesla - 0.1.3-1 - Initial package.