diff --git a/SDL3.spec b/SDL3.spec index 960f9be..199080e 100644 --- a/SDL3.spec +++ b/SDL3.spec @@ -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*