Accepting request 479251 from devel:languages:python:singlespec

- singlespec tweaks

OBS-URL: https://build.opensuse.org/request/show/479251
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=52
This commit is contained in:
Jan Matejek 2017-03-14 13:23:11 +00:00 committed by Git OBS Bridge
parent e43e0a6994
commit b447ace799
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 13 19:31:04 UTC 2017 - jmatejek@suse.com
- singlespec tweaks
-------------------------------------------------------------------
Mon Mar 13 18:08:26 UTC 2017 - astieger@suse.com

View File

@ -16,7 +16,8 @@
#
%{?!python_module:%define python_module() python-%1 python3-%1}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pytz
Version: 2016.10
Release: 0
@ -39,14 +40,12 @@ BuildRequires: python-rpm-macros
# Tests will use this package
BuildRequires: timezone
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-tz = 2014b
Obsoletes: python-tz < 2014b
%ifpython2
Provides: %{oldpython}-tz = 2014b
Obsoletes: %{oldpython}-tz < 2014b
%endif
%python_subpackages
@ -83,7 +82,7 @@ rm -fr %{buildroot}%{python_sitelib}/pytz/zoneinfo
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%check
%{python_expand nosetests-%$python_bin_suffix}
%python_exec %{_bindir}/nosetests
%files %{python_files}
%defattr(-,root,root,-)