|
|
a98d8b |
Name: SDL2
|
|
|
b9a20a |
Version: 2.0.10
|
|
|
b9a20a |
Release: 2%{?dist}
|
|
|
a98d8b |
Summary: Cross-platform multimedia library
|
|
|
a98d8b |
|
|
|
a98d8b |
%if 0%{?fedora}
|
|
|
a98d8b |
%global enable_jack 1
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
|
|
|
a98d8b |
License: zlib and MIT
|
|
|
a98d8b |
URL: http://www.libsdl.org/
|
|
|
a98d8b |
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
|
|
|
a98d8b |
Source1: SDL_config.h
|
|
|
a98d8b |
|
|
|
a98d8b |
Patch0: multilib.patch
|
|
|
b9a20a |
# ptrdiff_t is not the same as khronos defines on 32bit arches
|
|
|
b9a20a |
Patch1: SDL2-2.0.9-khrplatform.patch
|
|
|
b9a20a |
Patch2: CVE-2019-13616-validate_image_size_when_loading_BMP_files.patch
|
|
|
a98d8b |
|
|
|
b9a20a |
BuildRequires: gcc
|
|
|
a98d8b |
BuildRequires: alsa-lib-devel
|
|
|
a98d8b |
BuildRequires: mesa-libGL-devel
|
|
|
a98d8b |
BuildRequires: mesa-libGLU-devel
|
|
|
a98d8b |
BuildRequires: mesa-libEGL-devel
|
|
|
a98d8b |
BuildRequires: mesa-libGLES-devel
|
|
|
a98d8b |
BuildRequires: libXext-devel
|
|
|
a98d8b |
BuildRequires: libX11-devel
|
|
|
a98d8b |
BuildRequires: libXi-devel
|
|
|
a98d8b |
BuildRequires: libXrandr-devel
|
|
|
a98d8b |
BuildRequires: libXrender-devel
|
|
|
a98d8b |
BuildRequires: libXScrnSaver-devel
|
|
|
a98d8b |
BuildRequires: libusb-devel
|
|
|
a98d8b |
BuildRequires: libXinerama-devel
|
|
|
a98d8b |
BuildRequires: libXcursor-devel
|
|
|
a98d8b |
BuildRequires: systemd-devel
|
|
|
a98d8b |
# PulseAudio
|
|
|
a98d8b |
BuildRequires: pkgconfig(libpulse-simple)
|
|
|
a98d8b |
# Jack
|
|
|
a98d8b |
%if 0%{?enable_jack}
|
|
|
a98d8b |
BuildRequires: pkgconfig(jack)
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
# D-Bus
|
|
|
a98d8b |
BuildRequires: pkgconfig(dbus-1)
|
|
|
a98d8b |
# IBus
|
|
|
a98d8b |
BuildRequires: pkgconfig(ibus-1.0)
|
|
|
a98d8b |
# Wayland
|
|
|
a98d8b |
BuildRequires: pkgconfig(wayland-client)
|
|
|
a98d8b |
BuildRequires: pkgconfig(wayland-egl)
|
|
|
a98d8b |
BuildRequires: pkgconfig(wayland-cursor)
|
|
|
a98d8b |
BuildRequires: pkgconfig(wayland-protocols)
|
|
|
a98d8b |
BuildRequires: pkgconfig(wayland-scanner)
|
|
|
a98d8b |
BuildRequires: pkgconfig(xkbcommon)
|
|
|
a98d8b |
# Vulkan
|
|
|
a98d8b |
%ifnarch s390 s390x aarch64 ppc64le
|
|
|
a98d8b |
BuildRequires: vulkan-devel
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
# KMS
|
|
|
a98d8b |
BuildRequires: mesa-libgbm-devel
|
|
|
a98d8b |
BuildRequires: libdrm-devel
|
|
|
a98d8b |
|
|
|
a98d8b |
%description
|
|
|
a98d8b |
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
|
|
|
a98d8b |
to provide fast access to the graphics frame buffer and audio device.
|
|
|
a98d8b |
|
|
|
a98d8b |
%package devel
|
|
|
a98d8b |
Summary: Files needed to develop Simple DirectMedia Layer applications
|
|
|
a98d8b |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a98d8b |
Requires: mesa-libEGL-devel%{?_isa}
|
|
|
a98d8b |
Requires: mesa-libGLES-devel%{?_isa}
|
|
|
a98d8b |
Requires: libX11-devel%{?_isa}
|
|
|
a98d8b |
|
|
|
a98d8b |
%description devel
|
|
|
a98d8b |
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
|
|
|
a98d8b |
to provide fast access to the graphics frame buffer and audio device. This
|
|
|
a98d8b |
package provides the libraries, include files, and other resources needed for
|
|
|
a98d8b |
developing SDL applications.
|
|
|
a98d8b |
|
|
|
a98d8b |
%package static
|
|
|
a98d8b |
Summary: Static libraries for SDL2
|
|
|
a98d8b |
|
|
|
a98d8b |
%description static
|
|
|
a98d8b |
Static libraries for SDL2.
|
|
|
a98d8b |
|
|
|
a98d8b |
%prep
|
|
|
a98d8b |
%autosetup -p1
|
|
|
a98d8b |
# Compilation without ESD
|
|
|
b9a20a |
sed -i -e 's/.*AM_PATH_ESD.*//' configure.ac
|
|
|
a98d8b |
sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt
|
|
|
a98d8b |
|
|
|
a98d8b |
%build
|
|
|
a98d8b |
%configure \
|
|
|
a98d8b |
--enable-sdl-dlopen \
|
|
|
a98d8b |
--enable-video-kmsdrm \
|
|
|
a98d8b |
--disable-arts \
|
|
|
a98d8b |
--disable-esd \
|
|
|
a98d8b |
--disable-nas \
|
|
|
a98d8b |
--enable-pulseaudio-shared \
|
|
|
a98d8b |
%if 0%{?enable_jack}
|
|
|
a98d8b |
--enable-jack-shared \
|
|
|
a98d8b |
%else
|
|
|
a98d8b |
--disable-jack \
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
--enable-alsa \
|
|
|
a98d8b |
--enable-video-wayland \
|
|
|
a98d8b |
%ifnarch s390 s390x aarch64 ppc64le
|
|
|
a98d8b |
--enable-video-vulkan \
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
--enable-sse2=no \
|
|
|
a98d8b |
--enable-sse3=no \
|
|
|
a98d8b |
--disable-rpath \
|
|
|
a98d8b |
%ifarch ppc64le
|
|
|
a98d8b |
--disable-altivec \
|
|
|
a98d8b |
%endif
|
|
|
a98d8b |
|
|
|
a98d8b |
make %{?_smp_mflags}
|
|
|
a98d8b |
|
|
|
a98d8b |
%install
|
|
|
a98d8b |
%make_install
|
|
|
a98d8b |
|
|
|
a98d8b |
# Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
|
|
|
a98d8b |
# multilib systems and install SDL_config.h wrapper
|
|
|
a98d8b |
mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/SDL_config-%{_arch}.h
|
|
|
a98d8b |
install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h
|
|
|
a98d8b |
|
|
|
a98d8b |
# remove libtool .la file
|
|
|
a98d8b |
rm -vf %{buildroot}%{_libdir}/*.la
|
|
|
a98d8b |
# remove static .a file
|
|
|
a98d8b |
# rm -f %{buildroot}%{_libdir}/*.a
|
|
|
a98d8b |
|
|
|
a98d8b |
%ldconfig_scriptlets
|
|
|
a98d8b |
|
|
|
a98d8b |
%files
|
|
|
a98d8b |
%license COPYING.txt
|
|
|
a98d8b |
%doc BUGS.txt CREDITS.txt README-SDL.txt
|
|
|
a98d8b |
%{_libdir}/lib*.so.*
|
|
|
a98d8b |
|
|
|
a98d8b |
%files devel
|
|
|
a98d8b |
%doc README.txt TODO.txt WhatsNew.txt
|
|
|
a98d8b |
%{_bindir}/*-config
|
|
|
a98d8b |
%{_libdir}/lib*.so
|
|
|
a98d8b |
%{_libdir}/pkgconfig/sdl2.pc
|
|
|
a98d8b |
%{_libdir}/cmake/SDL2/
|
|
|
a98d8b |
%{_includedir}/SDL2
|
|
|
a98d8b |
%{_datadir}/aclocal/*
|
|
|
a98d8b |
|
|
|
a98d8b |
%files static
|
|
|
a98d8b |
%license COPYING.txt
|
|
|
a98d8b |
%{_libdir}/lib*.a
|
|
|
a98d8b |
|
|
|
a98d8b |
%changelog
|
|
|
b9a20a |
* Fri Nov 22 2019 Wim Taymans <wtaymans@redhat.com> - 2.0.10-2
|
|
|
b9a20a |
- Fix CVE-2019-13616 SDL: heap-based buffer overflow in SDL blit
|
|
|
b9a20a |
functions in video/SDL_blit*.c
|
|
|
b9a20a |
- Resolves: rhbz#1756279
|
|
|
b9a20a |
|
|
|
b9a20a |
* Tue Nov 12 2019 Wim Taymans <wtaymans@redhat.com> - 2.0.10-1
|
|
|
b9a20a |
- Update to 2.0.10
|
|
|
b9a20a |
- Resolves: rhbz#1751780
|
|
|
b9a20a |
|
|
|
b9a20a |
* Fri Feb 15 2019 Tom Callaway <spot@fedoraproject.org> - 2.0.9-3
|
|
|
b9a20a |
- use khrplatform defines, not ptrdiff_t
|
|
|
b9a20a |
|
|
|
a98d8b |
* Tue Aug 14 2018 Wim Taymans <wtaymans@redhat.com> - 2.0.8-7
|
|
|
a98d8b |
- Disable jack
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sat Aug 11 2018 Wim Taymans <wtaymans@redhat.com> - 2.0.8-6
|
|
|
a98d8b |
- Disable vulkan on s390, s390x, aarch64 and ppc64le
|
|
|
a98d8b |
- Resolves: rhbz#1610034
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Jul 17 2018 Wim Taymans <wtaymans@redhat.com> - 2.0.8-5
|
|
|
a98d8b |
- Disable obsolete audiofile-devel BR (#1588283)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Apr 11 2018 Tom Callaway <spot@fedoraproject.org> - 2.0.8-4
|
|
|
a98d8b |
- enable video-kmsdrm
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Mar 30 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 2.0.8-3
|
|
|
a98d8b |
- Add riscv64 to SDL_config.h
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Mar 04 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.8-2
|
|
|
a98d8b |
- Disable altivec on ppc64le (RHBZ #1551338)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Mar 4 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.8-1
|
|
|
a98d8b |
- Update to 2.0.8
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-4
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-3
|
|
|
a98d8b |
- Switch to %%ldconfig_scriptlets
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Nov 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-2
|
|
|
a98d8b |
- Fix IBus
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Oct 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.7-1
|
|
|
a98d8b |
- Update to 2.0.7
|
|
|
a98d8b |
|
|
|
a98d8b |
* Thu Oct 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-4
|
|
|
a98d8b |
- Fully fix last overflow
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Oct 11 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-3
|
|
|
a98d8b |
- Fix potential overflow in surface allocation
|
|
|
a98d8b |
|
|
|
a98d8b |
* Thu Oct 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-2
|
|
|
a98d8b |
- Fix invalid dbus arguments
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sat Sep 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.6-1
|
|
|
a98d8b |
- Update to 2.0.6
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-6
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-5
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-4
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Jan 27 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.0.5-3
|
|
|
a98d8b |
- Fix NULL dereference (RHBZ #1416945)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Oct 26 2016 Dan Horák <dan[at]danny.cz> - 2.0.5-2
|
|
|
a98d8b |
- fix FTBFS on ppc64/ppc64le
|
|
|
a98d8b |
|
|
|
a98d8b |
* Thu Oct 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.5-1
|
|
|
a98d8b |
- Update to 2.0.5 (RHBZ #1387238)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Mon Sep 05 2016 Kalev Lember <klember@redhat.com> - 2.0.4-9
|
|
|
a98d8b |
- Backport Wayland fixes from upstream
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Aug 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 2.0.4-8
|
|
|
a98d8b |
- Fix whitespaces in CMake file (RHBZ #1366868)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Jul 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-7
|
|
|
a98d8b |
- Remove useless Requirements from -devel subpkg
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Jul 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.4-6
|
|
|
a98d8b |
- Add ibus support
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sun Jul 10 2016 Joseph Mullally <jwmullally@gmail.com> - 2.0.4-5
|
|
|
a98d8b |
- fix Wayland dynamic symbol loading (bz1354155)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Thu Feb 25 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-4
|
|
|
a98d8b |
- enable static subpackage (bz1253930)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Feb 5 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-3
|
|
|
a98d8b |
- fix compile against latest wayland
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Mon Jan 04 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.4-1
|
|
|
a98d8b |
- update to 2.0.4
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Sep 04 2015 Michal Toman <mtoman@fedoraproject.org> - 2.0.3-7
|
|
|
a98d8b |
- Add support for MIPS architecture to SDL_config.h
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Jun 2 2015 Tom Callaway <spot@fedoraproject.org> - 2.0.3-5
|
|
|
a98d8b |
- remove code preventing builds with ancient gcc
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Jun 11 2014 Karsten Hopp <karsten@redhat.com> 2.0.3-3
|
|
|
a98d8b |
- fix filename of SDL_config.h for ppc64le
|
|
|
a98d8b |
|
|
|
a98d8b |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
|
|
|
a98d8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
a98d8b |
|
|
|
a98d8b |
* Wed Mar 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1
|
|
|
a98d8b |
- 2.0.3 upstream release
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sat Mar 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
|
|
|
a98d8b |
- 2.0.2 upstream release
|
|
|
a98d8b |
- Enable wayland backend
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Dec 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-2
|
|
|
a98d8b |
- Add libXinerama, libudev, libXcursor support (RHBZ #1039702)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Thu Oct 24 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.1-1
|
|
|
a98d8b |
- update to 2.0.1
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sat Aug 24 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
|
|
|
a98d8b |
- Fix multilib issues
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Aug 13 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
|
|
|
a98d8b |
- SDL2 is released. Announce:
|
|
|
a98d8b |
- http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html
|
|
|
a98d8b |
|
|
|
a98d8b |
* Sat Aug 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc4
|
|
|
a98d8b |
- Update to latest SDL2 (08.08.2013)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc3
|
|
|
a98d8b |
- Fix Licenses
|
|
|
a98d8b |
- some cleanups in spec
|
|
|
a98d8b |
|
|
|
a98d8b |
* Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc2
|
|
|
a98d8b |
- Delete -static package
|
|
|
a98d8b |
- Fix License tag
|
|
|
a98d8b |
- Fix end-of-line in documents
|
|
|
a98d8b |
- Remove all spike-nails EL-specify (if someone will want to do - 'patches are welcome')
|
|
|
a98d8b |
- Change Release tag to .rcX%%{?dist} (maintainer has changed released tarballs)
|
|
|
a98d8b |
|
|
|
a98d8b |
* Mon Jul 29 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc1
|
|
|
a98d8b |
- Some fixes in spec and cleanup
|
|
|
a98d8b |
|
|
|
a98d8b |
* Mon Jul 29 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.0-1
|
|
|
a98d8b |
- Ported from SDL 1.2.15-10
|