Python 2 binary package renamed to python2-pytz
This commit is contained in:
parent
2852ca81b8
commit
9140438e71
36
pytz.spec
36
pytz.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: pytz
|
||||
Version: 2017.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: World Timezone Definitions for Python
|
||||
|
||||
Group: Development/Languages
|
||||
@ -19,18 +19,28 @@ Patch0: pytz-zoneinfo.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: pytest
|
||||
Requires: tzdata
|
||||
Provides: python2-pytz = %{version}-%{release}
|
||||
|
||||
%description
|
||||
pytz brings the Olson tz database into Python. This library allows accurate
|
||||
and cross platform timezone calculations using Python 2.3 or higher. It
|
||||
also solves the issue of ambiguous times at the end of daylight savings,
|
||||
which you can read more about in the Python Library Reference
|
||||
(datetime.tzinfo).
|
||||
|
||||
%global _description\
|
||||
pytz brings the Olson tz database into Python. This library allows accurate\
|
||||
and cross platform timezone calculations using Python 2.3 or higher. It\
|
||||
also solves the issue of ambiguous times at the end of daylight savings,\
|
||||
which you can read more about in the Python Library Reference\
|
||||
(datetime.tzinfo).\
|
||||
\
|
||||
Almost all (over 540) of the Olson timezones are supported.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-%{name}
|
||||
Summary: %summary
|
||||
Requires: tzdata
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
# Remove before F30
|
||||
Provides: pytz%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: pytz < %{version}-%{release}
|
||||
|
||||
%description -n python2-%{name} %_description
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{name}
|
||||
Summary: World Timezone Definitions for Python
|
||||
@ -80,7 +90,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%files -n python2-%{name}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt README.txt
|
||||
%{python2_sitelib}/pytz/
|
||||
@ -96,6 +106,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2017.2-3
|
||||
- Python 2 binary package renamed to python2-pytz
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user