From b596951a5b694987430f16c8e0b64fd2b6820e9154d84a8c6a94ba8fdb4d6bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 2 Feb 2026 11:19:14 +0100 Subject: [PATCH] Add -devel subpackage to conflict it with `mmv` package. --- python-mcp.changes | 6 ++++++ python-mcp.spec | 26 ++++++++++++++++++-------- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/python-mcp.changes b/python-mcp.changes index c2b0f14..d6d8134 100644 --- a/python-mcp.changes +++ b/python-mcp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 2 10:18:22 UTC 2026 - Matej Cepl + +- 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 diff --git a/python-mcp.spec b/python-mcp.spec index 829b6fa..e3a18ce 100644 --- a/python-mcp.spec +++ b/python-mcp.spec @@ -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 -- 2.51.1