# # spec file for package SDL2 # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: SDL2 %define lname libSDL2-2_0-0 Version: 2.0.0 Release: 0 Summary: Simple DirectMedia Layer Library License: Zlib Group: Development/Libraries/X11 Url: http://libsdl.org/ #DL-URL: http://libsdl.org/download-2.0.php Source: http://libsdl.org/release/%name-%version.tar.gz Source2: http://libsdl.org/release/%name-%version.tar.gz.sig Source3: %name.keyring Source4: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: Mesa-libEGL-devel BuildRequires: Mesa-libGL-devel BuildRequires: Mesa-libGLESv1_CM-devel BuildRequires: Mesa-libGLESv2-devel BuildRequires: alsa-devel >= 0.9.0 BuildRequires: esound-devel >= 0.2.8 BuildRequires: libICE-devel BuildRequires: libX11-devel BuildRequires: libXScrnSaver-devel BuildRequires: libXcursor-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libXxf86vm-devel BuildRequires: nasm BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(libpulse-simple) >= 0.9 %ifarch ppc ppc64 BuildRequires: libspe2-devel %endif %description This is the "Simple DirectMedia Layer" library. It provides a generic API for access to audio, keyboard, mouse, and display framebuffer across multiple platforms. %package -n %lname Summary: Simple DirectMedia Layer Library Group: System/Libraries Provides: SDL2 = %{version} %description -n %lname This is the "Simple DirectMedia Layer" library. It provides a generic API for access to audio, keyboard, mouse, and display framebuffer across multiple platforms. %package -n libSDL2-devel Summary: SDL2 Library Developer Files Group: Development/Libraries/X11 Requires: %lname = %{version} Requires: c_compiler Requires: pkgconfig Requires: pkgconfig(gl) Requires: pkgconfig(glesv1_cm) Requires: pkgconfig(glesv2) Requires: pkgconfig(glu) Requires: pkgconfig(x11) Requires: pkgconfig(xproto) %description -n libSDL2-devel This package contains files needed for development with the SDL2 library. %prep %{?gpg_verify: %gpg_verify %{S:2}} %setup -q %build %configure \ --with-pic \ --disable-rpath \ --disable-alsa-shared \ --disable-video-svga \ --disable-video-ps3 \ --disable-video-directfb make %{?_smp_mflags} %install make install DESTDIR="%buildroot" rm -f %{buildroot}%{_libdir}/*.la %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %doc BUGS.txt COPYING.txt CREDITS.txt README.txt README-SDL.txt %{_libdir}/libSDL2-2*.so.* %files -n libSDL2-devel %defattr(-,root,root) %doc TODO.txt WhatsNew.txt %{_bindir}/sdl2-config %{_libdir}/libSDL2.so %{_libdir}/libSDL2.a %{_libdir}/libSDL2main.a %{_libdir}/libSDL2_test.a %{_includedir}/SDL2/ %{_datadir}/aclocal/sdl2.m4 %{_libdir}/pkgconfig/sdl2.pc %changelog