23 Feb
2021
23 Feb
'21
20:24
HI! Should adding AppArmor profiles directly to service packages be truly optional? Or would it be acceptable to e.g. add Requires: apparmor-abstractions I've copied lines like this from other .spec files: %if %{with apparmor} BuildRequires: apparmor-abstractions BuildRequires: apparmor-rpm-macros Recommends: apparmor-abstractions %endif But then I also have to conditionally take care of %dir %{_sysconfdir}/apparmor.d etc. Is this best practice? Or can I rely on apparmor-abstractions being present anyway and remove all the conditionals? Ciao, Michael.