From bc0a2cd585ec59b693704a2e7ecdc48168b1e0c5c756924fd0ed22a82e8c5cf8 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 9 Aug 2017 19:28:09 +0000 Subject: [PATCH] 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 --- python-HeapDict.changes | 5 +++++ python-HeapDict.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-HeapDict.changes b/python-HeapDict.changes index b76fbca..d84b739 100644 --- a/python-HeapDict.changes +++ b/python-HeapDict.changes @@ -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 diff --git a/python-HeapDict.spec b/python-HeapDict.spec index f2485da..ce6eb67 100644 --- a/python-HeapDict.spec +++ b/python-HeapDict.spec @@ -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