Hello community, here is the log from the commit of package python-pyxdg for openSUSE:Factory checked in at 2017-05-09 18:03:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyxdg (Old) and /work/SRC/openSUSE:Factory/.python-pyxdg.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyxdg" Tue May 9 18:03:03 2017 rev:2 rq:493090 version:0.25 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyxdg/python-pyxdg.changes 2015-10-30 13:43:07.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyxdg.new/python-pyxdg.changes 2017-05-09 18:03:05.489388312 +0200 @@ -1,0 +2,23 @@ +Fri May 5 21:47:54 UTC 2017 - toddrme2...@gmail.com + +- Don't provide python2-xdg. Singlespec packages should use the + correct name. + +------------------------------------------------------------------- +Mon May 1 18:49:28 UTC 2017 - toddrme2...@gmail.com + +- Add literal python-xdg provides. + +------------------------------------------------------------------- +Mon Apr 24 17:35:04 UTC 2017 - toddrme2...@gmail.com + +- Fix source url +- Various small spec file cleanups. + +------------------------------------------------------------------- +Thu Apr 13 09:16:00 UTC 2017 - aloi...@gmx.com + +- Converted to single-spec +- Updated source URL + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyxdg.spec ++++++ --- /var/tmp/diff_new_pack.ShZGjv/_old 2017-05-09 18:03:07.305131727 +0200 +++ /var/tmp/diff_new_pack.ShZGjv/_new 2017-05-09 18:03:07.305131727 +0200 @@ -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,14 @@ # +%if 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320 +%bcond_without tests +%else +%bcond_with tests +%endif + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-pyxdg Version: 0.25 Release: 0 @@ -23,22 +31,29 @@ 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.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-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 +# Change <= to < after version 0.25 +%ifpython2 +Obsoletes: %{oldpython}-xdg < %{version} +Provides: %{oldpython}-xdg <= %{version} +%endif +%ifpython3 +Provides: python3-xdg = %{version} +Obsoletes: python3-xdg <= %{version} %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 +68,20 @@ %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 %{with tests} %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*.egg-info %changelog