Properly deal with static libraries to avoid broken cmake config

This commit is contained in:
Andrey Bondrov 2017-12-08 01:00:31 +10:00
parent dd5194d744
commit 1e9ac4abed

View file

@ -8,7 +8,7 @@
Summary: Simple DirectMedia Layer Summary: Simple DirectMedia Layer
Name: SDL2 Name: SDL2
Version: 2.0.7 Version: 2.0.7
Release: 3 Release: 4
License: Zlib License: Zlib
Group: System/Libraries Group: System/Libraries
Url: http://www.libsdl.org/ Url: http://www.libsdl.org/
@ -82,6 +82,7 @@ applications which will use %{name}.
%{_libdir}/cmake/SDL2/ %{_libdir}/cmake/SDL2/
%{_libdir}/pkgconfig/sdl2.pc %{_libdir}/pkgconfig/sdl2.pc
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/libSDL2main.a
%dir %{_includedir}/SDL2 %dir %{_includedir}/SDL2
%{_includedir}/SDL2/*.h %{_includedir}/SDL2/*.h
%{_datadir}/aclocal/sdl2.m4 %{_datadir}/aclocal/sdl2.m4
@ -94,11 +95,11 @@ applications which will use %{name}.
%build %build
%global optflags %{optflags} -mstackrealign %global optflags %{optflags} -mstackrealign
%cmake -DRPATH:BOOL=OFF %cmake \
-DRPATH:BOOL=OFF \
-DSDL_STATIC:BOOL=OFF
%make %make
%install %install
%makeinstall_std -C build %makeinstall_std -C build
rm -f %{buildroot}%{_libdir}/*.a