diff --git a/python-mcp.spec b/python-mcp.spec new file mode 100644 index 0000000000000000000000000000000000000000..1b72cd5824ccb647b5f16633be34e59fe1c88a91 --- /dev/null +++ b/python-mcp.spec @@ -0,0 +1,53 @@ +%define debug_package %{nil} +%global pypi_name mcp + +Name: python-%{pypi_name} +Version: 1.6.0 +Release: 1 +Summary: The official Python SDK for Model Context Protocol servers and clients +License: MIT +URL: https://github.com/modelcontextprotocol/python-sdk +Source0: https://github.com/modelcontextprotocol/python-sdk/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + + +BuildRequires: python3-devel python3-pip python3-hatchling python3-uv-dynamic-versioning python3-jinja2 python3-returns python3-dunamai python3-pydantic python3-tomlkit + + +%description +The official Python SDK for Model Context Protocol servers and clients + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-typer + +%description -n python3-%{pypi_name} +The official Python SDK for Model Context Protocol servers and clients + + +%prep +%setup -q -T -b 0 -c -n python-sdk-%{version} + + +%build +export UV_DYNAMIC_VERSIONING_BYPASS=%{version} +%pyproject_build + + +%install +%pyproject_install + + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/mcp* +%{_bindir}/mcp + + +%changelog +* Mon Apr 7 2025 wangkui - 1.6.0-1 +- init diff --git a/v1.6.0.tar.gz b/v1.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cfe76c6a968226e430d4cc3fa126f1c4f73a4bfd Binary files /dev/null and b/v1.6.0.tar.gz differ