Accepting request 487790 from home:alois:branches:devel:languages:python

2nd attempt

OBS-URL: https://build.opensuse.org/request/show/487790
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyxdg?expand=0&rev=4
This commit is contained in:
Todd R 2017-04-24 16:29:37 +00:00 committed by Git OBS Bridge
parent f5fe566c3d
commit a198c1fc19
2 changed files with 20 additions and 14 deletions

View File

@ -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 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,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyxdg Name: python-pyxdg
Version: 0.25 Version: 0.25
Release: 0 Release: 0
@ -23,22 +24,20 @@ 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.python.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}
BuildRequires: %{python_module nose}
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
%endif
Provides: python-xdg = %{version} Provides: python-xdg = %{version}
Obsoletes: python-xdg <= %{version} Obsoletes: python-xdg <= %{version}
%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 +52,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 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320
%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%{python_version}.egg-info
%changelog %changelog