apparmor-rpm-macros/apparmor-rpm-macros.spec
Christian Boltz 5adf8c6842 Accepting request 1147928 from home:fcrozat:branches:security:apparmor
- Update macro to detect when installing in chroot
  (transactional-update) and avoid calling apparmor_parser.

OBS-URL: https://build.opensuse.org/request/show/1147928
OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor-rpm-macros?expand=0&rev=15
2024-02-20 12:39:50 +00:00

49 lines
1.4 KiB
RPMSpec

#
# spec file for package apparmor-rpm-macros
#
# 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 https://bugs.opensuse.org/
#
Name: apparmor-rpm-macros
Version: 1.0
Release: 0
Summary: RPM macros used to setup apparmor profiles
License: LGPL-2.1-or-later
Group: Development/Tools/Other
URL: https://bugs.launchpad.net/apparmor
Source: macros.apparmor
Requires: coreutils
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define macrodir /usr/lib/rpm/macros.d
%description
Package that provides RPM macros used to setup apparmor profiles for packaging.
%prep
%build
%install
mkdir -p %{buildroot}%{macrodir}
install -m644 %{S:0} %{buildroot}%{macrodir}/
%files
%defattr(-,root,root)
%{macrodir}/macros.apparmor
%changelog