public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/setools] rawhide: Build and ship setools-mcp only on Fedora
@ 2026-08-26 15:10 Petr Lautrbach
  0 siblings, 0 replies; only message in thread
From: Petr Lautrbach @ 2026-08-26 15:10 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/setools
Branch : rawhide
Commit : 640bb1ce1c22cc1b29c8941420c957f29e95658f
Author : Petr Lautrbach <lautrbach@redhat.com>
Date   : 2026-08-25T18:07:03+02:00
Stats  : +12/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/setools/c/640bb1ce1c22cc1b29c8941420c957f29e95658f?branch=rawhide

Log:
Build and ship setools-mcp only on Fedora

---
diff --git a/setools.spec b/setools.spec
index 436f7d2..88264f3 100644
--- a/setools.spec
+++ b/setools.spec
@@ -1,6 +1,11 @@
 %global sepol_ver 3.11
 %global selinux_ver 3.11
 
+# setools-mcp requires python3-fastmcp which is not available on RHEL
+%if 0%{?fedora}
+%global with_mcp 1
+%endif
+
 Name:           setools
 Version:        4.7.1
 Release:        1%{?dist}
@@ -80,6 +85,7 @@ Requires:    python3-networkx
 SETools is a collection of graphical tools, command-line tools, and
 Python modules designed to facilitate SELinux policy analysis.
 
+%if %{defined with_mcp}
 %package     mcp
 Summary:     Policy analysis MCP server
 License:     GPL-2.0-only
@@ -91,6 +97,7 @@ SETools is a collection of graphical tools, command-line tools, and
 libraries designed to facilitate SELinux policy analysis.
 
 This package includes MCP server.
+%endif
 
 
 %prep
@@ -107,6 +114,9 @@ This package includes MCP server.
 
 %install
 %pyproject_install
+%if ! %{defined with_mcp}
+rm -f %{buildroot}%{_bindir}/setools-mcp
+%endif
 
 %check
 %if %{?_with_check:1}%{!?_with_check:0}
@@ -152,9 +162,11 @@ This package includes MCP server.
 %{_mandir}/man1/apol*
 %{_mandir}/ru/man1/apol*
 
+%if %{defined with_mcp}
 %files mcp
 %license COPYING.GPL
 %{_bindir}/setools-mcp
+%endif
 
 %changelog
 * Fri Aug 21 2026 Petr Lautrbach <lautrbach@redhat.com> - 4.7.1-1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 15:10 [rpms/setools] rawhide: Build and ship setools-mcp only on Fedora Petr Lautrbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox