From aa1036088720bebfc2d462215820e28498179f1f666bbac055b198ec520e97d1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 20 Aug 2022 08:03:58 +0000 Subject: [PATCH] ship libSDL2_test.a needed by SDL2_net OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=132 --- SDL2.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SDL2.spec b/SDL2.spec index 9008eca..c7ebc7e 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -130,7 +130,7 @@ perl -i -pe 's{\r\n}{\n}g' *.txt README.md %install %make_install rm -f "%buildroot/%_libdir"/*.la -rm -fv "%buildroot/%_libdir/libSDL2.a" "%buildroot/%_libdir/libSDL2_test.a" +rm -fv "%buildroot/%_libdir/libSDL2.a" # Need to keep libSDL2main.a (empty lib), because it is referenced by # sdl2-config.cmake, and it seems like that .cmake file cannot be edited to # make SDL2::SDL2main a phony target with no file (just leads to more Makefile @@ -153,5 +153,6 @@ rm -fv "%buildroot/%_libdir/libSDL2.a" "%buildroot/%_libdir/libSDL2_test.a" %_libdir/pkgconfig/sdl2.pc %_libdir/cmake/SDL2/ %_libdir/libSDL2main.a +%_libdir/libSDL2_test.a %changelog