diff --git a/SDL2.changes b/SDL2.changes index 7a0b287..bda47f2 100644 --- a/SDL2.changes +++ b/SDL2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Aug 11 04:29:55 UTC 2019 - Jan Engelhardt + +- Drop libSDL2main.a from libSDL-2_0-devel. It is only used + during build. + ------------------------------------------------------------------- Wed Jul 31 08:47:44 UTC 2019 - Martin Liška diff --git a/SDL2.spec b/SDL2.spec index 536ccf2..429047a 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -108,8 +108,7 @@ This package contains files needed for development with the SDL2 library. %prep -%setup -q -%patch -P 1 -P 2 -p1 +%autosetup -p1 dos2unix WhatsNew.txt dos2unix TODO.txt dos2unix BUGS.txt @@ -129,17 +128,15 @@ dos2unix COPYING.txt %ifarch ix86 --enable-sse2=no \ %endif - --enable-sse3=no \ - --disable-rpath \ - --disable-3dnow + --enable-sse3=no --disable-rpath --disable-3dnow make %{?_smp_mflags} V=1 %install -make install DESTDIR="%buildroot" +%make_install rm -f "%buildroot/%_libdir"/*.la # We do not want static libs, but using --disable-static leads to make aborting -# halfway through. SDL2main.a we need to keep(?) for the stub symbol. -find "%buildroot/%_libdir" -type f -name "*.a" ! -name "libSDL2main.a" -delete +# halfway through %%build. Now it can be removed though. +rm -f "%buildroot/%_libdir/"*.a %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig @@ -153,7 +150,6 @@ find "%buildroot/%_libdir" -type f -name "*.a" ! -name "libSDL2main.a" -delete %doc TODO.txt WhatsNew.txt %_bindir/sdl2-config %_libdir/libSDL2.so -%_libdir/libSDL2main.a %_includedir/SDL2/ %_datadir/aclocal/sdl2.m4 %_libdir/pkgconfig/sdl2.pc