SHA256
1
0
forked from pool/SDL_bgi

Accepting request 1153032 from home:jaimeMF:branches:graphics

- Align path for document installation between openSUSE versions.

OBS-URL: https://build.opensuse.org/request/show/1153032
OBS-URL: https://build.opensuse.org/package/show/graphics/SDL_bgi?expand=0&rev=64
This commit is contained in:
Jan Engelhardt 2024-02-28 22:25:05 +00:00 committed by Git OBS Bridge
parent 00cb74cdd0
commit 66969bbb2c
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 20:16:30 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
- Align path for document installation between openSUSE versions.
-------------------------------------------------------------------
Thu Dec 15 18:02:14 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package SDL_bgi
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -66,14 +66,15 @@ together.
%autosetup -p1
%build
%cmake
%define build_args %{nil}
%if 0%{?suse_version} < 1600
%define build_args -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
%endif
%cmake %{build_args}
%cmake_build
%install
%cmake_install
b="%buildroot"
mkdir -p "$b/%_defaultdocdir"
mv "$b/%_datadir/doc/%name" "$b/%_defaultdocdir/"
# just a forwarder and conflicts with xbgi
rm -v "%buildroot/%_includedir/graphics.h"
@ -85,7 +86,7 @@ rm -v "%buildroot/%_includedir/graphics.h"
%_libdir/libSDL_bgi.so.*
%files -n libSDL_bgi-devel
%_defaultdocdir/%name/
%_docdir/%name/
%_includedir/*
%_libdir/libSDL_bgi.so
%_mandir/man3/*