public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Lautrbach <lautrbach@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/setools] rawhide: Build and ship setools-mcp only on Fedora
Date: Wed, 26 Aug 2026 15:10:53 GMT	[thread overview]
Message-ID: <178775705380.1.18111425335142223528.rpms-setools-640bb1ce1c22@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-26 15:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178775705380.1.18111425335142223528.rpms-setools-640bb1ce1c22@fedoraproject.org \
    --to=lautrbach@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox