forked from pool/python-HeapDict
Accepting request 515794 from home:TheBlackCat:branches:devel:languages:python
Fix building on SLE OBS-URL: https://build.opensuse.org/request/show/515794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-HeapDict?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 9 18:59:38 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Fix building on SLE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 17 15:29:30 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
||||
@@ -15,9 +15,14 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# required test package not available on SLE
|
||||
%if 0%{?is_opensuse}
|
||||
%bcond_without test
|
||||
%else
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without tests
|
||||
Name: python-HeapDict
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
@@ -30,7 +35,7 @@ BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with tests}
|
||||
%if %{with test}
|
||||
BuildRequires: python3-testsuite
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -58,7 +63,7 @@ important for many algorithms such as Dijkstra's Algorithm and A*.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec test_heap.py
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user