15
0

Accepting request 858536 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/858536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-HeapDict?expand=0&rev=4
This commit is contained in:
2020-12-25 17:50:39 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 24 00:35:44 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Support multiple python3 flavors
gh#openSUSE/python-rpm-macros#66
-------------------------------------------------------------------
Tue Sep 24 09:15:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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