Accepting request 493090 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyxdg?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-05-09 16:03:03 +00:00 committed by Git OBS Bridge
commit a31f09d473
2 changed files with 54 additions and 15 deletions

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Fri May 5 21:47:54 UTC 2017 - toddrme2178@gmail.com
- Don't provide python2-xdg. Singlespec packages should use the
correct name.
-------------------------------------------------------------------
Mon May 1 18:49:28 UTC 2017 - toddrme2178@gmail.com
- Add literal python-xdg provides.
-------------------------------------------------------------------
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
- Converted to single-spec
- Updated source URL
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 22 09:16:26 UTC 2015 - toddrme2178@gmail.com Thu Oct 22 09:16:26 UTC 2015 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pyxdg # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-pyxdg
Version: 0.25 Version: 0.25
Release: 0 Release: 0
@ -23,22 +31,29 @@ Summary: Implementations of freedesktop.org standards in python
License: LGPL-2.1 License: LGPL-2.1
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://freedesktop.org/wiki/Software/pyxdg 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 Source1: http://people.freedesktop.org/~takluyver/pyxdg-%{version}.tar.gz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
BuildRequires: %{python_module devel}
%if %{with tests}
BuildRequires: %{python_module nose}
%endif
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: python-devel BuildRequires: python-rpm-macros
BuildRequires: python-nose
BuildRequires: shared-mime-info BuildRequires: shared-mime-info
Requires: shared-mime-info Requires: shared-mime-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 BuildArch: noarch
# Change <= to < after version 0.25
%ifpython2
Obsoletes: %{oldpython}-xdg < %{version}
Provides: %{oldpython}-xdg <= %{version}
%endif %endif
Provides: python-xdg = %{version} %ifpython3
Obsoletes: python-xdg <= %{version} Provides: python3-xdg = %{version}
Obsoletes: python3-xdg <= %{version}
%endif
%python_subpackages
%description %description
PyXDG is a python library to access freedesktop.org standards. Currently supported are: PyXDG is a python library to access freedesktop.org standards. Currently supported are:
@ -53,19 +68,20 @@ PyXDG is a python library to access freedesktop.org standards. Currently support
%setup -q -n pyxdg-%{version} %setup -q -n pyxdg-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%if 0%{?suse_version} && 0%{?suse_version} >= 1320 %if %{with tests}
%check %check
nosetests %python_expand nosetests-%{$python_bin_suffix}
%endif %endif
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README AUTHORS COPYING ChangeLog %doc README AUTHORS COPYING ChangeLog
%{python_sitelib}/* %{python_sitelib}/xdg
%{python_sitelib}/pyxdg-%{version}-py*.egg-info
%changelog %changelog