From 09c66d4593f3832bb65821265b6f11eb6faa72c1 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Sep 11 2020 13:05:43 +0000 Subject: Convert the package to pyproject macros Remove the python_provide macro --- diff --git a/python-distlib.spec b/python-distlib.spec index 7e7dc62..24168c2 100644 --- a/python-distlib.spec +++ b/python-distlib.spec @@ -4,7 +4,7 @@ Name: python-distlib Version: 0.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Low-level components of distutils2/packaging, augmented with higher-level APIs License: Python @@ -16,6 +16,7 @@ Patch0: distlib_unbundle.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: pyproject-rpm-macros %description Distlib contains the implementations of the packaging PEPs and other low-level @@ -28,7 +29,6 @@ between tools. %package -n python%{python3_pkgversion}-%{srcname} Summary: Low-level components of distutils2/packaging, augmented with higher-level APIs -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} Distlib contains the implementations of the packaging PEPs and other low-level @@ -48,8 +48,15 @@ rm -rf distlib/_backport rm tests/test_shutil.py* rm tests/test_sysconfig.py* +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{srcname} %if %{with check} %check @@ -57,16 +64,14 @@ export PYTHONHASHSEED=0 %{python3} setup.py test %endif # with_tests -%install -%py3_install - -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python%{python3_pkgversion}-%{srcname} -f %pyproject_files %doc README.rst %license LICENSE.txt -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Sep 11 2020 Charalampos Stratakis - 0.3.1-3 +- Convert the package to pyproject macros + * Wed Jul 29 2020 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild