|
|
@ -1,22 +1,18 @@ |
|
|
|
%if 0%{?epel} |
|
|
|
|
|
|
|
%bcond_with wayland |
|
|
|
|
|
|
|
%else |
|
|
|
|
|
|
|
%bcond_without wayland |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL2 |
|
|
|
Name: SDL2 |
|
|
|
Version: 2.0.3 |
|
|
|
Version: 2.0.10 |
|
|
|
Release: 9%{?dist} |
|
|
|
Release: 1%{?dist} |
|
|
|
Summary: A cross-platform multimedia library |
|
|
|
Summary: Cross-platform multimedia library |
|
|
|
Group: System Environment/Libraries |
|
|
|
|
|
|
|
URL: http://www.libsdl.org/ |
|
|
|
|
|
|
|
License: zlib and MIT |
|
|
|
License: zlib and MIT |
|
|
|
|
|
|
|
URL: http://www.libsdl.org/ |
|
|
|
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz |
|
|
|
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz |
|
|
|
Source1: SDL_config.h |
|
|
|
Source1: SDL_config.h |
|
|
|
|
|
|
|
|
|
|
|
Patch0: multilib.patch |
|
|
|
Patch0: multilib.patch |
|
|
|
# https://hg.libsdl.org/SDL/rev/7e843b8b8301 |
|
|
|
# ptrdiff_t is not the same as khronos defines on 32bit arches |
|
|
|
Patch1: SDL2-2.0.3-oldgcc.patch |
|
|
|
Patch1: SDL2-2.0.9-khrplatform.patch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc |
|
|
|
BuildRequires: alsa-lib-devel |
|
|
|
BuildRequires: alsa-lib-devel |
|
|
|
BuildRequires: audiofile-devel |
|
|
|
BuildRequires: audiofile-devel |
|
|
|
BuildRequires: mesa-libGL-devel |
|
|
|
BuildRequires: mesa-libGL-devel |
|
|
@ -28,50 +24,44 @@ BuildRequires: libX11-devel |
|
|
|
BuildRequires: libXi-devel |
|
|
|
BuildRequires: libXi-devel |
|
|
|
BuildRequires: libXrandr-devel |
|
|
|
BuildRequires: libXrandr-devel |
|
|
|
BuildRequires: libXrender-devel |
|
|
|
BuildRequires: libXrender-devel |
|
|
|
BuildRequires: dbus-devel |
|
|
|
|
|
|
|
BuildRequires: libXScrnSaver-devel |
|
|
|
BuildRequires: libXScrnSaver-devel |
|
|
|
BuildRequires: libusb-devel |
|
|
|
BuildRequires: libusb-devel |
|
|
|
BuildRequires: pulseaudio-libs-devel |
|
|
|
|
|
|
|
BuildRequires: libXinerama-devel |
|
|
|
BuildRequires: libXinerama-devel |
|
|
|
BuildRequires: libXcursor-devel |
|
|
|
BuildRequires: libXcursor-devel |
|
|
|
BuildRequires: systemd-devel |
|
|
|
BuildRequires: systemd-devel |
|
|
|
|
|
|
|
# PulseAudio |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libpulse-simple) |
|
|
|
|
|
|
|
# Jack |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(jack) |
|
|
|
|
|
|
|
# D-Bus |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1) |
|
|
|
|
|
|
|
# IBus |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(ibus-1.0) |
|
|
|
# Wayland |
|
|
|
# Wayland |
|
|
|
%if %{with wayland} |
|
|
|
BuildRequires: pkgconfig(wayland-client) |
|
|
|
BuildRequires: libwayland-client-devel |
|
|
|
BuildRequires: pkgconfig(wayland-egl) |
|
|
|
#BuildRequires: libwayland-egl-devel |
|
|
|
BuildRequires: pkgconfig(wayland-cursor) |
|
|
|
BuildRequires: libwayland-cursor-devel |
|
|
|
BuildRequires: pkgconfig(wayland-protocols) |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner) |
|
|
|
|
|
|
|
BuildRequires: pkgconfig(xkbcommon) |
|
|
|
|
|
|
|
%ifarch x86_64 ppc64le |
|
|
|
|
|
|
|
# Vulkan |
|
|
|
|
|
|
|
BuildRequires: vulkan-devel |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
BuildRequires: libxkbcommon-devel |
|
|
|
# KMS |
|
|
|
|
|
|
|
BuildRequires: mesa-libgbm-devel |
|
|
|
|
|
|
|
BuildRequires: libdrm-devel |
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
|
|
|
to provide fast access to the graphics frame buffer and audio device. |
|
|
|
to provide fast access to the graphics frame buffer and audio device. |
|
|
|
|
|
|
|
|
|
|
|
%package devel |
|
|
|
%package devel |
|
|
|
Summary: Files needed to develop Simple DirectMedia Layer applications |
|
|
|
Summary: Files needed to develop Simple DirectMedia Layer applications |
|
|
|
Group: Development/Libraries |
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release} |
|
|
|
Requires: mesa-libEGL-devel%{?_isa} |
|
|
|
Requires: alsa-lib-devel |
|
|
|
Requires: mesa-libGLES-devel%{?_isa} |
|
|
|
Requires: mesa-libGL-devel |
|
|
|
Requires: libX11-devel%{?_isa} |
|
|
|
Requires: mesa-libGLU-devel |
|
|
|
|
|
|
|
Requires: mesa-libEGL-devel |
|
|
|
|
|
|
|
Requires: mesa-libGLES-devel |
|
|
|
|
|
|
|
Requires: libX11-devel |
|
|
|
|
|
|
|
Requires: libXi-devel |
|
|
|
|
|
|
|
Requires: libXext-devel |
|
|
|
|
|
|
|
Requires: libXrandr-devel |
|
|
|
|
|
|
|
Requires: libXrender-devel |
|
|
|
|
|
|
|
Requires: libXScrnSaver-devel |
|
|
|
|
|
|
|
Requires: libXinerama-devel |
|
|
|
|
|
|
|
Requires: libXcursor-devel |
|
|
|
|
|
|
|
Requires: systemd-devel |
|
|
|
|
|
|
|
%if %{with wayland} |
|
|
|
|
|
|
|
# Wayland |
|
|
|
|
|
|
|
Requires: libwayland-client-devel |
|
|
|
|
|
|
|
#Requires: libwayland-egl-devel |
|
|
|
|
|
|
|
Requires: libwayland-cursor-devel |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
Requires: libxkbcommon-devel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel |
|
|
|
%description devel |
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
|
|
@ -79,26 +69,39 @@ to provide fast access to the graphics frame buffer and audio device. This |
|
|
|
package provides the libraries, include files, and other resources needed for |
|
|
|
package provides the libraries, include files, and other resources needed for |
|
|
|
developing SDL applications. |
|
|
|
developing SDL applications. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package static |
|
|
|
|
|
|
|
Summary: Static libraries for SDL2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description static |
|
|
|
|
|
|
|
Static libraries for SDL2. |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q |
|
|
|
%autosetup -p1 |
|
|
|
#%patch0 -p1 -b .multilib |
|
|
|
|
|
|
|
%patch1 -p1 -b .oldgcc |
|
|
|
|
|
|
|
# Compilation without ESD |
|
|
|
# Compilation without ESD |
|
|
|
sed -i -e 's/.*AM_PATH_ESD.*//' configure.in |
|
|
|
sed -i -e 's/.*AM_PATH_ESD.*//' configure.ac |
|
|
|
sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt |
|
|
|
sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
%configure \ |
|
|
|
%configure \ |
|
|
|
--enable-sdl-dlopen \ |
|
|
|
--enable-sdl-dlopen \ |
|
|
|
|
|
|
|
--enable-video-kmsdrm \ |
|
|
|
--disable-arts \ |
|
|
|
--disable-arts \ |
|
|
|
--disable-esd \ |
|
|
|
--disable-esd \ |
|
|
|
--disable-nas \ |
|
|
|
--disable-nas \ |
|
|
|
--enable-pulseaudio-shared \ |
|
|
|
--enable-pulseaudio-shared \ |
|
|
|
|
|
|
|
--enable-jack-shared \ |
|
|
|
--enable-alsa \ |
|
|
|
--enable-alsa \ |
|
|
|
%if %{with wayland} |
|
|
|
|
|
|
|
--enable-video-wayland \ |
|
|
|
--enable-video-wayland \ |
|
|
|
|
|
|
|
%ifarch x86_64 ppc64le ppc64 |
|
|
|
|
|
|
|
--enable-video-vulkan \ |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
--enable-sse2=no \ |
|
|
|
|
|
|
|
--enable-sse3=no \ |
|
|
|
|
|
|
|
--disable-rpath \ |
|
|
|
|
|
|
|
%ifarch ppc |
|
|
|
|
|
|
|
--disable-altivec \ |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
--disable-rpath |
|
|
|
|
|
|
|
make %{?_smp_mflags} |
|
|
|
make %{?_smp_mflags} |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
@ -110,16 +113,16 @@ mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/ |
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h |
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h |
|
|
|
|
|
|
|
|
|
|
|
# remove libtool .la file |
|
|
|
# remove libtool .la file |
|
|
|
rm -f %{buildroot}%{_libdir}/*.la |
|
|
|
rm -vf %{buildroot}%{_libdir}/*.la |
|
|
|
# remove static .a file |
|
|
|
# remove static .a file |
|
|
|
rm -f %{buildroot}%{_libdir}/*.a |
|
|
|
# rm -f %{buildroot}%{_libdir}/*.a |
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig |
|
|
|
%post -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig |
|
|
|
%postun -p /sbin/ldconfig |
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%doc BUGS.txt CREDITS.txt COPYING.txt README-SDL.txt |
|
|
|
%license COPYING.txt |
|
|
|
|
|
|
|
%doc BUGS.txt CREDITS.txt README-SDL.txt |
|
|
|
%{_libdir}/lib*.so.* |
|
|
|
%{_libdir}/lib*.so.* |
|
|
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
%files devel |
|
|
@ -127,18 +130,119 @@ rm -f %{buildroot}%{_libdir}/*.a |
|
|
|
%{_bindir}/*-config |
|
|
|
%{_bindir}/*-config |
|
|
|
%{_libdir}/lib*.so |
|
|
|
%{_libdir}/lib*.so |
|
|
|
%{_libdir}/pkgconfig/sdl2.pc |
|
|
|
%{_libdir}/pkgconfig/sdl2.pc |
|
|
|
|
|
|
|
%{_libdir}/cmake/SDL2/ |
|
|
|
%{_includedir}/SDL2 |
|
|
|
%{_includedir}/SDL2 |
|
|
|
%{_datadir}/aclocal/* |
|
|
|
%{_datadir}/aclocal/* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files static |
|
|
|
|
|
|
|
%license COPYING.txt |
|
|
|
|
|
|
|
%{_libdir}/lib*.a |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
* Wed Nov 18 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-9 |
|
|
|
* Fri Jul 26 2019 Pete Walter <pwalter@fedoraproject.org> - 2.0.10-1 |
|
|
|
- Use bcond instead |
|
|
|
- Update to 2.0.10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-4 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 15 2019 Tom Callaway <spot@fedoraproject.org> - 2.0.9-3 |
|
|
|
|
|
|
|
- use khrplatform defines, not ptrdiff_t |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-2 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 2 2018 Tom Callaway <spot@fedoraproject.org> - 2.0.9-1 |
|
|
|
|
|
|
|
- update to 2.0.9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-6 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 21 2018 Adam Jackson <ajax@redhat.com> - 2.0.8-5 |
|
|
|
|
|
|
|
- Backport a crash/hang fix from 2.0.9 (#1580541) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 11 2018 Tom Callaway <spot@fedoraproject.org> - 2.0.8-4 |
|
|
|
|
|
|
|
- enable video-kmsdrm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 30 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 2.0.8-3 |
|
|
|
|
|
|
|
- Add riscv64 to SDL_config.h |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 04 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.8-2 |
|
|
|
|
|
|
|
- Disable altivec on ppc64le (RHBZ #1551338) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 4 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.8-1 |
|
|
|
|
|
|
|
- Update to 2.0.8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-4 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-3 |
|
|
|
|
|
|
|
- Switch to %%ldconfig_scriptlets |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Nov 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-2 |
|
|
|
|
|
|
|
- Fix IBus |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-1 |
|
|
|
|
|
|
|
- Update to 2.0.7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-4 |
|
|
|
|
|
|
|
- Fully fix last overflow |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 11 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-3 |
|
|
|
|
|
|
|
- Fix potential overflow in surface allocation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-2 |
|
|
|
|
|
|
|
- Fix invalid dbus arguments |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Sep 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-1 |
|
|
|
|
|
|
|
- Update to 2.0.6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-6 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-5 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-4 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 27 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.0.5-3 |
|
|
|
|
|
|
|
- Fix NULL dereference (RHBZ #1416945) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 26 2016 Dan Horák <dan[at]danny.cz> - 2.0.5-2 |
|
|
|
|
|
|
|
- fix FTBFS on ppc64/ppc64le |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.5-1 |
|
|
|
|
|
|
|
- Update to 2.0.5 (RHBZ #1387238) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 05 2016 Kalev Lember <klember@redhat.com> - 2.0.4-9 |
|
|
|
|
|
|
|
- Backport Wayland fixes from upstream |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Aug 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.0.4-8 |
|
|
|
|
|
|
|
- Fix whitespaces in CMake file (RHBZ #1366868) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-7 |
|
|
|
|
|
|
|
- Remove useless Requirements from -devel subpkg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-6 |
|
|
|
|
|
|
|
- Add ibus support |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 10 2016 Joseph Mullally <jwmullally@gmail.com> - 2.0.4-5 |
|
|
|
|
|
|
|
- fix Wayland dynamic symbol loading (bz1354155) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 25 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-4 |
|
|
|
|
|
|
|
- enable static subpackage (bz1253930) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 5 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-3 |
|
|
|
|
|
|
|
- fix compile against latest wayland |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2 |
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 11 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-8 |
|
|
|
* Mon Jan 04 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-1 |
|
|
|
- Remove wayland support for Requires. |
|
|
|
- update to 2.0.4 |
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 06 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-7 |
|
|
|
* Fri Sep 04 2015 Michal Toman <mtoman@fedoraproject.org> - 2.0.3-7 |
|
|
|
- Remove wayland support. |
|
|
|
- Add support for MIPS architecture to SDL_config.h |
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6 |
|
|
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6 |
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
|
|
|