diff --git a/python-py.changes b/python-py.changes index ea48227..c908037 100644 --- a/python-py.changes +++ b/python-py.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 29 17:04:41 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition +- Add python-py dep for testing +- Use autosetup insteado of setup + patch +- More specific python_sitelib in %files + ------------------------------------------------------------------- Tue Mar 15 08:13:43 UTC 2022 - Stephan Kulow diff --git a/python-py.spec b/python-py.spec index eb931e9..2f7ab14 100644 --- a/python-py.spec +++ b/python-py.spec @@ -17,7 +17,6 @@ %define oldpython python -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -47,6 +46,7 @@ BuildRequires: python-rpm-macros Obsoletes: %{oldpython}-py-docs BuildArch: noarch %if %{with test} +BuildRequires: %{python_module py = %{version}} BuildRequires: %{python_module pytest} %endif %python_subpackages @@ -62,8 +62,7 @@ the following tools and modules: * py.path: uniform local and svn path objects %prep -%setup -q -n py-%{version} -%patch0 -p1 +%autosetup -p1 -n py-%{version} rm -rf py.egg-info rm -f tox.ini @@ -92,7 +91,8 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/py +%{python_sitelib}/py-%{version}*-info %endif %changelog