## START: Set by rpmautospec ## (rpmautospec version 0.3.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 _description %{expand: A backwards/forwards-compatible fork of distutils.version.LooseVersion, for times when PEP-440 isnt what you need. The goal of this package is to be a drop-in replacement for the original LooseVersion. It implements an identical interface and comparison logic to LooseVersion. The only major change is that a looseversion.LooseVersion is comparable to a distutils.version.LooseVersion, which means tools should not need to worry whether all dependencies that use LooseVersion have migrated. If you are simply comparing versions of Python packages, consider moving to packaging.version.Version, which follows PEP-440. LooseVersion is better suited to interacting with heterogeneous version schemes that do not follow PEP-440.} Name: python-looseversion Version: 1.0.3 Release: %{autorelease} Summary: Version numbering for anarchists and software realists License: PSF-2.0 URL: https://pypi.org/pypi/looseversion Source0: %{pypi_source looseversion} BuildArch: noarch %description %_description %package -n python3-looseversion Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest %description -n python3-looseversion %_description %prep %autosetup -n looseversion-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files looseversion %check %{python3} tests.py %files -n python3-looseversion -f %{pyproject_files} %doc README.md CHANGES %changelog * Thu Jan 12 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-2 - Uncommitted changes * Thu Jan 12 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.3-1 - init