|
|
6e65be |
%global srcname tzlocal
|
|
|
6e65be |
%global sum A Python module that tries to figure out what your local timezone is
|
|
|
6e65be |
|
|
|
6e65be |
Name: python-tzlocal
|
|
rdobuilder |
f6fe6c |
Version: 2.1
|
|
rdobuilder |
f6fe6c |
Release: 2%{?dist}
|
|
|
6e65be |
Summary: %{sum}
|
|
|
6e65be |
|
|
|
6e65be |
License: MIT
|
|
|
6e65be |
URL: https://github.com/regebro/tzlocal
|
|
|
6e65be |
# pypi/pythonhosted tarballs don't respect symlinks which are used in the test
|
|
|
6e65be |
Source0: https://github.com/regebro/tzlocal/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
6e65be |
|
|
|
6e65be |
BuildArch: noarch
|
|
|
6e65be |
|
|
|
6e65be |
BuildRequires: python3-devel
|
|
|
6e65be |
BuildRequires: python3-mock
|
|
|
6e65be |
BuildRequires: python3-pytz
|
|
|
6e65be |
BuildRequires: python3-setuptools
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%description
|
|
rdobuilder |
f6fe6c |
This Python module returns a tzinfo object with the local timezone information.
|
|
rdobuilder |
f6fe6c |
It requires pytz, and returns pytz tzinfo objects. This module attempts to fix
|
|
rdobuilder |
f6fe6c |
a glaring hole in pytz, that there is no way to get the local timezone
|
|
|
6e65be |
information, unless you know the zoneinfo name.
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%package -n python3-%{srcname}
|
|
|
6e65be |
Summary: %{sum}
|
|
|
6e65be |
License: MIT
|
|
|
6e65be |
Requires: python3-pytz
|
|
|
6e65be |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
6e65be |
|
|
|
6e65be |
%description -n python3-%{srcname}
|
|
rdobuilder |
f6fe6c |
This Python module returns a tzinfo object with the local timezone information.
|
|
rdobuilder |
f6fe6c |
It requires pytz, and returns pytz tzinfo objects. This module attempts to fix
|
|
rdobuilder |
f6fe6c |
a glaring hole in pytz, that there is no way to get the local timezone
|
|
|
6e65be |
information, unless you know the zoneinfo name.
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%prep
|
|
|
6e65be |
%autosetup -n %{srcname}-%{version}
|
|
|
6e65be |
|
|
|
6e65be |
rm -rf *.egg-info
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%build
|
|
|
6e65be |
%py3_build
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%install
|
|
|
6e65be |
%py3_install
|
|
|
6e65be |
# Don't install unit tests and test_data
|
|
|
6e65be |
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test_data
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%check
|
|
|
6e65be |
%{__python3} setup.py test
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%files -n python3-%{srcname}
|
|
|
6e65be |
%doc README.rst CHANGES.txt
|
|
|
6e65be |
%license LICENSE.txt
|
|
|
6e65be |
%{python3_sitelib}/%{srcname}
|
|
|
6e65be |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
|
6e65be |
|
|
|
6e65be |
|
|
|
6e65be |
%changelog
|
|
rdobuilder |
f6fe6c |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
rdobuilder |
f6fe6c |
- Second attempt - Rebuilt for
|
|
rdobuilder |
f6fe6c |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
f6fe6c |
|
|
rdobuilder |
f6fe6c |
* Wed Jun 30 2021 Joel Capitao <jcapitao@redhat.com> - 2.1-1
|
|
rdobuilder |
f6fe6c |
- Update to 2.1
|
|
rdobuilder |
f6fe6c |
|
|
rdobuilder |
f6fe6c |
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.0.0-5
|
|
rdobuilder |
f6fe6c |
- Rebuilt for Python 3.10
|
|
rdobuilder |
f6fe6c |
|
|
|
6e65be |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
|
|
|
6e65be |
- Rebuilt for Python 3.9
|
|
|
6e65be |
|
|
|
6e65be |
* Fri May 01 2020 Piotr Popieluch <piotr1212@gmail.com> - 2.0.0-1
|
|
|
6e65be |
- Update to 2.0.0
|
|
|
6e65be |
|
|
|
6e65be |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-10
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-9
|
|
|
6e65be |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
6e65be |
|
|
|
6e65be |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-8
|
|
|
6e65be |
- Rebuilt for Python 3.8
|
|
|
6e65be |
|
|
|
6e65be |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Sun Dec 16 2018 Piotr Popieluch <piotr1212@gmail.com> - 1.5.1-5
|
|
|
6e65be |
- Remove Python 2 subpackage
|
|
|
6e65be |
|
|
|
6e65be |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-3
|
|
|
6e65be |
- Rebuilt for Python 3.7
|
|
|
6e65be |
|
|
|
6e65be |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Tue Jan 09 2018 Piotr Popieluch <piotr1212@gmail.com> - 1.5.1-1
|
|
|
6e65be |
- Update to 1.5.1
|
|
|
6e65be |
|
|
|
6e65be |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3-2
|
|
|
6e65be |
- Rebuild for Python 3.6
|
|
|
6e65be |
|
|
|
6e65be |
* Wed Nov 09 2016 piotr1212@gmail.com - 1.3-1
|
|
|
6e65be |
- Update to upstream 1.3
|
|
|
6e65be |
- Update specfile to latest python packaging guidelines
|
|
|
6e65be |
|
|
|
6e65be |
* Wed Nov 09 2016 piotr1212@gmail.com - 1.2-6
|
|
|
6e65be |
- Move python3-pytz requires to python3 subpackage (RHBZ#1393397)
|
|
|
6e65be |
|
|
|
6e65be |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
|
|
6e65be |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
6e65be |
|
|
|
6e65be |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
6e65be |
|
|
|
6e65be |
* Fri Nov 06 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2-2
|
|
|
6e65be |
- Rebuilt for python 3.5
|
|
|
6e65be |
|
|
|
6e65be |
* Fri Jul 03 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2-1
|
|
|
6e65be |
- Update to 1.2
|
|
|
6e65be |
|
|
|
6e65be |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-5
|
|
|
6e65be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
6e65be |
|
|
|
6e65be |
* Sat Nov 22 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-4
|
|
|
6e65be |
- added epel support
|
|
|
6e65be |
|
|
|
6e65be |
* Tue Oct 28 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-3
|
|
|
6e65be |
- fixed python3-tzlocal %%summary to match python-tzlocal
|
|
|
6e65be |
|
|
|
6e65be |
* Sat Oct 25 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-2
|
|
|
6e65be |
- deleted group tag
|
|
|
6e65be |
- added license to python3 module
|
|
|
6e65be |
- rewritten summary
|
|
|
6e65be |
- wrapped description
|
|
|
6e65be |
- added rm -rf *.egg-info to %%prep
|
|
|
6e65be |
- added comments to the rm commands in %%install section
|
|
|
6e65be |
|
|
|
6e65be |
* Fri Oct 24 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-1
|
|
|
6e65be |
- Initial package
|