From f1e7b0abb3c18d7736183e103256312cc5e89ea9 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Nov 22 2022 15:40:09 +0000 Subject: Update to 4.2 Related-to: https://review.rdoproject.org/r/q/Iad509202530439d12e238d4e8e617346e2c92396 --- diff --git a/.python-tzlocal.metadata b/.python-tzlocal.metadata new file mode 100644 index 0000000..115384d --- /dev/null +++ b/.python-tzlocal.metadata @@ -0,0 +1 @@ +c409641a7a222b12db770d35de044e02328bdf36 SOURCES/tzlocal-4.2.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-tzlocal.spec b/SPECS/python-tzlocal.spec new file mode 100644 index 0000000..bfd73ae --- /dev/null +++ b/SPECS/python-tzlocal.spec @@ -0,0 +1,179 @@ +Name: python-tzlocal +Version: 4.2 +Release: 1%{?dist} +Summary: A Python module that tries to figure out what your local timezone is + +License: MIT +URL: https://github.com/regebro/tzlocal +# pypi/pythonhosted tarballs don't respect symlinks which are used in the test +Source0: %{url}/archive/%{version}/tzlocal-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global common_description %{expand: +This Python module returns a tzinfo object with the local timezone information. +It requires pytz, and returns pytz tzinfo objects. This module attempts to fix +a glaring hole in pytz, that there is no way to get the local timezone +information, unless you know the zoneinfo name.} + +%description %{common_description} + + +%package -n python3-tzlocal +Summary: %{summary} + +%description -n python3-tzlocal %{common_description} + + +%prep +%autosetup -n tzlocal-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -x test + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files tzlocal + + +%check +%pytest + + +%files -n python3-tzlocal -f %{pyproject_files} +# pyproject_files handles LICENSE.txt; verify with “rpm -qL -p …” +%doc README.rst CHANGES.txt + + +%changelog +* Mon Aug 22 2022 Benjamin A. Beasley - 4.2-1 +- Update to 4.2 (close RHBZ#1993583) + +* Mon Aug 22 2022 Benjamin A. Beasley - 2.1-6 +- Simplify and update various macros in the spec file +- Change source archive name to match extraction directory +- Exclude test_data with a patch instead of using “rm” +- Remove manual Requires, which is no longer required +- Remove dependency on deprecated python-mock +- Port to pyproject-rpm-macros + +* Fri Jul 22 2022 Fedora Release Engineering - 2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.1-4 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 2.1-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 30 2021 Joel Capitao - 2.1-1 +- Update to 2.1 + +* Thu Jun 03 2021 Python Maint - 2.0.0-5 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 2.0.0-2 +- Rebuilt for Python 3.9 + +* Fri May 01 2020 Piotr Popieluch - 2.0.0-1 +- Update to 2.0.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.5.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.5.1-9 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.5.1-8 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.5.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.5.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Dec 16 2018 Piotr Popieluch - 1.5.1-5 +- Remove Python 2 subpackage + +* Sat Jul 14 2018 Fedora Release Engineering - 1.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.5.1-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 09 2018 Piotr Popieluch - 1.5.1-1 +- Update to 1.5.1 + +* Thu Jul 27 2017 Fedora Release Engineering - 1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.3-2 +- Rebuild for Python 3.6 + +* Wed Nov 09 2016 piotr1212@gmail.com - 1.3-1 +- Update to upstream 1.3 +- Update specfile to latest python packaging guidelines + +* Wed Nov 09 2016 piotr1212@gmail.com - 1.2-6 +- Move python3-pytz requires to python3 subpackage (RHBZ#1393397) + +* Tue Jul 19 2016 Fedora Release Engineering - 1.2-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Fri Nov 06 2015 Piotr Popieluch - 1.2-2 +- Rebuilt for python 3.5 + +* Fri Jul 03 2015 Piotr Popieluch - 1.2-1 +- Update to 1.2 + +* Thu Jun 18 2015 Fedora Release Engineering - 1.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Nov 22 2014 Piotr Popieluch - 1.1.2-4 +- added epel support + +* Tue Oct 28 2014 Piotr Popieluch - 1.1.2-3 +- fixed python3-tzlocal %%summary to match python-tzlocal + +* Sat Oct 25 2014 Piotr Popieluch - 1.1.2-2 +- deleted group tag +- added license to python3 module +- rewritten summary +- wrapped description +- added rm -rf *.egg-info to %%prep +- added comments to the rm commands in %%install section + +* Fri Oct 24 2014 Piotr Popieluch - 1.1.2-1 +- Initial package