SDL_gfx/SDL_gfx.spec

186 lines
6.2 KiB
RPMSpec

#
# spec file for package SDL_gfx (Version 2.0.17)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: SDL_gfx
BuildRequires: SDL-devel
Url: http://www.ferzkopp.net/Software/SDL_gfx-2.0/
Summary: SDL Graphics Routines for Primitives and Other Support Functions
Version: 2.0.17
Release: 49
Source0: %{name}-%{version}.tar.gz
License: LGPL v2.1 or later
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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_gfxPrimitives.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 is
written in plain C and can be used in C++ code.
Authors:
--------
Andreas Schiffler <aschiffler@appwares.com>
%package devel
License: LGPL v2.1 or later
Summary: Libraries, includes and more to develop SDL_gfx applications
Group: System/Libraries
Requires: %{name} = %{version} SDL-devel
%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. It is
written in plain C and can be used in C++ code.
Authors:
--------
Andreas Schiffler <aschiffler@appwares.com>
%prep
%setup -q
%build
%{?suse_update_config:%{suse_update_config -f }}
rm acinclude.m4 ; touch acinclude.m4 # Only contains SDL.m4 and libtool.m4
autoreconf -fiv
CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic --disable-mmx
%{__make} %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
%_libdir/lib*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/SDL/*
%_libdir/lib*.so
%changelog
* Wed Feb 25 2009 crrodriguez@suse.de
- remove static libraries and "la" files
- correct -devel package dependencies
* Fri Jun 13 2008 sndirsch@suse.de
- update to release 2.0.17
* hline/vline clipping and swap-logic fixed
* clipping box dimension check added and clipping-checks optimized
* TestFonts program updated
* Updated documentation on cross-compilation, AMD64
* Fixed circleColor overdraw
* Added arcColor routine
* Added polygonColorMT and polygonTextureMT routines
* Updated 32bit alpha blending routine
* Sun Nov 18 2007 sndirsch@suse.de
- disable use of MMX on i386 to fix build with gcc 4.3
* Tue Feb 06 2007 sndirsch@suse.de
- updated to release 2.0.16
* updated config.sub to newer version
* added custom RGBA blitter function that sets/maintains target
alpha
* added setAlpha function that sets alpha values in 32bit
surfaces
* added TextGfxBlit testprogram for new functions
* Fixed C++ type in .h files (thanks Olivier)
* Update some text in README and .spec file
* Removed broken Uint filter routines from test program
* "Cosmetic" changes to test programs and Automake.am
* Sat Dec 23 2006 sndirsch@suse.de
- updated to release 2.0.15
* bugfixes in 32bit _putPixelAlpha/filledRectAlpha (thanks CISC)
* various bugfixes in return value generation and return (thanks CISC)
* lock font-surface before using it (thanks CISC)
* fix some breakage in non-MMX filter routines (thanks CISC)
* fix typo in TestABGR (thanks CISC)
* fix double buffer flipping in Tets programs (thanks CISC)
* fixed microversion in .h
* fixed texturePolygon inverted bug
* fixed wrong surface use in test 21 of TestRotozoom
* added pitch handling in font surface (thanks CISC)
* Wed Dec 20 2006 sndirsch@suse.de
- updated to release 2.0.14
* added texturedPolygon routine to library (thanks Jees)
* changed iterator condition in aaellipse to add some overdraw
to smooth circle
* added ShrinkImage routine to rotozoom code
* added TestABGR Test program (bug in SDL_gfx or SDL??)
* improved TestImageFilter program (bug in Uint filters)
* changed .so versioning from .so.13.0.0 to .so.0.0.14
(best is to remove all old libs before installing)
* added updated MacOSX ProjectBuilder file (thanks Brian)
* added info on MacOSX 10.3 build
* added mingw (on cygwin) makefile (thanks Brian)
* added Dev-Cpp makefile (thanks Sebastian)
* removed some unused variables from gfx and rotozoom code
(thanks Thi)
* fixed a non-critical typecast mistake (thanks Thi)
* converted all C++ comments to C comments in SDL_imageFilter
- random.diff:
* fixed fatal build warnings for returning random data in a function
* Thu Sep 14 2006 nadvornik@suse.cz
- fixed Requires of devel subpackage [#192736]
* Fri Mar 10 2006 bk@suse.de
- SDL_gfx-devel: add libstdc++, gcc and gpm to Requires (.la check)
* Mon Jan 30 2006 ro@suse.de
- added gcc-c++ to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Aug 14 2005 sndirsch@suse.de
- created package; useful e.g. for building lincity-ng