## START: Set by rpmautospec ## (rpmautospec version 0.8.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 %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 BuildRequires: python3-pytest-httpx BuildRequires: python3-pytest-asyncio BuildRequires: python3-inline-snapshot BuildRequires: python3-dirty-equals BuildRequires: python3-fastapi BuildRequires: python3-psutil BuildRequires: python # TODO: Remove later (used for copr) BuildRequires: python3-cyclopts BuildRequires: python3-pydocket BuildRequires: python3-fakeredis %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} which python3 # 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 # Ignore anthropic as we are not packaging it. %pyproject_check_import -e fastmcp.client.sampling.handlers.anthropic # This test just hangs. #k="${k-}not integration and not client_process" #k="${k-}${k+ and }not test_to_sdk_tool" #k="${k-}${k+ and }not test_progress_status_message_in_background_task" %pytest --inline-snapshot=disable -v -k "${k-}" \ --ignore tests/client/sampling/handlers/test_anthropic_handler.py %files -n python3-fastmcp -f %{pyproject_files} %doc SECURITY.md %doc CODE_OF_CONDUCT.md %{_bindir}/fastmcp %changelog ## START: Generated by rpmautospec * Mon Mar 02 2026 Rodolfo Olivieri - 2.14.5-2 - Uncommitted changes * Mon Mar 02 2026 Rodolfo Olivieri - 2.14.5-1 - Initial commit for python-fastmcp ## END: Generated by rpmautospec