1
0

Accepting request 1075330 from games

- Switch from packageand() to modern rpm conditionals
- Avoid conflict with crispy-doom manpages

OBS-URL: https://build.opensuse.org/request/show/1075330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/chocolate-doom?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2023-03-29 21:28:29 +00:00 committed by Git OBS Bridge
commit 4a008b6f46
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 29 16:33:13 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Switch from packageand() to modern rpm conditionals
- Avoid conflict with crispy-doom manpages
-------------------------------------------------------------------
Sat Jun 26 09:13:01 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package chocolate-doom
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -60,7 +60,7 @@ the initial open-sourcing of the Doom engine.
Summary: Chocolate Doom command line completion support for bash
Group: System/Shells
BuildArch: noarch
Supplements: packageand(chocolate-doom:bash-completion)
Supplements: (%name and bash-completion)
%description bash-completion
Additions for bash-completion to support chocolate-doom.
@ -80,6 +80,10 @@ b="%buildroot"
mkdir -p "$b/%_bindir"
rm -f "$b/%_docdir/%name/INSTALL"
rm -f "$b/%_datadir/applications/chocolate-setup.desktop" # has wrong paths
pushd "$b/%_mandir/man5"
for i in default heretic hexen strife; do
mv "$i.cfg.5" "chocolate-doom-$i.cfg.5"
done
%fdupes %buildroot/%_prefix
%post