commit ff29444b051bd20b719f62c5cec4e4e6b4bc44d1 Author: Rosa Date: Mon Aug 5 18:37:46 2013 +0400 Automatic import for version 2.0.0-0.1 diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..ce82a66 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + "SDL2-2.0.0.tar.gz": c65e320c9c3fee5cb59b9683eb2d92e40eec08fb diff --git a/SDL2.spec b/SDL2.spec new file mode 100644 index 0000000..287bc50 --- /dev/null +++ b/SDL2.spec @@ -0,0 +1,86 @@ +%define api 2.0 +%define major 0 +%define libname %mklibname SDL %{api} %{major} +%define devname %mklibname %{name} -d + +Summary: Simple DirectMedia Layer +Name: SDL2 +Version: 2.0.0 +Release: 0.1 +License: Zlib +Group: System/Libraries +Url: http://www.libsdl.org/ +Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz + +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glu) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(zlib) + +#---------------------------------------------------------------------------- + +%description +This is the Simple DirectMedia Layer, a generic API that provides low level +access to audio, keyboard, mouse, and display framebuffer across multiple +platforms. + +%package -n %{libname} +Summary: Main library for %{name} +Group: System/Libraries + +%description -n %{libname} +This package contains the library needed to run programs dynamically +linked with %{name}. + +%files -n %{libname} +%doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt +%{_libdir}/libSDL2-%{api}.so.%{major}* + +#---------------------------------------------------------------------------- + +%package -n %{devname} +Summary: Headers for developing programs that will use %{name} +Group: Development/C +Requires: %{libname} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} + +%description -n %{devname} +This package contains the headers that programmers will need to develop +applications which will use %{name}. + +%files -n %{devname} +%doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt +%{_bindir}/sdl2-config +%{_libdir}/pkgconfig/sdl2.pc +%{_libdir}/*.so +%dir %{_includedir}/SDL2 +%{_includedir}/SDL2/*.h +%{_datadir}/aclocal/sdl2.m4 + +#---------------------------------------------------------------------------- + +%prep +%setup -q + +%build +%configure2_5x \ + --disable-static \ + --disable-rpath \ + --disable-esd \ + --disable-oss \ + --enable-pulseaudio \ + --enable-pulseaudio-shared \ + --enable-alsa \ + --enable-alsa-shared + +sed -i s,"objdir=.libs","objdir=",g libtool +%make + +%install +rm build/libSDL2.la +cp build/libSDL2.lai build/libSDL2.la +%makeinstall_std + +rm -f %{buildroot}%{_libdir}/*.a +