python3-pytz package creation
Signed-off-by: tuibuilder_pel7ppc64bebuilder0 <tuibuilder@powerel.org>master
parent
8668b2f982
commit
2fe4473378
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,62 @@
|
|||
%global srcname pytz
|
||||
|
||||
Name: python3-%{srcname}
|
||||
Version: 2017.2
|
||||
Release: 3%{?dist}
|
||||
Summary: World Timezone Definitions for Python
|
||||
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: http://pytz.sourceforge.net/
|
||||
Source0: https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.zip
|
||||
# Patch to use the system supplied zoneinfo files
|
||||
Patch0: 0001-Use-tzinfo-files-from-system-path.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%patch0 -p1 -b .zoneinfo
|
||||
|
||||
|
||||
%build
|
||||
%{__python3} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
%{__python3} setup.py install --optimize 2 --root %{buildroot}
|
||||
rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt README.txt
|
||||
%{python3_sitelib}/pytz/
|
||||
%{python3_sitelib}/*.egg-info
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 07 2019 Troy Dawson <tdawson@redhat.com>
|
||||
- Rebuilt to change main python from 3.4 to 3.6
|
||||
|
||||
* Thu Feb 07 2019 Lumír Balhar <lbalhar@redhat.com> - 2017.2-2
|
||||
- Updated patch to exclude also "leapseconds" file
|
||||
|
||||
* Tue Aug 29 2017 Orion Poplawski <orion@cora.nwra.com> - 2017.2-1
|
||||
- Update to 2017.2
|
||||
|
||||
* Tue Nov 8 2016 Orion Poplawski <orion@cora.nwra.com> - 2016.7-1
|
||||
- Update to 2016.7
|
||||
|
||||
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 2016.4-1
|
||||
- Initial EPEL7 package
|
Loading…
Reference in New Issue