From 3dff08533c0fa091d48e015ce817cbc10310a7007ed560a583c3f8e7350fd4f0 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 22 Oct 2015 09:24:38 +0000 Subject: [PATCH] Accepting request 340364 from home:TheBlackCat:branches:devel:languages:python - It doesn't need a shared-mime-info version that high. The unit tests just compare against pre-set values based on that version. So remove BuildRequires version check and disable tests for earlier openSUSE versions. OBS-URL: https://build.opensuse.org/request/show/340364 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyxdg?expand=0&rev=2 --- python-pyxdg.changes | 8 ++++++++ python-pyxdg.spec | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-pyxdg.changes b/python-pyxdg.changes index 4c5cf36..095b59b 100644 --- a/python-pyxdg.changes +++ b/python-pyxdg.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Oct 22 09:16:26 UTC 2015 - toddrme2178@gmail.com + +- It doesn't need a shared-mime-info version that high. + The unit tests just compare against pre-set values based on that + version. So remove BuildRequires version check and disable + tests for earlier openSUSE versions. + ------------------------------------------------------------------- Sun Oct 11 10:30:31 UTC 2015 - matwey.kornilov@gmail.com diff --git a/python-pyxdg.spec b/python-pyxdg.spec index d6159c3..175a0ec 100644 --- a/python-pyxdg.spec +++ b/python-pyxdg.spec @@ -19,7 +19,7 @@ Name: python-pyxdg Version: 0.25 Release: 0 -Summary: PyXDG contains implementations of freedesktop.org standards in python +Summary: Implementations of freedesktop.org standards in python License: LGPL-2.1 Group: Development/Languages/Python Url: http://freedesktop.org/wiki/Software/pyxdg @@ -29,8 +29,8 @@ Source2: %{name}.keyring BuildRequires: hicolor-icon-theme BuildRequires: python-devel BuildRequires: python-nose -BuildRequires: shared-mime-info >= 1.4 -Requires: shared-mime-info >= 1.4 +BuildRequires: shared-mime-info +Requires: shared-mime-info BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -58,8 +58,10 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} && 0%{?suse_version} >= 1320 %check nosetests +%endif %files %defattr(-,root,root,-)