## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 modname semver Name: python-%{modname} Version: 3.0.0 Release: %autorelease Summary: Python helper for Semantic Versioning License: BSD URL: https://github.com/k-bx/python-semver Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch %global _description \ Python module for semantic versioning. Simplifies comparing versions. %description %{_description} %package -n python3-%{modname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-cov) %description -n python3-%{modname} %{_description} %prep %autosetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files semver %check %pyproject_check_import # Ignore the docs test since we're not packaging the docs and the test is broken. %pytest --ignore docs/usage.rst %files -n python3-%{modname} -f %{pyproject_files} %license LICENSE.txt %doc README.rst CHANGELOG.rst %{_bindir}/py%{modname} %changelog * Wed May 17 2023 Major Hayden 3.0.0-1 - Update to 3.0.0 rhbz#2180207 * Wed May 17 2023 Major Hayden 2.13.0-13 - Migrate to rpmautospec * Wed May 17 2023 Major Hayden 2.13.0-12 - Add import check * Wed May 17 2023 Major Hayden 2.13.0-11 - Switch to pyproject-rpm-macros * Wed May 17 2023 Major Hayden 2.13.0-10 - Migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering 2.13.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 2.13.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint 2.13.0-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 2.13.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering 2.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint 2.13.0-4 - Rebuilt for Python 3.10 * Tue Feb 16 2021 Lumir Balhar 2.13.0-3 - Fixed tests for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering 2.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 08 2020 Lumir Balhar 2.13.0-1 - Update to 2.13.0 (#1767192) * Wed Jul 29 2020 Fedora Release Engineering 2.8.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok 2.8.1-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering 2.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok 2.8.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok 2.8.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering 2.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering 2.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Aug 10 2018 Igor Gnatenko 2.8.1-1 - Update to 2.8.1 + drop python2 * Sat Jul 14 2018 Fedora Release Engineering 2.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jul 08 2018 Igor Gnatenko 2.8.0-1 - Update to 2.8.0 * Tue Jun 19 2018 Miro Hrončok 2.7.8-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering 2.7.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Aug 27 2017 Igor Gnatenko 2.7.8-1 - Update to 2.7.8 * Thu Jul 27 2017 Fedora Release Engineering 2.7.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 08 2017 Igor Gnatenko 2.7.7-1 - Update to 2.7.7 * Thu Feb 09 2017 Igor Gnatenko 2.7.5-1 - initial import