|
|
51098ba |
%global srcname tzlocal
|
|
|
1f7276e |
%global sum A Python module that tries to figure out what your local timezone is
|
|
|
51098ba |
|
|
|
51098ba |
Name: python-tzlocal
|
|
|
df347a9 |
Version: 1.5.1
|
|
|
3cef594 |
Release: 5%{?dist}
|
|
|
1f7276e |
Summary: %{sum}
|
|
|
51098ba |
|
|
|
df347a9 |
License: MIT
|
|
|
51098ba |
URL: https://github.com/regebro/tzlocal
|
|
|
df347a9 |
# pypi/pythonhosted tarballs don't respect symlinks which are used in the test
|
|
|
df347a9 |
Source0: https://github.com/regebro/tzlocal/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
51098ba |
|
|
|
51098ba |
BuildArch: noarch
|
|
|
51098ba |
|
|
|
51098ba |
BuildRequires: python3-devel
|
|
|
df347a9 |
BuildRequires: python3-mock
|
|
|
51098ba |
BuildRequires: python3-pytz
|
|
|
51098ba |
BuildRequires: python3-setuptools
|
|
|
1f7276e |
|
|
|
1f7276e |
Requires: python3-pytz
|
|
|
1f7276e |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
51098ba |
|
|
|
3cef594 |
%description
|
|
|
51098ba |
This Python module returns a tzinfo object with the local timezone information.
|
|
|
51098ba |
It requires pytz, and returns pytz tzinfo objects. This module attempts to fix
|
|
|
51098ba |
a glaring hole in pytz, that there is no way to get the local timezone
|
|
|
51098ba |
information, unless you know the zoneinfo name.
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
51098ba |
%prep
|
|
|
1f7276e |
%autosetup -n %{srcname}-%{version}
|
|
|
51098ba |
|
|
|
51098ba |
rm -rf *.egg-info
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
51098ba |
%build
|
|
|
1f7276e |
%py3_build
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
51098ba |
%install
|
|
|
1f7276e |
%py3_install
|
|
|
51098ba |
# Don't install unit tests and test_data
|
|
|
51098ba |
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test_data
|
|
|
51098ba |
rm %{buildroot}%{python3_sitelib}/%{srcname}/tests.py
|
|
|
51098ba |
rm %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests.cpython*
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
51098ba |
%check
|
|
|
51098ba |
%{__python3} setup.py test
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
3cef594 |
%files
|
|
|
df347a9 |
%doc README.rst CHANGES.txt
|
|
|
b62c1ce |
%license LICENSE.txt
|
|
|
51098ba |
%{python3_sitelib}/%{srcname}
|
|
|
51098ba |
%{python3_sitelib}/%{srcname}-%{version}-py3.?.egg-info
|
|
|
51098ba |
|
|
|
51098ba |
|
|
|
51098ba |
%changelog
|
|
|
3cef594 |
* Sun Dec 16 2018 Piotr Popieluch <piotr1212@gmail.com> - 1.5.1-5
|
|
|
3cef594 |
- Remove Python 2 subpackage #1659744
|
|
|
3cef594 |
|
|
|
62638a9 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
|
|
|
62638a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
62638a9 |
|
|
|
054bf1b |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-3
|
|
|
054bf1b |
- Rebuilt for Python 3.7
|
|
|
054bf1b |
|
|
|
9f31f0d |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
9f31f0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
9f31f0d |
|
|
|
df347a9 |
* Tue Jan 09 2018 Piotr Popieluch <piotr1212@gmail.com> - 1.5.1-1
|
|
|
df347a9 |
- Update to 1.5.1
|
|
|
df347a9 |
|
|
|
9b86534 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
|
|
|
9b86534 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
9b86534 |
|
|
|
aebedcc |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
|
|
|
aebedcc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
aebedcc |
|
|
|
9f425b0 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3-2
|
|
|
9f425b0 |
- Rebuild for Python 3.6
|
|
|
9f425b0 |
|
|
|
cea6c95 |
* Wed Nov 09 2016 piotr1212@gmail.com - 1.3-1
|
|
|
cea6c95 |
- Update to upstream 1.3
|
|
|
cea6c95 |
- Update specfile to latest python packaging guidelines
|
|
|
cea6c95 |
|
|
|
a4bdc77 |
* Wed Nov 09 2016 piotr1212@gmail.com - 1.2-6
|
|
|
a4bdc77 |
- Move python3-pytz requires to python3 subpackage (RHBZ#1393397)
|
|
|
a4bdc77 |
|
|
|
301f148 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
|
|
301f148 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
301f148 |
|
|
|
876060b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
|
|
|
876060b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
876060b |
|
|
|
4b222a7 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
4b222a7 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
4b222a7 |
|
|
|
5472d9f |
* Fri Nov 06 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2-2
|
|
|
5472d9f |
- Rebuilt for python 3.5
|
|
|
5472d9f |
|
|
|
b62c1ce |
* Fri Jul 03 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2-1
|
|
|
b62c1ce |
- Update to 1.2
|
|
|
b62c1ce |
|
|
|
756a55c |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-5
|
|
|
756a55c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
756a55c |
|
|
|
3479a9c |
* Sat Nov 22 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-4
|
|
|
3479a9c |
- added epel support
|
|
|
3479a9c |
|
|
|
011a5a6 |
* Tue Oct 28 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-3
|
|
|
011a5a6 |
- fixed python3-tzlocal %%summary to match python-tzlocal
|
|
|
011a5a6 |
|
|
|
51098ba |
* Sat Oct 25 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-2
|
|
|
51098ba |
- deleted group tag
|
|
|
51098ba |
- added license to python3 module
|
|
|
51098ba |
- rewritten summary
|
|
|
51098ba |
- wrapped description
|
|
|
51098ba |
- added rm -rf *.egg-info to %%prep
|
|
|
51098ba |
- added comments to the rm commands in %%install section
|
|
|
51098ba |
|
|
|
51098ba |
* Fri Oct 24 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-1
|
|
|
51098ba |
- Initial package
|