File yast2-apparmor.spec of Package yast2-apparmor

# spec file for package yast2-apparmor
# Copyright (c) 2024 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           yast2-apparmor
Version:        5.0.0
Release:        0
Summary:        YaST2 - Plugins for AppArmor Profile Management
License:        GPL-2.0-only
Group:          Productivity/Security

Source0:        %{name}-%{version}.tar.bz2

BuildRequires:  update-desktop-files
BuildRequires:  yast2
BuildRequires:  yast2-devtools >= 4.2.2
BuildRequires:  rubygem(%rb_default_ruby_abi:yast-rake)

#for install task
BuildRequires:  rubygem(%rb_default_ruby_abi:yast-rake)

# Yast::Execute.locally!
Requires:       yast2 > 3.3.2
Requires:       yast2-ruby-bindings >= 1.0.0

# New JSON output format in aa-status; upstream change:
# aa-status: split profile from exec name
# bsc#1121274 / PR#35, bsc#1123258 / PR#36
Conflicts:      apparmor-utils < 2.12

BuildArch:      noarch

YaST2 forms and components for the management of AppArmor

%setup -q



sed -i 's/xdg-su -c/pkexec/g' %{buildroot}%{yast_desktopdir}/*.desktop
sed -i "s/pkexec \"\(.*\)\"/pkexec \1/g" %{buildroot}%{yast_desktopdir}/*.desktop

%doc %{yast_docdir}
%license COPYING

openSUSE Build Service is sponsored by