File python-fastmcp.spec of Package python-fastmcp

#
# spec file for package python-fastmcp
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-fastmcp
Version:        2.6.0
Release:        0
License:        Apache-2.0
Summary:        python Model Context Protocol interface
Url:            https://gofastmcp.com/getting-started/welcome
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/f/fastmcp/fastmcp-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module poetry-core}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module hatchling}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch

%python_subpackages

%description
Model Context Protocol (or Master Control Program?) implementation
for python.

%prep
%setup -q -n fastmcp-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%fdupes %{buildroot}%{python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/fastmcp

%post
%python_install_alternative fastmcp

%postun
%python_uninstall_alternative fastmcp

%files %{python_files}
%license LICENSE
%doc README.md AGENTS.md
%python_alternative %{_bindir}/fastmcp
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by