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