## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %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 srcname mf2py %global forgeurl https://github.com/microformats/mf2py Version: 2.0.1 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Microformats2 parser written in Python License: MIT URL: %{forgeurl} Source: %{forgeurl}/archive/%{tag}/%{srcname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) BuildArch: noarch %global _description %{expand: mf2py is a Python microformats parser with full support for microformats2, backwards-compatible support for microformats1 and experimental support for metaformats.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %doc CONTRIBUTORS.md %license LICENSE %changelog ## START: Generated by rpmautospec * Sat Oct 26 2024 John Doe - 2.0.1-1 - Uncommitted changes ## END: Generated by rpmautospec