## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 %bcond tests 1 Name: python-jsonfeed-util Version: 1.1.3 Release: %autorelease Summary: Python package for parsing and generating JSON feeds License: MIT URL: https://github.com/lukasschwab/jsonfeed # PyPI tarball is broken Source: %{url}/archive/%{version}/jsonfeed-%{version}.tar.gz # Add license text Patch: %{url}/pull/13.patch BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(feedparser) BuildRequires: python3dist(pytest) %endif %global _description %{expand: jsonfeed is a Python package for parsing and constructing JSON Feeds. It explicitly supports JSON Feed Version 1.1.} %description %_description %package -n python3-jsonfeed-util Summary: %{summary} %description -n python3-jsonfeed-util %_description %prep %autosetup -p1 -n jsonfeed-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l jsonfeed # We don't want the tests package rm -r %{buildroot}%{python3_sitelib}/tests %check %if %{with tests} %pytest %else %pyproject_check_import %endif %files -n python3-jsonfeed-util -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Sat Jan 18 2025 Fedora Release Engineering - 1.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Dec 21 2024 Davide Cavalca - 1.1.3-1 - Initial import; Fixes: RHBZ#2332991 ## END: Generated by rpmautospec