2c82c5
Name:           pytz
a0b60b
Version:        2019.2
66e6e3
Release:        2%{?dist}
2c82c5
Summary:        World Timezone Definitions for Python
2c82c5
2c82c5
License:        MIT
2c82c5
URL:            http://pytz.sourceforge.net/
568be6
Source0:        %pypi_source
Orion Poplawski 26b8a0
# Patch to use the system supplied zoneinfo files
Orion Poplawski 5eac85
Patch0:         pytz-zoneinfo.patch
3edecc
# https://bugzilla.redhat.com/1497572
3edecc
Patch1:         remove_tzinfo_test.patch
d55d45
2c82c5
BuildArch:      noarch
2c82c5
914043
%global _description\
914043
pytz brings the Olson tz database into Python. This library allows accurate\
914043
and cross platform timezone calculations using Python 2.3 or higher. It\
914043
also solves the issue of ambiguous times at the end of daylight savings,\
914043
which you can read more about in the Python Library Reference\
914043
(datetime.tzinfo).\
914043
\
Orion Poplawski 5eac85
Almost all (over 540) of the Olson timezones are supported.
2c82c5
914043
%description %_description
914043
568be6
914043
%package -n python2-%{name}
568be6
Summary:        %summary
914043
%{?python_provide:%python_provide python2-%{name}}
568be6
BuildRequires:  python2-devel
568be6
BuildRequires:  python2-pytest
568be6
Requires:       tzdata
914043
# Remove before F30
c4971c
Provides: pytz = %{version}-%{release}
914043
Obsoletes: pytz < %{version}-%{release}
914043
914043
%description -n python2-%{name} %_description
914043
568be6
790efc
%package -n python3-%{name}
568be6
Summary:        %summary
568be6
%{?python_provide:%python_provide python3-%{name}}
Orion Poplawski 5eac85
BuildRequires:  python3-devel
8a8882
BuildRequires:  python3-pytest
Orion Poplawski 5eac85
Requires:       tzdata
790efc
568be6
%description -n python3-%{name} %_description
790efc
790efc
2c82c5
%prep
568be6
%autosetup -p1
790efc
2c82c5
2c82c5
%build
568be6
%py2_build
568be6
%py3_build
790efc
2c82c5
2c82c5
%install
568be6
%py2_install
Orion Poplawski 5eac85
rm -r %{buildroot}%{python2_sitelib}/pytz/zoneinfo
2689a3
pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitelib}
790efc
568be6
%py3_install
Orion Poplawski 5eac85
rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo
2689a3
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitelib}
790efc
d4c715
Orion Poplawski 5eac85
%check
568be6
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m pytest -v
568be6
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
Orion Poplawski 5eac85
Orion Poplawski 5eac85
914043
%files -n python2-%{name}
Orion Poplawski e2a5df
%license LICENSE.txt
568be6
%doc README.txt
Orion Poplawski 9ffba5
%{python2_sitelib}/pytz/
Orion Poplawski 9ffba5
%{python2_sitelib}/*.egg-info
2c82c5
790efc
%files -n python3-pytz
Orion Poplawski e2a5df
%license LICENSE.txt
568be6
%doc README.txt
790efc
%{python3_sitelib}/pytz/
790efc
%{python3_sitelib}/*.egg-info
790efc
790efc
2c82c5
%changelog
66e6e3
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2019.2-2
66e6e3
- Rebuilt for Python 3.8
66e6e3
a0b60b
* Wed Jul 31 2019 Gwyn Ciesla <gwync@protonmail.com> - 2019.2-1
a0b60b
- 2019.2
a0b60b
5f8927
* Fri Jul 26 2019 Gwyn Ciesla <gwync@protonmail.com> - 2019.1-1
5f8927
- 2019.1
5f8927
002329
* Tue Mar 12 2019 Miro Hrončok <mhroncok@redhat.com> - 2018.9-1
002329
- Update to 2018.9
002329
- Remove leapseconds from pytz.all_timezones (#1642003)
002329
9206b3
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.5-2
9206b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9206b3
568be6
* Thu Aug 23 2018 Miro Hrončok <mhroncok@redhat.com> - 2018.5-1
568be6
- Update to 2018.5 (#1508227)
568be6
b75f88
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-10
b75f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b75f88
ea00ab
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 2017.2-9
ea00ab
- Rebuilt for Python 3.7
ea00ab
2689a3
* Wed May 23 2018 Miro Hrončok <mhroncok@redhat.com> - 2017.2-8
2689a3
- Fix ambiguous shebangs
2689a3
9ad2da
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-7
9ad2da
- Switch __python for __python2 macro.
9ad2da
3edecc
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-6
3edecc
- remove test_tzinfo.PicklingTest.testRoundtrip which fails with our
3edecc
  system-wide timezone database (#1497572)
3edecc
ffe82e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-5
ffe82e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ffe82e
4f14c8
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 2017.2-4
4f14c8
- Cleanup spec file conditionals
4f14c8
914043
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2017.2-3
914043
- Python 2 binary package renamed to python2-pytz
914043
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
914043
2852ca
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-2
2852ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2852ca
Petr Šabata 5aa97d
* Mon Jul 17 2017 Petr Šabata <contyk@redhat.com> - 2017.2-1
Petr Šabata 5aa97d
- Update to 2017.2
Petr Šabata 5aa97d
67de44
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.10-4
67de44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
67de44
8a8882
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 2016.10-3
8a8882
- Enable tests
8a8882
9474d2
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2016.10-2
9474d2
- Rebuild for Python 3.6
9474d2
- Disable python3 tests for now
9474d2
Orion Poplawski df6001
* Tue Dec 6 2016 Orion Poplawski <orion@cora.nwra.com> - 2016.10-1
Orion Poplawski df6001
- Update to 2016.10
Orion Poplawski df6001
Orion Poplawski 29535d
* Tue Nov 8 2016 Orion Poplawski <orion@cora.nwra.com> - 2016.7-1
Orion Poplawski 29535d
- Update to 2016.7
Orion Poplawski 29535d
40029e
* Thu Jul 21 2016 Matěj Cepl <mcepl@redhat.com> - 2016.6.1-1
40029e
- Update to 2016.6.1 (RHBZ #1356337)
40029e
- Fix Source0 URL to override a change in PyPI URLs (see
40029e
  https://bitbucket.org/pypa/pypi/issues/438/)
40029e
9d2b57
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2016.4-3
9d2b57
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9d2b57
Orion Poplawski e2a5df
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> 2016.4-1
Orion Poplawski e2a5df
- Use proper PYTHONPATH with python3 test
Orion Poplawski e2a5df
- Use %%license
Orion Poplawski e2a5df
- Drop BuildRoot and %%clean
Orion Poplawski e2a5df
65cfcf
* Sat Apr 23 2016 Matěj Cepl <mcepl@redhat.com> 2016.4-1
65cfcf
- Update to 2016.4 (RHBZ #1265036)
65cfcf
2de8cb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015.7-3
2de8cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2de8cb
Robert Kuska 8dd5b1
* Tue Nov 03 2015 Robert Kuska <rkuska@redhat.com> - 2015.7-2
Robert Kuska 8dd5b1
- Rebuilt for Python3.5 rebuild
Robert Kuska 8dd5b1
Orion Poplawski 1c0d3a
* Mon Oct 26 2015 Orion Poplawski <orion@cora.nwra.com> - 2015.7-1
Orion Poplawski 1c0d3a
- Update to 2015.7
Orion Poplawski 1c0d3a
Orion Poplawski 5eac85
* Sun Aug 30 2015 Orion Poplawski <orion@cora.nwra.com> - 2015.4-1
Orion Poplawski 5eac85
- Update to 2015.4 (bug #1161236)
Orion Poplawski 5eac85
- Do not ship zoneinfo with python3 package (bug #1251554)
Orion Poplawski 5eac85
- Run tests
Orion Poplawski 5eac85
977597
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012d-8
977597
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
977597
ceedcc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012d-7
ceedcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ceedcc
a9cfdb
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2012d-6
a9cfdb
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
a9cfdb
b69bbe
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012d-5
b69bbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b69bbe
c3e717
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012d-4
c3e717
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c3e717
d02583
* Thu Jan  3 2013 David Malcolm <dmalcolm@redhat.com> - 2012d-3
d02583
- remove rhel logic from with_python3 conditional
d02583
690637
* Fri Sep 14 2012 Jon Ciesla <limburgher@gmail.com> - 2012d-2
690637
- Use system zoneinfo, BZ 857266.
690637
790efc
* Thu Aug 23 2012 Jon Ciesla <limburgher@gmail.com> - 2012d-1
790efc
- Latest upstream, python3 support, BZ 851226.
790efc
179399
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-6
179399
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
179399
bc3bf1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-5
bc3bf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bc3bf1
5995e5
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010h-4
5995e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5995e5
3c696c
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2010h-3
3c696c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3c696c
1a8b8a
* Mon Jun 28 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2010h-2
1a8b8a
- Define => global
1a8b8a
b276eb
* Tue Apr 27 2010 Jon Ciesla <limb@jcomserv.net> - 2010h-1
b276eb
- Update to current version, BZ 573252.
b276eb
b79551
* Mon Feb 01 2010 Jon Ciesla <limb@jcomserv.net> - 2009i-7
d55d45
- Corrected Source0 URL, BZ 560168.
d55d45
8ba1c5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-6
8ba1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8ba1c5
374d75
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-5
374d75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
374d75
d8fa0e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2008i-4
d8fa0e
- Rebuild for Python 2.6
d8fa0e
fd97fa
* Tue Nov 18 2008 Jef Spaleta <jspaleta at="" fedoraproject="" dot="" org=""> 2008i-3
fd97fa
- Apply patch correctly.
fd97fa
ab3803
* Thu Nov 13 2008 Jef Spaleta <jspaleta at="" fedoraproject="" dot="" org=""> 2008i-2
ab3803
- Updated tzdata patch from Petr Machata bug 471014
ab3803
7ae144
* Tue Nov 11 2008 Jef Spaleta <jspaleta at="" fedoraproject="" dot="" org=""> 2008i-1
7ae144
- Update to latest, now using timezone files provided by tzdata package
7ae144
a6d042
* Fri Jan 04 2008 Jef Spaleta <jspaleta@gmail.com> 2006p-3
a6d042
- Fix for egg-info file creation
a6d042
7f9061
* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 2006p-2
7f9061
- Bump for rebuild against python 2.5 and change BR to python-devel accordingly
7f9061
9aa5b7
* Fri Dec  8 2006 Orion Poplawski <orion@cora.nwra.com> 2006p-1
9aa5b7
- Update to 2006p
9aa5b7
d4c715
* Thu Sep  7 2006 Orion Poplawski <orion@cora.nwra.com> 2006g-1
d4c715
- Update to 2006g
d4c715
ae7550
* Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-2
ae7550
- Rebuild for gcc/glibc changes
ae7550
96b49d
* Tue Jan  3 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-1
96b49d
- Update to 2005r
96b49d
910494
* Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005m-1
910494
- Update to 2005m
910494
2c82c5
* Fri Jul 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-2
2c82c5
- Remove -O1 from install command
2c82c5
2c82c5
* Tue Jul 05 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-1
2c82c5
- Initial Fedora Extras package