Add -devel subpackage to conflict it with mmv package. #1

Merged
eeich merged 1 commits from mcepl/python-mcp:main into main 2026-02-02 12:34:41 +01:00
2 changed files with 24 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 2 10:18:22 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Add -devel subpackage to move commands to it, and conflict the
subpackage with `mmv` package.
-------------------------------------------------------------------
Thu Jan 15 10:52:46 UTC 2026 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -40,8 +40,6 @@ Requires: python-python-multipart >= 0.0.9
Requires: python-sse-starlette >= 1.6.1
Requires: python-starlette >= 0.27
Requires: python-uvicorn >= 0.23.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -49,8 +47,17 @@ BuildArch: noarch
Model Context Protocol (or Master Control Program?) implementation
for python.
%package devel
Summary: Executables for %{name}
Conflicts: mmv
Requires(post): update-alternatives
Requires(postun): update-alternatives
%description devel
This package contains the executables for %{name}.
%prep
%setup -q -n mcp-%{version}
%autosetup -p1 -n mcp-%{version}
%build
%pyproject_wheel
@@ -61,17 +68,20 @@ for python.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/mcp
%post
%python_install_alternative mcp
%post devel
%python_expand %python_install_alternative mcp
%postun
%python_uninstall_alternative mcp
%postun devel
%python_expand %python_uninstall_alternative mcp
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/mcp
%{python_sitelib}/mcp
%{python_sitelib}/mcp-%{version}*-info
%files %{python_files devel}
%license LICENSE
%python_alternative %{_bindir}/mcp
%changelog