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
This commit is contained in:
parent
608bb78307
commit
b0aeaa621a
@ -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>
|
Tue Sep 24 09:15:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-HeapDict
|
Name: python-HeapDict
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -30,8 +31,13 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# These packages contain module test from stdlib,
|
# These packages contain module test from stdlib,
|
||||||
# it has nothing to do with this package being noarch
|
# 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: python2-devel
|
||||||
BuildRequires: python3-testsuite
|
BuildRequires: python3-testsuite
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -61,6 +67,8 @@ important for many algorithms such as Dijkstra's Algorithm and A*.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/heapdict.py*
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/heapdict*
|
||||||
|
%{python_sitelib}/HeapDict-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user