## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 pypi_name feedparser-sgmllib %global srcname feedparser_sgmllib Name: python-%{pypi_name} Version: 2.1.0 Release: %autorelease Summary: sgmllib from Python 2.7, for feedparser use only License: PSF-2.0 URL: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{srcname}-%{version}.tar.gz Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: The sgmllib module, copied from Python 2.7 and packaged as a standalone project. The module was removed from the standard library in Python 3; this package exists so that feedparser can continue to parse ill-formed feeds. For feedparser use only.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep # The sdist unpacks to feedparser_sgmllib-%%{version} (PEP 625 naming) %autosetup -p1 -n feedparser_sgmllib-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l feedparser_sgmllib %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %doc CHANGELOG.rst %changelog ## START: Generated by rpmautospec * Mon Sep 28 2026 John Doe - 2.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec