From 331fc679d0981e7939d3be4ca0d4213f84c8f712694a4020a73b083d90aa08c9 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Tue, 16 Mar 2021 11:26:35 +0000 Subject: [PATCH] Accepting request 877992 from home:dimstar:Factory - Do not require apparmor-abstractions: with the mini package being used only during build (and never on end user workstations), apparmor is not going to be anabled (build is in chroot/vm). Keeping the dep-chain of the -mini flavor as small as possible. - Add extra safeguard Requires: this-is-only-for-build-envs: this symbol is not provided by any package outside of OBS, but OBS knows to ignore this dependency. This is just an additional safe-guard to stop users from installing this package, besides it not being part of the published distro repositories. OBS-URL: https://build.opensuse.org/request/show/877992 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=135 --- ghostscript-mini.changes | 13 +++++++++++++ ghostscript-mini.spec | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ghostscript-mini.changes b/ghostscript-mini.changes index caa6e16..79c34d3 100644 --- a/ghostscript-mini.changes +++ b/ghostscript-mini.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Mar 9 12:34:30 UTC 2021 - Dominique Leuenberger + +- Do not require apparmor-abstractions: with the mini package being + used only during build (and never on end user workstations), + apparmor is not going to be anabled (build is in chroot/vm). + Keeping the dep-chain of the -mini flavor as small as possible. +- Add extra safeguard Requires: this-is-only-for-build-envs: this + symbol is not provided by any package outside of OBS, but OBS + knows to ignore this dependency. This is just an additional + safe-guard to stop users from installing this package, besides it + not being part of the published distro repositories. + ------------------------------------------------------------------- Fri Mar 5 12:35:16 UTC 2021 - Dominique Leuenberger diff --git a/ghostscript-mini.spec b/ghostscript-mini.spec index a45800a..e94769c 100644 --- a/ghostscript-mini.spec +++ b/ghostscript-mini.spec @@ -29,7 +29,6 @@ BuildRequires: zlib-devel %if 0%{?suse_version} >= 1500 BuildRequires: apparmor-abstractions BuildRequires: apparmor-rpm-macros -Requires: apparmor-abstractions %endif Requires(post): update-alternatives Requires(preun): update-alternatives @@ -103,6 +102,9 @@ Patch101: ijs_exec_server_dont_use_sh.patch # because ghostscript-mini (and ghostscript-mini-devel) are not published # in openSUSE products, cf. https://build.opensuse.org/request/show/877083 Provides: ghostscript_any = %{version} +# the "this-is-only-for-build-envs" dependency is an additional safegaurd to ensure this +# package never finds its way onto a productive workstation +Requires: this-is-only-for-build-envs Conflicts: ghostscript Conflicts: ghostscript-x11 Conflicts: ghostscript-devel