## 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 extras openai Name: python-fastmcp Version: 2.14.5 Release: %autorelease Summary: The fast, Pythonic way to build MCP servers and clients. License: Apache-2.0 URL: https://gofastmcp.com Source: %{pypi_source fastmcp} # The uv-dynamic-version library is not present in Fedora 43, only Fedora 44. # The below patch is replacing the dependency for `hatch-vcs`, as the sole # purpose is to detect the version for this library. Patch: replace-uv-dynamic-version-with-hatchling-vcs.diff BuildArch: noarch BuildRequires: python3-devel BuildRequires: tomcli # Test dependencies BuildRequires: python3-pytest # TODO: Remove later (used for copr) BuildRequires: python3-cyclopts BuildRequires: python3-pydocket %global _description %{expand: FastMCP is the standard framework for building MCP applications, providing the fastest path from idea to production. The Model Context Protocol (MCP) is a standardized way to provide context and tools to LLMs. FastMCP makes building production-ready MCP servers simple, with enterprise auth, deployment tools, and a complete ecosystem built in.} %description %_description %package -n python3-fastmcp Summary: %{summary} %description -n python3-fastmcp %_description %pyproject_extras_subpkg -n python3-fastmcp %{extras} %prep %autosetup -p1 -n fastmcp-%{version} # Relax authlib version tomcli set pyproject.toml arrays replace "project.dependencies" "authlib.*" "authlib >=1.5.2,<1.7.0" # Relax pyperclip version tomcli set pyproject.toml arrays replace "project.dependencies" "pyperclip.*" "pyperclip >=1.8.2,<1.10.0" tomcli set pyproject.toml arrays replace "dependency-groups.dev" "pyperclip.*" "pyperclip >=1.8.2,<1.10.0" # Relax openai optional dependency tomcli set pyproject.toml arrays replace "project.optional-dependencies.openai" "openai.*" "openai>=1.95" %generate_buildrequires %pyproject_buildrequires -x %{extras} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l fastmcp %check %pyproject_check_import %pytest %files -n python3-fastmcp -f %{pyproject_files} %doc SECURITY.md %doc CODE_OF_CONDUCT.md %{_bindir}/fastmcp %changelog ## START: Generated by rpmautospec * Wed Feb 25 2026 John Doe - 2.14.5-1 - Uncommitted changes ## END: Generated by rpmautospec