From ccc4b63b0cebc1aa73c849b3b6165116ea29dbb22eb049ccd4f11b47e0d858ec Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 29 Nov 2022 17:05:45 +0000 Subject: [PATCH] - Remove python_module macro definition - Add python-py dep for testing - Use autosetup insteado of setup + patch - More specific python_sitelib in %files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-py?expand=0&rev=28 --- python-py.changes | 8 ++++++++ python-py.spec | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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