%global pypi_name dateutils Name: python-%{pypi_name} Version: 0.6.8 Release: 14%{?dist} Summary: Various utilities for working with date and datetime objects License: Public Domain URL: https://github.com/jmcantrell/python-dateutils Source0: %{pypi_source} BuildArch: noarch %description This package is providing more complex arithmetic operations on dates/times. Heavy use is made of the relativedelta type from the dateutil library. Much of this package is just a light wrapper on top of this with some added features such as range generation and business day calculation. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} This package is providing more complex arithmetic operations on dates/times. Heavy use is made of the relativedelta type from the dateutil library. Much of this package is just a light wrapper on top of this with some added features such as range generation and business day calculation. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info # Not shipping dateadd and datediff as they are not ported to Python 3 # https://github.com/jmcantrell/python-dateutils/issues/2 rm -rf dateutils/{dateadd.py,datediff.py} sed -i -e '33,39d' setup.py # Remove standard lib sed -i -e '28d' setup.py %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.mkd %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/ %changelog * Fri Jan 26 2024 Fedora Release Engineering - 0.6.8-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.6.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.6.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.6.8-11 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.6.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.6.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.6.8-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.6.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.6.8-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.6.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.6.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 0.6.8-2 - Rebuilt for Python 3.9 * Thu Apr 02 2020 Fabian Affolter - 0.6.8-1 - Add README file - Update to latest upstream release 0.6.8 * Tue Mar 31 2020 Fabian Affolter - 0.6.7-1 - Initial package for Fedora