%global srcname iso8601 %global pkgdesc \ This module parses the most common forms of ISO 8601 date strings \ (e.g. 2007-01-14T20:34:22+00:00) into datetime objects. # avoid unavailable test dependencies in RHEL builds %bcond tests %{undefined rhel} Name: python-%{srcname} Version: 1.1.0 Release: 6%{?dist} Summary: Simple module to parse ISO 8601 dates License: MIT URL: https://github.com/micktwomey/pyiso8601 Source: %{pypi_source} # https://github.com/micktwomey/pyiso8601/pull/19 Patch: 0001-Add-docs-and-test-extras.patch BuildArch: noarch %description %{pkgdesc} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %description -n python3-%{srcname} %{pkgdesc} %prep %autosetup -p 1 -n %{srcname}-%{version} # relax upper bounds on dependencies sed -e 's/\^/>=/' -i pyproject.toml %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %if %{with tests} %pytest %else %pyproject_check_import -e iso8601.test_iso8601 %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Fri Jan 26 2024 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 1.1.0-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Oct 14 2022 Carl George - 1.1.0-1 - Update to 1.1.0 * Fri Jul 22 2022 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 1.0.2-3 - Rebuilt for Python 3.11 * Fri May 06 2022 Carl George - 1.0.2-2 - Convert to pyproject macros * Thu Mar 24 2022 Fabian Affolter - 1.0.2-1 - Update to latest upstream release 1.0.2 * Fri Jan 21 2022 Fedora Release Engineering - 0.1.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.1.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 02 2021 Python Maint - 0.1.13-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Dec 04 2020 Fabian Affolter - 0.1.13-1 - Update to latest upstream release 0.1.13 (#1904533) * Wed Jul 29 2020 Fedora Release Engineering - 0.1.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 0.1.12-2 - Rebuilt for Python 3.9 * Thu Mar 05 2020 Fabian Affolter - 0.1.12-1 - Update to latest upstream release 0.1.12 (#1792662) * Thu Jan 30 2020 Fedora Release Engineering - 0.1.11-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Oct 19 2019 Miro Hrončok - 0.1.11-16 - Subpackage python2-iso8601 has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Oct 03 2019 Miro Hrončok - 0.1.11-15 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 15 2019 Miro Hrončok - 0.1.11-14 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1.11-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.1.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.1.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 15 2018 Miro Hrončok - 0.1.11-10 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 0.1.11-9 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.1.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 16 2017 Aurelien Bompard - 0.1.11-7 - Build for Python3 on EPEL: http://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL - Modernize the spec a bit (build and install macros, no explicit buildroot) * Thu Jul 27 2017 Fedora Release Engineering - 0.1.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.1.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 12 2016 Stratakis Charalampos - 0.1.11-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.1.11-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 26 2016 Haïkel Guémar - 0.1.11-1 - Upstream 0.1.11 * Tue Nov 10 2015 Fedora Release Engineering - 0.1.10-8 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Nov 04 2015 Robert Kuska - 0.1.10-7 - Rebuilt for Python3.5 rebuild * Mon Sep 07 2015 Chandan Kumar - 0.1.10-6 - Added python2 along with python3 subpackage * Thu Jun 18 2015 Fedora Release Engineering - 0.1.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.1.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 0.1.10-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Wed Apr 23 2014 Pádraig Brady - 0.1.10-2 - Add python3 package * Thu Mar 27 2014 Pádraig Brady - 0.1.10-1 - Latest upstream * Tue Nov 12 2013 Pádraig Brady - 0.1.8-1 - Latest upstream * Sun Aug 04 2013 Fedora Release Engineering - 0.1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.1.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 9 2010 Ian Weller - 0.1.4-2 - Correct python_sitelib macro * Mon Jun 28 2010 Ian Weller - 0.1.4-1 - Initial package build