Blame SPECS/SDL2.spec

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