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
This commit is contained in:
Johannes Meixner 2021-03-16 11:26:35 +00:00 committed by Git OBS Bridge
parent a99fa23197
commit 331fc679d0
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Mar 9 12:34:30 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- 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 <dimstar@opensuse.org>

View File

@ -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