From 43b0b9b156059079db440543832d7dd66a365c10 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Fri, 20 Dec 2024 22:28:42 +0000 Subject: [PATCH] 3.1.6 --- SDL3.spec | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/SDL3.spec b/SDL3.spec index 796ebaa..ae17fe1 100644 --- a/SDL3.spec +++ b/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 \ No newline at end of file