## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 python-frontmatter %global modname frontmatter Name: python-%{modname} Version: 1.1.0 Release: %autorelease Summary: Parse and manage posts with YAML frontmatter License: MIT URL: https://github.com/eyeseast/python-frontmatter Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Jekyll-style YAML front matter offers a useful way to add arbitrary, structured metadata to text documents, regardless of type. This is a small package to load and parse files (or just text) with YAML front matter. It supports multiple formats including YAML, JSON, and TOML.} %description %{_description} %package -n python3-%{modname} Summary: %{summary} %description -n python3-%{modname} %{_description} %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{modname} %check # Import check to verify the package is installable %pyproject_check_import # Run tests %pytest -v %files -n python3-%{modname} -f %{pyproject_files} %doc README.md %license LICENSE %changelog ## START: Generated by rpmautospec * Tue Mar 03 2026 John Doe - 1.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec