174 lines
5.4 KiB
RPMSpec
174 lines
5.4 KiB
RPMSpec
#
|
|
# spec file for package SDL_gfx (Version 2.0.16)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: SDL_gfx
|
|
BuildRequires: SDL-devel libstdc++-devel
|
|
URL: http://www.ferzkopp.net/mambo/index.php?option=com_content&task=view&id=14&Itemid=29
|
|
Summary: SDL Graphics Routines for Primitives and Other Support Functions
|
|
Version: 2.0.16
|
|
Release: 1
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Patch: random.diff
|
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
|
Group: System/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Prefix: %{_prefix}
|
|
|
|
%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
|
|
Summary: Libraries, includes and more to develop SDL_gfx applications
|
|
Group: System/Libraries
|
|
Requires: %{name} = %{version} SDL-devel libstdc++-devel gcc gpm
|
|
|
|
%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
|
|
%patch
|
|
|
|
%build
|
|
%{?suse_update_config:%{suse_update_config -f }}
|
|
rm acinclude.m4 ; touch acinclude.m4 # Only contains SDL.m4 and libtool.m4
|
|
libtoolize --copy --force
|
|
aclocal
|
|
autoconf
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
|
%ifnarch %ix86
|
|
--disable-mmx \
|
|
%endif
|
|
--prefix=%{prefix} \
|
|
--libdir=%{prefix}/%_lib
|
|
make
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%post
|
|
%run_ldconfig
|
|
|
|
%postun
|
|
%run_ldconfig
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
|
|
%{prefix}/%_lib/lib*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{prefix}/%_lib/*a
|
|
%{prefix}/include/SDL/
|
|
%{prefix}/%_lib/lib*.so
|
|
|
|
%changelog -n SDL_gfx
|
|
* 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
|