mirror of
https://abf.rosa.ru/djam/SDL3.git
synced 2025-02-23 13:52:54 +00:00
3.1.6
This commit is contained in:
parent
22f7ec15af
commit
43b0b9b156
1 changed files with 23 additions and 12 deletions
35
SDL3.spec
35
SDL3.spec
|
@ -12,8 +12,6 @@ Release: 1
|
|||
License: Zlib
|
||||
Group: System/Libraries
|
||||
URL: https://www.libsdl.org
|
||||
#Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
|
||||
#Source0: https://github.com/libsdl-org/SDL/releases/download/release-%{version}/%{name}-%{version}.tar.gz
|
||||
Source0: https://github.com/libsdl-org/SDL/releases/download/preview-%{version}/%{name}-%{version}.tar.gz
|
||||
# Keep major stable, should be 0
|
||||
Patch1: SDL2-2.0.16-soversion.patch
|
||||
|
@ -28,7 +26,6 @@ BuildRequires: pkgconfig(gl)
|
|||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(jack)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
#BuildRequires: pkgconfig(libpipewire-0.3)
|
||||
BuildRequires: pkgconfig(samplerate)
|
||||
BuildRequires: pkgconfig(sndio)
|
||||
BuildRequires: pkgconfig(libusb)
|
||||
|
@ -65,10 +62,9 @@ This package contains the library needed to run programs dynamically
|
|||
linked with %{name}.
|
||||
|
||||
%files -n %{libname}
|
||||
%doc README.md README-SDL.txt CREDITS.txt BUGS.txt WhatsNew.txt
|
||||
%doc README.md README-SDL.txt BUGS.txt WhatsNew.txt
|
||||
%doc LICENSE.txt
|
||||
%{_libdir}/lib%{name}-%{api}.so.%{major}
|
||||
%{_libdir}/lib%{name}-%{api}.so.%{oversion}
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -83,14 +79,12 @@ This package contains the headers that programmers will need to develop
|
|||
applications which will use %{name}.
|
||||
|
||||
%files -n %{devname}
|
||||
%doc README.md README-SDL.txt CREDITS.txt BUGS.txt WhatsNew.txt
|
||||
%doc README.md README-SDL.txt BUGS.txt WhatsNew.txt
|
||||
%doc LICENSE.txt
|
||||
%{_bindir}/sdl2-config
|
||||
%{_datadir}/aclocal/sdl2.m4
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/cmake/%{name}
|
||||
%{_libdir}/lib%{name}*.a
|
||||
%{_libdir}/pkgconfig/sdl2.pc
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libdir}/*.so
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
@ -98,6 +92,20 @@ applications which will use %{name}.
|
|||
%prep
|
||||
%setup -q
|
||||
|
||||
cat > sdl3.pc << EOF
|
||||
prefix=%{_prefix}
|
||||
exec_prefix=${prefix}
|
||||
libdir=%{_libdir}
|
||||
includedir=%{_includedir}
|
||||
|
||||
Name: sdl3
|
||||
Description: %{summary}
|
||||
URL: %{url}
|
||||
Version: %{version}
|
||||
Libs: -lSDL3
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|
@ -119,5 +127,8 @@ applications which will use %{name}.
|
|||
|
||||
rm -rf %{buildroot}%{_datadir}/licenses
|
||||
|
||||
# fix double slash
|
||||
sed -i 's|//|/|g' %{buildroot}%{_libdir}/pkgconfig/sdl2.pc
|
||||
|
||||
# erase rpath in pkgconfig
|
||||
rm -f %{buildroot}%{_libdir}/pkgconfig/sdl3.pc
|
||||
|
||||
install -Dm0644 sdl3.pc %{buildroot}%{_libdir}/pkgconfig/sdl3.pc
|
Loading…
Add table
Reference in a new issue