## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 urlpy Name: python-%{pypi_name} Version: 0.5.0 Release: %autorelease Summary: URL Transformation, Sanitization License: MIT URL: https://github.com/nexB/urlpy Source: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz # Remove useless shebang lines # https://github.com/nexB/urlpy/pull/12 Patch: %url/pull/12.patch BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: urlpy is a small library for URL parsing, cleanup, canonicalization and equivalence.} %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires requirements-tests.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check # https://github.com/nexB/urlpy/issues/11 %pytest -k "not test_unknown_protocol" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jun 07 2024 Python Maint - 0.5.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Oct 18 2023 Robert-André Mauchin - 0.5.0-1 - Initial import ## END: Generated by rpmautospec