Name: SDL_gfx Summary: SDL graphics drawing primitives and other support functions Version: 2.0.9 Release: 1.mv.0.SuSE9.2 License: LGPL Group: System/Libraries Prefix: %{_prefix} #Source: http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.9.tar.gz Source0: %{name}-%{version}.tar.bz2 Vendor: Andreas Schiffler Packager: Martin Väth BuildRoot: /tmp/%{name}-root-%{version} %description The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces. 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. Its is written in plain C and can be used in C++ code. %package devel Summary: Libraries and includes to develop SDL_gfx programs Group: Development/Libraries/X11 Requires: %{name} = %{version} %description devel The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces. 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. Its is written in plain C and can be used in C++ code. %package demos Summary: SDL_gfx demo programs Group: Productivity/Graphics/Other Requires: %{name} = %{version} %description demos SDL_gfx demo applications and source code. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else %configure CFLAGS="$RPM_OPT_FLAGS" make cd Test #export CFLAGS="-I../ $RPM_OPT_FLAGS" #export LDFLAGS="-L../.libs/" #--libdir=../.libs -includedir=../ CFLAGS="-I../" LDFLAGS="-L../.libs/" ./configure --libdir=../.libs/ --includedir=../ make cd .. find . -name "*.so*" -type f | xargs strip --strip-unneeded %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' make DESTDIR='%{buildroot}' install %define demodir %{_datadir}/SDL_gfx-demos install -d -m 755 '%{buildroot}%{demodir}' cp -p Test/* '%{buildroot}%{demodir}' chmod -R u+w,a+rX,go-w '%{buildroot}%{demodir}' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %{_libdir}/libSDL_gfx.so* %files devel %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README %doc Docs/ %{_libdir}/libSDL_gfx.a %{_libdir}/libSDL_gfx.la %{_includedir}/*.h %files demos %defattr(-,root,root) %{demodir} %changelog * Wed Nov 26 2003 Martin Väth - Changes for SuSE9.0 * Wed Jan 01 2003 Danny Sung - (Date is probably false) - Built from Scratch