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
This commit is contained in:
Todd R 2015-10-22 09:24:38 +00:00 committed by Git OBS Bridge
parent 03d883a9fe
commit 3dff08533c
2 changed files with 13 additions and 3 deletions

View File

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

View File

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