## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name awesomeversion Name: python-%{pypi_name} Version: 22.9.0 Release: %autorelease Summary: Python module to deal with versions License: MIT URL: https://github.com/ludeeus/awesomeversion Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %description Python module to deal with versions if it comes to comparing them. Make anything a version object, and compare against a vast section of other version formats. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} Python module to deal with versions if it comes to comparing them. Make anything a version object, and compare against a vast section of other version formats. %prep %autosetup -n %{pypi_name}-%{version} # Only the PyPI source set the version properly sed -i -e 's/version = "0"/version = "%{version}"/g' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} rm %{buildroot}/%{python3_sitelib}/LICENCE.md %check %pytest -v tests %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %license LICENCE.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 22.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 22.9.0-7 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 22.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 22.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 22.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 22.9.0-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 22.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Sep 18 2022 Fabian Affolter - 22.9.0-1 - Update to latest upstream release 22.9.0 (closes rhbz#2127107) * Thu Sep 15 2022 Fabian Affolter - 22.8.0-1 - Update to latest upstream release 22.8.0 (closes rhbz#2079374) * Fri Jul 22 2022 Fedora Release Engineering - 22.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 22.4.0-3 - Rebuilt for Python 3.11 * Wed Apr 06 2022 Fabian Affolter - 22.4.0-2 - Add new source * Wed Apr 06 2022 Fabian Affolter - 22.4.0-1 - Update to latest upstream release 22.4.0 (closes rhbz#2071355) * Fri Mar 04 2022 Fabian Affolter - 22.2.0-1 - Update to latest upstream release 22.2.0 (closes rhbz#2016610) * Fri Jan 21 2022 Fedora Release Engineering - 21.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Aug 26 2021 Fabian Affolter - 21.8.1-1 - * Thu Aug 26 2021 Fabian Affolter - 21.8.1-1 - Update to latest upstream release 21.8.1 (rhbz#1946105) * Fri Jul 23 2021 Fedora Release Engineering - 21.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 21.2.3-2 - Rebuilt for Python 3.10 * Wed Feb 24 2021 Fabian Affolter - 21.2.3-1 - * Wed Feb 24 2021 Fabian Affolter - 21.2.3-1 - Update to latest upstream release 21.2.3 (#1932296) * Fri Feb 05 2021 Fabian Affolter - 21.2.2-1 - * Fri Feb 05 2021 Fabian Affolter - 21.2.2-1 - Update to latest upstream release 21.2.2 * Wed Jan 27 2021 Fedora Release Engineering - 21.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 24 2021 Fabian Affolter - 21.1.3-1 - * Thu Jan 21 2021 Fabian Affolter - 21.1.3-1 - Remove BR and obsolete macro - Update to latest upstream release 21.1.3 (#1914195) ## END: Generated by rpmautospec