From b0aeaa621a2248a624062c68488be1e996fe17a3136f5c44222e1c1adcccdd18 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 24 Dec 2020 20:00:19 +0000 Subject: [PATCH] Accepting request 858401 from home:bnavigator:branches:devel:languages:python - Support multiple python3 flavors gh#openSUSE/python-rpm-macros#66 OBS-URL: https://build.opensuse.org/request/show/858401 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-HeapDict?expand=0&rev=11 --- python-HeapDict.changes | 6 ++++++ python-HeapDict.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-HeapDict.changes b/python-HeapDict.changes index 7c0c9e6..a22fa66 100644 --- a/python-HeapDict.changes +++ b/python-HeapDict.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 24 00:35:44 UTC 2020 - Benjamin Greiner + +- Support multiple python3 flavors + gh#openSUSE/python-rpm-macros#66 + ------------------------------------------------------------------- Tue Sep 24 09:15:23 UTC 2019 - Tomáš Chvátal diff --git a/python-HeapDict.spec b/python-HeapDict.spec index 45c6cba..b209b4a 100644 --- a/python-HeapDict.spec +++ b/python-HeapDict.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-HeapDict Version: 1.0.1 Release: 0 @@ -30,8 +31,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros # These packages contain module test from stdlib, # it has nothing to do with this package being noarch +%if ! %{with python2} +# TW has without python2 defined and will have multiple python3 flavors +BuildRequires: %{python_module testsuite} +%else BuildRequires: python2-devel BuildRequires: python3-testsuite +%endif BuildArch: noarch %python_subpackages @@ -61,6 +67,8 @@ important for many algorithms such as Dijkstra's Algorithm and A*. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/heapdict.py* +%pycache_only %{python_sitelib}/__pycache__/heapdict* +%{python_sitelib}/HeapDict-%{version}*-info %changelog