15
0

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:
Todd R
2017-08-09 19:28:09 +00:00
committed by Git OBS Bridge
parent c52c99c6ab
commit bc0a2cd585
2 changed files with 13 additions and 3 deletions

View File

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

View File

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