## 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 Name: python-granian Version: 2.6.0 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: A Rust HTTP server for Python applications # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: BSD-3-Clause URL: https://github.com/emmett-framework/granian Source: %{pypi_source granian} BuildRequires: python3-devel BuildRequires: gcc BuildRequires: cargo-rpm-macros # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'granian' generated automatically by pyp2spec.} %description %_description %package -n python3-granian Summary: %{summary} License: %{license} %description -n python3-granian %_description %prep -a %autosetup -p1 -n granian-%{version} %cargo_prep %generate_buildrequires # maturin requires all dependencies to be available, # even those for tests and features that are not enabled %cargo_generate_buildrequires -a -t %pyproject_buildrequires -x all,dotenv,pname,reload,rloop,uvloop %build %pyproject_wheel %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %pyproject_install %pyproject_save_files granian %check %pyproject_check_import %%pytest %%cargo_test %files -n python3-granian -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Mon Dec 01 2025 John Doe - 2.6.0-1 - Uncommitted changes ## END: Generated by rpmautospec