%define name SDL_gfx %define major 10 %define libname %mklibname %{name} %{major} Summary: SDL graphics drawing primitives and other support functions Name: SDL_gfx Version: 2.0.10 Release: 1mdk License: LGPL Group: System/Libraries Source0: http://www.ferzkopp.net/Software/%{name}-2.0/%{name}-%{version}.tar.bz2 URL: http://www.ferzkopp.net/Software/%{name}-2.0/index.html BuildRequires: SDL-devel >= 1.2.0 BuildRequires: libpng-devel >= 1.0.8 BuildRequires: libtiff-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) %description The SDL_gfx library evolved out of the SDL_gfxPrimitives code. The current components of the SDL_gfx library are: - Graphic Primitives (SDL_gfxPrimitves.h) - Rotozoomer (SDL_rotozoom.h) - Framerate control (SDL_framerate.h) - MMX image filters (SDL_imageFilter.h) The library is backwards compatible to the above mentioned code. It's is written in plain C and can be used in C++ code. %package -n %libname Summary: SDL graphics drawing primitives and other support functions Group: System/Libraries %description -n %libname The SDL_gfx library evolved out of the SDL_gfxPrimitives code. The current components of the SDL_gfx library are: - Graphic Primitives (SDL_gfxPrimitves.h) - Rotozoomer (SDL_rotozoom.h) - Framerate control (SDL_framerate.h) - MMX image filters (SDL_imageFilter.h) The library is backwards compatible to the above mentioned code. It's is written in plain C and can be used in C++ code. %package -n %libname-devel Summary: Header files and more to develop SDL_gfx applications Group: Development/C Requires: %{libname} = %{version}-%release Requires: SDL-devel Provides: lib%{name}-devel = %version-%release %description -n %libname-devel Header files and more to develop SDL_gfx applications. %package -n %libname-static-devel Summary: Static SDL_gfx libraries Group: Development/C Requires: %{libname}-devel = %{version}-%release %description -n %libname-static-devel Static SDL_gfx libraries. %prep %setup -q # fix timestamps touch * %build rm -f missing acinclude.m4 libtoolize --force aclocal automake -a autoconf %configure --disable-mmx %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files -n %libname %defattr(-,root,root) %{_libdir}/lib*.so.* %files -n %libname-devel %defattr(-,root,root) %doc README ChangeLog AUTHORS Docs %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/* %files -n %libname-static-devel %defattr(-,root,root) %{_libdir}/lib*.a %changelog * Fri Dec 12 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.10-1mdk - new version * Tue Nov 4 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.9-1mdk - new major - new version * Thu Jul 17 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.8-1mdk - new major - new version * Tue Jul 15 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.7-2mdk - rebuild for new rpm * Sun Jun 8 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.7-1mdk - fix build - fix buildrequires - new major - new version * Sat May 31 2003 Austin Acton <aacton@yorku.ca> 2.0.3-4mdk - rebuild for rpm-4.2 * Tue Mar 11 2003 Götz Waschk <waschk@linux-mandrake.com> 2.0.3-3mdk - mklibname macro * Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 2.0.3-2mdk - add missing file * Mon Aug 5 2002 Götz Waschk <waschk@linux-mandrake.com> 2.0.3-1mdk - initial MDK package based on PLD work