From 851d15e1f9b2ad69bd1978440937e4563b42107ccc9b8fa740353e3a8a553a13 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 17 Feb 2023 09:12:02 +0000 Subject: [PATCH] Accepting request 1066220 from home:lnussel:branches:Base:System - allow to switch off Apparmor support via bcond OBS-URL: https://build.opensuse.org/request/show/1066220 OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=144 --- psmisc.changes | 5 +++++ psmisc.spec | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/psmisc.changes b/psmisc.changes index 50f034e..d78360a 100644 --- a/psmisc.changes +++ b/psmisc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 16:06:59 UTC 2023 - Ludwig Nussel + +- allow to switch off Apparmor support via bcond + ------------------------------------------------------------------- Tue Dec 27 13:15:30 UTC 2022 - Ludwig Nussel diff --git a/psmisc.spec b/psmisc.spec index 426b0b5..4c788a3 100644 --- a/psmisc.spec +++ b/psmisc.spec @@ -1,7 +1,7 @@ # # spec file for package psmisc # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,8 @@ # +%bcond_without apparmor + Name: psmisc BuildRequires: autoconf BuildRequires: automake @@ -27,7 +29,9 @@ BuildRequires: libselinux-devel BuildRequires: linux-glibc-devel >= 4.12 BuildRequires: ncurses-devel BuildRequires: netcat-openbsd +%if %{with apparmor} BuildRequires: pkgconfig(libapparmor) +%endif URL: https://gitlab.com/psmisc/psmisc/ Version: 23.6 Release: 0 @@ -74,7 +78,7 @@ CC=gcc export CFLAGS CXXFLAGS LDFLAGS CC %configure --disable-rpath \ --with-gnu-ld \ - --enable-apparmor \ + %{?with_apparmor:--enable-apparmor} \ --enable-selinux make %{?_smp_mflags} CFLAGS="$CFLAGS" "CC=$CC"