diff --git a/python-tzlocal.spec b/python-tzlocal.spec index 709b953..e133a0b 100644 --- a/python-tzlocal.spec +++ b/python-tzlocal.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-tzlocal -Version: 5.0.1 +Version: 5.2 Release: 1 Summary: tzinfo object for the local timezone License: MIT URL: https://github.com/regebro/tzlocal -Source0: https://files.pythonhosted.org/packages/ee/f5/3e644f08771b242f7460438cdc0aaad4d1484c1f060f1e52f4738d342983/tzlocal-5.0.1.tar.gz +Source0: https://files.pythonhosted.org/packages/04/d3/c19d65ae67636fe63953b20c2e4a8ced4497ea232c43ff8d01db16de8dc0/tzlocal-5.2.tar.gz BuildArch: noarch Requires: python3-pytz @@ -29,6 +29,8 @@ Summary: tzinfo object for the local timezone Provides: python-tzlocal BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel %description -n python3-tzlocal This Python module returns a ``tzinfo`` object with the local timezone information under Unix and Win-32. It requires ``pytz``, and returns ``pytz`` ``tzinfo`` objects. @@ -64,10 +66,10 @@ will be used. %autosetup -n tzlocal-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -94,13 +96,20 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-tzlocal -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-tzlocal +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Mon Feb 26 2024 wangjunqi - 5.2-1 +- Update package to version 5.2 + Added a pre-commit config + Updated python versions [hugovk] + Added type hints for the public functions + Moved to using pyproject.toml for project config. + * Wed Jul 05 2023 chenzixuan - 5.0.1-1 - Update to version 4.3 diff --git a/tzlocal-5.0.1.tar.gz b/tzlocal-5.0.1.tar.gz deleted file mode 100644 index 74cdbe3..0000000 Binary files a/tzlocal-5.0.1.tar.gz and /dev/null differ diff --git a/tzlocal-5.2.tar.gz b/tzlocal-5.2.tar.gz new file mode 100644 index 0000000..149a22c Binary files /dev/null and b/tzlocal-5.2.tar.gz differ