Accepting request 1166487 from games

- Avoid making /usr/share/doc/packages itself part of the RPM
  following a change in the %cmake macro

OBS-URL: https://build.opensuse.org/request/show/1166487
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/prboom-plus?expand=0&rev=21
This commit is contained in:
Ana Guerrero 2024-04-10 15:49:14 +00:00 committed by Git OBS Bridge
commit 29552b330e
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 9 16:25:32 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Avoid making /usr/share/doc/packages itself part of the RPM
following a change in the %cmake macro
-------------------------------------------------------------------
Tue Apr 2 09:16:13 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -72,6 +72,7 @@ pushd prboom2/
popd
%install
s="$PWD"
pushd prboom2/
%cmake_install
# convenience symlink
@ -81,6 +82,9 @@ install -Dm0644 ICONS/prboom-plus.svg "$b/%_datadir/icons/hicolor/scalable/apps/
install -Dm0644 ICONS/prboom-plus.desktop "$b/%_datadir/applications/prboom-plus.desktop"
install -Dm0644 ICONS/prboom-plus.bash "$b/%_datadir/bash-completion/completions/prboom-plus.bash"
popd
# TW switched doc location in %%cmake
(cd "%buildroot"; find "./%_datadir/doc" -type d -name prboom-plus | cut -b2-) >"$s/doc.files"
ls -al "$s/doc.files"
%if 0%{?suse_version} && 0%{?suse_version} < 1550
%post
@ -92,10 +96,9 @@ popd
%icon_theme_cache_postun
%endif
%files
%files -f doc.files
%_bindir/*
%_datadir/doom/
%_datadir/doc/packages/prboom*
%_mandir/*/*
%_datadir/applications/prboom-plus.desktop
%_datadir/icons/hicolor/scalable/apps/prboom-plus.svg