Blame SPECS/python-tzlocal.spec

rdobuilder 267f81
rdobuilder 267f81
Name:           python-tzlocal
rdobuilder 267f81
Version:        5.2
rdobuilder 267f81
Release:        1%{?dist}
rdobuilder 267f81
Summary:        A Python module that tries to figure out what your local timezone is
rdobuilder 267f81
rdobuilder 267f81
License:        MIT
rdobuilder 267f81
URL:            https://github.com/regebro/tzlocal
rdobuilder 267f81
# pypi/pythonhosted tarballs don't respect symlinks which are used in the test
rdobuilder 267f81
Source0:        %{url}/archive/%{version}/tzlocal-%{version}.tar.gz
rdobuilder 267f81
rdobuilder 267f81
BuildArch:      noarch
rdobuilder 267f81
rdobuilder 267f81
BuildRequires:  python3-devel
rdobuilder 267f81
BuildRequires:  pyproject-rpm-macros
rdobuilder 267f81
BuildRequires:  python3-pytest
rdobuilder 267f81
BuildRequires:  python3-pytest-mock
rdobuilder 267f81
rdobuilder 267f81
%global common_description %{expand:
rdobuilder 267f81
This Python module returns a tzinfo object with the local timezone information.
rdobuilder 267f81
It requires pytz, and returns pytz tzinfo objects. This module attempts to fix
rdobuilder 267f81
a glaring hole in pytz, that there is no way to get the local timezone
rdobuilder 267f81
information, unless you know the zoneinfo name.}
rdobuilder 267f81
rdobuilder 267f81
%description %{common_description}
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%package -n python3-tzlocal
rdobuilder 267f81
Summary:        %{summary}
rdobuilder 267f81
rdobuilder 267f81
%description -n python3-tzlocal %{common_description}
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%prep
rdobuilder 267f81
%autosetup -n tzlocal-%{version}
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%generate_buildrequires
rdobuilder 267f81
%pyproject_buildrequires -x test
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%build
rdobuilder 267f81
%pyproject_wheel
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%install
rdobuilder 267f81
%pyproject_install
rdobuilder 267f81
%pyproject_save_files tzlocal
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%check
rdobuilder 267f81
%pytest
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%files -n python3-tzlocal -f %{pyproject_files}
rdobuilder 267f81
# pyproject_files handles LICENSE.txt; verify with “rpm -qL -p …”
rdobuilder 267f81
%doc README.rst CHANGES.txt
rdobuilder 267f81
rdobuilder 267f81
rdobuilder 267f81
%changelog
rdobuilder 267f81
* Sun May 19 2024 Christiano Anderson <chris@christiano.dev> - 5.2-1
rdobuilder 267f81
- Update to 5.2 RHBZ#2179541
rdobuilder 267f81
rdobuilder 267f81
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-6
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-5
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-4
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Sat Jun 17 2023 Python Maint <python-maint@redhat.com> - 4.2-3
rdobuilder 267f81
- Rebuilt for Python 3.12
rdobuilder 267f81
rdobuilder 267f81
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-2
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Fri Aug 26 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 4.2-1
rdobuilder 267f81
- Update to 4.2 (close RHBZ#1993583)
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-12
rdobuilder 267f81
- Port to pyproject-rpm-macros
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-11
rdobuilder 267f81
- Remove dependency on deprecated python-mock
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-10
rdobuilder 267f81
- Remove manual Requires, which is no longer required
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-9
rdobuilder 267f81
- Exclude test_data with a patch instead of using “rm”
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-8
rdobuilder 267f81
- Change source archive name to match extraction directory
rdobuilder 267f81
rdobuilder 267f81
* Mon Aug 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-7
rdobuilder 267f81
- Simplify and update various macros in the spec file
rdobuilder 267f81
rdobuilder 267f81
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1-5
rdobuilder 267f81
- Rebuilt for Python 3.11
rdobuilder 267f81
rdobuilder 267f81
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
rdobuilder 267f81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-3
rdobuilder 267f81
- Second attempt - Rebuilt for
rdobuilder 267f81
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 267f81
rdobuilder 267f81
* Wed Jun 30 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1-2
rdobuilder 267f81
- RPMAUTOSPEC: unresolvable merge