%define apiver 2.0 %define major 0 %define libname %mklibname sdl %{apiver} %{major} %define develname %mklibname sdl -d Name: sdl2 Summary: Simple DirectMedia Layer 2 Version: 2.0.0 Release: %mkrel 1 License: Zlib Group: System/Libraries URL: http://wiki.libsdl.org/moin.fcg/FrontPage Source0: http://www.libsdl.org/tmp/release/SDL2-%{version}.tar.gz BuildRequires: libx11-devel BuildRequires: libxext-devel %description This is the Simple DirectMedia Layer 2, a generic API that provides low level access to audio, keyboard, mouse, and display framebuffer across multiple platforms. SDL fully supports high end 3D graphics using Direct3D and OpenGL, and has a 2D graphics API for emulators and classic games. %package -n %{libname} Summary: Main library for %{name} Group: System/Libraries Provides: %{name} = %{version}-%{release} Provides: %{libname} = %{version} %description -n %{libname} This package contains the library needed to run programs dynamically linked with %{name}. %package -n %{develname} Summary: Headers for developing programs that use %{name} Group: Development/C Requires: %{libname} = %{version} Provides: %{develname} = %{version} %description -n %{develname} This package contains the headers that programmers will need to develop applications which will use %{name}. %package docs Summary: Documentation for Simple DirectMedia Layer 2 (SDL2) Group: Documentation BuildArch: noarch %description docs This package contains the generated API documentation for the SDL2 library. %prep %setup -q -n SDL2-%{version} %build %configure2_5x %make # generate docs pushd include doxygen -g doxygen -w html headerFile footerFile styleSheetFile doxyfile doxygen popd %install rm -rf %{buildroot} %makeinstall_std %files -n %{libname} %doc README-SDL.txt README.txt %doc CREDITS.txt COPYING.txt %doc BUGS.txt TODO.txt WhatsNew.txt %{_libdir}/libSDL2-%{apiver}.so.* %files -n %{develname} %{_bindir}/*-config %{_libdir}/lib*.so %{_libdir}/lib*.la %{_libdir}/lib*.a %{_libdir}/pkgconfig/* %{_datadir}/aclocal/* %{_includedir}/SDL2/*.h %files docs %doc include/html