# Created by pyp2rpm-3.3.8 %global pypi_name presets %global pypi_version 0.1.3 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?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(setuptools) BuildRequires: python3dist(six) %description A python module to manipulate default parameters of a module's functions %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} 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} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %pyproject_wheel %install %pyproject_install 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} %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/presets-%{version}.dist-info/ %changelog * Wed Dec 21 2022 Gwyn Ciesla - 0.1.3-1 - Initial package.