## START: Set by rpmautospec ## (rpmautospec version 0.8.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 modname mwparserfromhell Name: python-mwparserfromhell Version: 0.7.2 Release: %autorelease Summary: A Python parser for MediaWiki wikicode License: MIT URL: https://github.com/earwig/mwparserfromhell Source: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: gcc %global _description %{expand: mwparserfromhell (the MediaWiki Parser from Hell) is a Python package that provides an easy-to-use and outrageously powerful parser for MediaWiki wikicode.} %description %_description %package -n python3-%{modname} Summary: %{summary} %package -n python3-%{modname}-devel Summary: Source and header files for the mwparserfromhell C extension Requires: python3-%{modname}%{?_isa} = %{version}-%{release} %description -n python3-%{modname} %_description %description -n python3-%{modname}-devel %_description %prep %autosetup -p1 -n %{modname}-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -g dev %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} -l %check %pyproject_check_import %pytest %files -n python3-%{modname} -f %{pyproject_files} %doc README.* %exclude %{python3_sitearch}/mwparserfromhell/parser/ctokenizer/ %files -n python3-%{modname}-devel %{python3_sitearch}/mwparserfromhell/parser/ctokenizer/ %changelog ## START: Generated by rpmautospec * Mon Aug 18 2025 David Auer - 0.7.2-2 - Drop obsolete patch and pyproject.toml modification * Mon Aug 18 2025 David Auer - 0.7.2-1 - Initial import (fedora#2381850) ## END: Generated by rpmautospec