51098ba
Name:           python-tzlocal
9db514f
Version:        4.2
8a7dca1
Release:        6%{?dist}
a945c47
Summary:        A Python module that tries to figure out what your local timezone is
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
9f62019
Source0:        %{url}/archive/%{version}/tzlocal-%{version}.tar.gz
51098ba
51098ba
BuildArch:      noarch
51098ba
51098ba
BuildRequires:  python3-devel
311843c
a945c47
%global common_description %{expand:
6c96211
This Python module returns a tzinfo object with the local timezone information.
a945c47
It requires pytz, and returns pytz tzinfo objects. This module attempts to fix
6c96211
a glaring hole in pytz, that there is no way to get the local timezone
a945c47
information, unless you know the zoneinfo name.}
311843c
a945c47
%description %{common_description}
311843c
a945c47
a945c47
%package -n python3-tzlocal
a945c47
Summary:        %{summary}
51098ba
a945c47
%description -n python3-tzlocal %{common_description}
51098ba
51098ba
51098ba
%prep
9db514f
%autosetup -n tzlocal-%{version}
51098ba
51098ba
57c9a34
%generate_buildrequires
9db514f
%pyproject_buildrequires -x test
57c9a34
57c9a34
51098ba
%build
57c9a34
%pyproject_wheel
51098ba
51098ba
51098ba
%install
57c9a34
%pyproject_install
57c9a34
%pyproject_save_files tzlocal
51098ba
51098ba
51098ba
%check
9db514f
%pytest
51098ba
51098ba
57c9a34
%files -n python3-tzlocal -f %{pyproject_files}
57c9a34
# pyproject_files handles LICENSE.txt; verify with “rpm -qL -p …”
df347a9
%doc README.rst CHANGES.txt
51098ba
51098ba
51098ba
%changelog
8a7dca1
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-6
8a7dca1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8a7dca1
d35f5a8
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-5
d35f5a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d35f5a8
510fc94
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-4
510fc94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
510fc94
70f7ab7
* Sat Jun 17 2023 Python Maint <python-maint@redhat.com> - 4.2-3
70f7ab7
- Rebuilt for Python 3.12
70f7ab7
c4236b9
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-2
c4236b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c4236b9
9db514f
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 4.2-1
9db514f
- Update to 4.2 (close RHBZ#1993583)
9db514f
a945c47
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-6
a945c47
- Simplify and update various macros in the spec file
9f62019
- Change source archive name to match extraction directory
a23a265
- Exclude test_data with a patch instead of using “rm”
04c4736
- Remove manual Requires, which is no longer required
7d08902
- Remove dependency on deprecated python-mock
57c9a34
- Port to pyproject-rpm-macros
a945c47
fbb6326
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
fbb6326
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
fbb6326
32eb7b9
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1-4
32eb7b9
- Rebuilt for Python 3.11
32eb7b9
bf52789
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-3
bf52789
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bf52789
98d2f1b
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
98d2f1b
- Second attempt - Rebuilt for
98d2f1b
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
98d2f1b
5b150da
* Wed Jun 30 2021 Joel Capitao <jcapitao@redhat.com> - 2.1-1
6c96211
- Update to 2.1
6c96211
4e39af9
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.0.0-5
4e39af9
- Rebuilt for Python 3.10
4e39af9
b81aa03
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
b81aa03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b81aa03
221e043
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
221e043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
221e043
6c387cf
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-2
6c387cf
- Rebuilt for Python 3.9
6c387cf
fa76bf1
* Fri May 01 2020 Piotr Popieluch <piotr1212@gmail.com> - 2.0.0-1
fa76bf1
- Update to 2.0.0
fa76bf1
d10e9d7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-10
d10e9d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d10e9d7
175a34e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-9
175a34e
- Rebuilt for Python 3.8.0rc1 (#1748018)
175a34e
b57f73c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-8
b57f73c
- Rebuilt for Python 3.8
b57f73c
30221c7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
30221c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
30221c7
1e79949
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
1e79949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e79949
0bce0d1
* Sun Dec 16 2018 Piotr Popieluch <piotr1212@gmail.com> - 1.5.1-5
0bce0d1
- Remove Python 2 subpackage
0bce0d1
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