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:
parent
e43e0a6994
commit
b447ace799
@ -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
|
Mon Mar 13 18:08:26 UTC 2017 - astieger@suse.com
|
||||||
|
|
||||||
|
@ -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
|
Name: python-pytz
|
||||||
Version: 2016.10
|
Version: 2016.10
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -39,14 +40,12 @@ BuildRequires: python-rpm-macros
|
|||||||
# Tests will use this package
|
# Tests will use this package
|
||||||
BuildRequires: timezone
|
BuildRequires: timezone
|
||||||
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-tz = 2014b
|
%ifpython2
|
||||||
Obsoletes: python-tz < 2014b
|
Provides: %{oldpython}-tz = 2014b
|
||||||
|
Obsoletes: %{oldpython}-tz < 2014b
|
||||||
|
%endif
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -83,7 +82,7 @@ rm -fr %{buildroot}%{python_sitelib}/pytz/zoneinfo
|
|||||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand nosetests-%$python_bin_suffix}
|
%python_exec %{_bindir}/nosetests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user