## 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} BuildSystem: pyproject BuildOption(install): -l granian BuildOption(generate_buildrequires): -x all,dotenv,pname,reload,rloop,uvloop BuildRequires: python3-devel BuildRequires: gcc BuildRequires: cargo-rpm-macros BuildRequires: tomcli # 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} %description -n python3-granian %_description %prep -a # Remove "generate-import-lib" feature for pyo3; applicable only on Windows, # and not packaged. tomcli set Cargo.toml lists delitem 'dependencies.pyo3.features' \ 'generate-import-lib' %cargo_prep %generate_buildrequires -p # maturin requires all dependencies to be available, # even those for tests and features that are not enabled %cargo_generate_buildrequires -a %build -p %cargo_license_summary %{cargo_license} > LICENSE.dependencies %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