mirror of
https://abf.rosa.ru/djam/SDL3.git
synced 2025-02-23 22:02:54 +00:00
Properly deal with static libraries to avoid broken cmake config
This commit is contained in:
parent
dd5194d744
commit
1e9ac4abed
1 changed files with 5 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue