diff --git a/python-pyxdg.changes b/python-pyxdg.changes index 095b59b..52bd35c 100644 --- a/python-pyxdg.changes +++ b/python-pyxdg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 13 09:16:00 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Updated source URL + ------------------------------------------------------------------- Thu Oct 22 09:16:26 UTC 2015 - toddrme2178@gmail.com diff --git a/python-pyxdg.spec b/python-pyxdg.spec index 175a0ec..f38970b 100644 --- a/python-pyxdg.spec +++ b/python-pyxdg.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyxdg # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyxdg Version: 0.25 Release: 0 @@ -23,22 +24,20 @@ 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://pypi.python.org/packages/source/p/pyxdg/pyxdg-%{version}.tar.gz +Source: https://files.python.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} +BuildRequires: %{python_module nose} BuildRequires: hicolor-icon-theme -BuildRequires: python-devel -BuildRequires: python-nose +BuildRequires: python-rpm-macros 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()")} -%else BuildArch: noarch -%endif Provides: python-xdg = %{version} Obsoletes: python-xdg <= %{version} +%python_subpackages %description PyXDG is a python library to access freedesktop.org standards. Currently supported are: @@ -53,19 +52,20 @@ PyXDG is a python library to access freedesktop.org standards. Currently support %setup -q -n pyxdg-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%if 0%{?suse_version} && 0%{?suse_version} >= 1320 +%if 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320 %check -nosetests +%python_expand nosetests-%{$python_bin_suffix} %endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc README AUTHORS COPYING ChangeLog -%{python_sitelib}/* +%{python_sitelib}/xdg +%{python_sitelib}/pyxdg-%{version}-py%{python_version}.egg-info %changelog