diff --git a/python-gpxpy.spec b/python-gpxpy.spec index 6a28a99..13c9f87 100644 --- a/python-gpxpy.spec +++ b/python-gpxpy.spec @@ -12,43 +12,36 @@ Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) %description %{summary} - %package -n python3-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{summary} - %prep %autosetup -n %{srcname}-%{version} +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build - +%pyproject_wheel %install -%py3_install - +%pyproject_install +%pyproject_save_files %{srcname} %check -%{__python3} test.py - +%{python3} test.py -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %license LICENSE.txt %{_bindir}/gpxinfo -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info - %changelog %autochangelog