SHA256
1
0
forked from jengelh/SDL2

- Drop libSDL2main.a from libSDL-2_0-devel. It is only used during build.

OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=87
This commit is contained in:
Jan Engelhardt 2019-08-11 11:37:08 +00:00 committed by Git OBS Bridge
parent a10583e885
commit 17367f413a
2 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 11 04:29:55 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- 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 <mliska@suse.cz>

View File

@ -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