SHA256
1
0
forked from pool/SDL3

disable static archive components

OBS-URL: https://build.opensuse.org/package/show/games/SDL3?expand=0&rev=3
This commit is contained in:
Jan Engelhardt 2024-04-14 00:22:46 +00:00 committed by Git OBS Bridge
parent 8bdffdced9
commit 9a08ae65a0

View File

@ -127,32 +127,26 @@ SDL3 C API.
-DSDL_PIPEWIRE_SHARED:BOOL=OFF -DSDL_PULSEAUDIO_SHARED:BOOL=OFF \
-DSDL_X11_SHARED:BOOL=OFF -DSDL_WAYLAND_SHARED:BOOL=OFF \
-DSDL_KMSDRM_SHARED:BOOL=OFF \
-DSDL_STATIC:BOOL=OFF -DSDL_STATIC_PIC:BOOL=ON -DSDL_RPATH:BOOL=OFF
-DSDL_STATIC:BOOL=OFF -DSDL_STATIC_PIC:BOOL=ON -DSDL_RPATH:BOOL=OFF \
-DSDL_TEST_LIBRARY:BOOL=OFF
%cmake_build
%install
%cmake_install
rm -Rf "%buildroot/%_datadir/licenses" # we use %%license
# Need to keep libSDL3main.a (empty lib), because it is referenced by
# sdl3-config.cmake, and it seems like that .cmake file cannot be edited to
# make SDL3::SDL3main a phony target with no file (just leads to more Makefile
# errors down the road).
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%files -n %lname
%license LICENSE.txt
%_libdir/libSDL3.so.0*
%files devel
#%doc README.md README-SDL.txt WhatsNew.txt
%_libdir/libSDL3.so
%_includedir/SDL3/
%_libdir/pkgconfig/sdl3.pc
%_libdir/cmake/SDL3/
%_libdir/libSDL3_test.a
%files devel-doc
%_mandir/man3/*.3*