From 679981d396a6007f27399a3e1e6ff4223d1aefe3db9ac141afb440d19b2b3a68 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 20 Dec 2006 19:33:08 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/SDL_gfx?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + SDL_gfx-2.0.14.tar.gz | 3 + SDL_gfx.changes | 48 ++++++++++++++ SDL_gfx.spec | 149 ++++++++++++++++++++++++++++++++++++++++++ random.diff | 15 +++++ ready | 0 7 files changed, 239 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 SDL_gfx-2.0.14.tar.gz create mode 100644 SDL_gfx.changes create mode 100644 SDL_gfx.spec create mode 100644 random.diff create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SDL_gfx-2.0.14.tar.gz b/SDL_gfx-2.0.14.tar.gz new file mode 100644 index 0000000..aa7c155 --- /dev/null +++ b/SDL_gfx-2.0.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:224c772f1a65d4707596d12f83712e195463d3c10940c11f5ed332abb58f85bf +size 1022160 diff --git a/SDL_gfx.changes b/SDL_gfx.changes new file mode 100644 index 0000000..999a04e --- /dev/null +++ b/SDL_gfx.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Wed Dec 20 11:12:52 CET 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 16:13:30 CEST 2006 - nadvornik@suse.cz + +- fixed Requires of devel subpackage [#192736] + +------------------------------------------------------------------- +Fri Mar 10 14:15:41 CET 2006 - bk@suse.de + +- SDL_gfx-devel: add libstdc++, gcc and gpm to Requires (.la check) + +------------------------------------------------------------------- +Mon Jan 30 12:18:15 CET 2006 - ro@suse.de + +- added gcc-c++ to BuildRequires + +------------------------------------------------------------------- +Wed Jan 25 21:33:56 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sun Aug 14 13:42:34 CEST 2005 - sndirsch@suse.de + +- created package; useful e.g. for building lincity-ng + diff --git a/SDL_gfx.spec b/SDL_gfx.spec new file mode 100644 index 0000000..f682b55 --- /dev/null +++ b/SDL_gfx.spec @@ -0,0 +1,149 @@ +# +# spec file for package SDL_gfx (Version 2.0.14) +# +# Copyright (c) 2006 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.14 +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 + +%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 + +%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 +* 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 diff --git a/random.diff b/random.diff new file mode 100644 index 0000000..0e9ad8c --- /dev/null +++ b/random.diff @@ -0,0 +1,15 @@ +--- SDL_gfxPrimitives.c.orig 2006-12-20 18:14:28.810409662 +0100 ++++ SDL_gfxPrimitives.c 2006-12-20 18:19:52.144403556 +0100 +@@ -3565,10 +3565,10 @@ + } + } + if (maxx <0 || minx > dst->w){ +- return; ++ return -1; + } + if (maxy <0 || miny > dst->h){ +- return; ++ return -1; + } + + /* diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4