%global pypi_name isoduration Name: python-%{pypi_name} Version: 20.11.0 Release: 1%{?dist} Summary: Operations with ISO 8601 durations License: ISC URL: https://github.com/bolsote/isoduration Source0: %{url}/releases/download/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description ISO 8601 is most commonly known as a way to exchange datetimes in textual format. A lesser known aspect of the standard is the representation of durations. They have a shape similar to this: P3Y6M4DT12H30M5S %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} ISO 8601 is most commonly known as a way to exchange datetimes in textual format. A lesser known aspect of the standard is the representation of durations. They have a shape similar to this: P3Y6M4DT12H30M5S %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Tue Jun 28 2022 Parag Nemade - 20.11.0-1 - Initial package.