From c3fb7f790a09bc262ef3e0cf98194276ec1e7bdc0540d1697a7e74febf5f962e Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 24 Apr 2017 17:36:28 +0000 Subject: [PATCH] Accepting request 490831 from home:TheBlackCat:branches:devel:languages:python - Fix source URL - Various small spec file cleanups. OBS-URL: https://build.opensuse.org/request/show/490831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyxdg?expand=0&rev=5 --- python-pyxdg.changes | 6 ++++++ python-pyxdg.spec | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/python-pyxdg.changes b/python-pyxdg.changes index 52bd35c..a8e5ae8 100644 --- a/python-pyxdg.changes +++ b/python-pyxdg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 24 17:35:04 UTC 2017 - toddrme2178@gmail.com + +- Fix source url +- Various small spec file cleanups. + ------------------------------------------------------------------- Thu Apr 13 09:16:00 UTC 2017 - aloisio@gmx.com diff --git a/python-pyxdg.spec b/python-pyxdg.spec index f38970b..f0cd66c 100644 --- a/python-pyxdg.spec +++ b/python-pyxdg.spec @@ -16,6 +16,12 @@ # +%if 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320 +%bcond_without tests +%else +%bcond_with tests +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyxdg Version: 0.25 @@ -24,11 +30,13 @@ Summary: Implementations of freedesktop.org standards in python License: LGPL-2.1 Group: Development/Languages/Python Url: http://freedesktop.org/wiki/Software/pyxdg -Source: https://files.python.org/packages/source/p/pyxdg/pyxdg-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pyxdg/pyxdg-%{version}.tar.gz Source1: http://people.freedesktop.org/~takluyver/pyxdg-%{version}.tar.gz.asc Source2: %{name}.keyring BuildRequires: %{python_module devel} +%if %{with tests} BuildRequires: %{python_module nose} +%endif BuildRequires: hicolor-icon-theme BuildRequires: python-rpm-macros BuildRequires: shared-mime-info @@ -57,7 +65,7 @@ PyXDG is a python library to access freedesktop.org standards. Currently support %install %python_install -%if 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320 +%if %{with tests} %check %python_expand nosetests-%{$python_bin_suffix} %endif @@ -66,6 +74,6 @@ PyXDG is a python library to access freedesktop.org standards. Currently support %defattr(-,root,root,-) %doc README AUTHORS COPYING ChangeLog %{python_sitelib}/xdg -%{python_sitelib}/pyxdg-%{version}-py%{python_version}.egg-info +%{python_sitelib}/pyxdg-%{version}-py*.egg-info %changelog