From 81440fa47f218348b08100ebc92f8e8060360c9fa4fdfb8068fbdb2bfac67869 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 28 Oct 2013 17:45:18 +0000 Subject: [PATCH] - created package (version 1.0.0) - based on SDL_gfx package OBS-URL: https://build.opensuse.org/package/show/games/SDL2_gfx?expand=0&rev=2 --- SDL2_gfx-1.0.0.tar.gz | 3 + SDL2_gfx.changes | 6 ++ SDL2_gfx.spec | 78 ++++++++++++++++++ SDL_gfx-2.0.23.tar.gz | 3 - SDL_gfx.changes | 182 ------------------------------------------ SDL_gfx.spec | 122 ---------------------------- baselibs.conf | 12 +-- 7 files changed, 93 insertions(+), 313 deletions(-) create mode 100644 SDL2_gfx-1.0.0.tar.gz create mode 100644 SDL2_gfx.changes create mode 100644 SDL2_gfx.spec delete mode 100644 SDL_gfx-2.0.23.tar.gz delete mode 100644 SDL_gfx.changes delete mode 100644 SDL_gfx.spec diff --git a/SDL2_gfx-1.0.0.tar.gz b/SDL2_gfx-1.0.0.tar.gz new file mode 100644 index 0000000..68b7bdd --- /dev/null +++ b/SDL2_gfx-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9843924d46eacbabba685a239cf2284b948766a20ef2caa48cb18462a3295caf +size 1081660 diff --git a/SDL2_gfx.changes b/SDL2_gfx.changes new file mode 100644 index 0000000..7065840 --- /dev/null +++ b/SDL2_gfx.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Mon Oct 28 17:37:37 UTC 2013 - prusnak@opensuse.org + +- created package (version 1.0.0) + - based on SDL_gfx package + diff --git a/SDL2_gfx.spec b/SDL2_gfx.spec new file mode 100644 index 0000000..604e611 --- /dev/null +++ b/SDL2_gfx.spec @@ -0,0 +1,78 @@ +# +# spec file for package SDL2_gfx +# +# Copyright (c) 2013 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/ +# + + +Name: SDL2_gfx +BuildRequires: libSDL2-devel +Url: http://sourceforge.net/projects/sdl2gfx/ +Summary: SDL2 Graphics Routines for Primitives and Other Support Functions +License: Zlib +Group: System/Libraries +Version: 1.0.0 +Release: 0 +Source0: %{name}-%{version}.tar.gz +Source1: baselibs.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. + +%package -n libSDL2_gfx-1_0-0 +Summary: SDL2 Graphics Routines for Primitives and Other Support Functions +Group: System/Libraries +Provides: SDL2_gfx = %{version} + +%description -n libSDL2_gfx-1_0-0 +Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. + +%package -n libSDL2_gfx-devel +Summary: Libraries, includes and more to develop SDL2_gfx applications +Group: Development/Libraries/C and C++ +Requires: libSDL2-devel +Requires: libSDL2_gfx-1_0-0 = %{version} +Requires: pkgconfig +Provides: SDL2_gfx-devel = %{version} + +%description -n libSDL2_gfx-devel +Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. + +%prep +%setup -q + +%build +%configure --disable-static --with-pic --disable-mmx +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT +%{__rm} -f %{buildroot}%{_libdir}/*.la + +%post -n libSDL2_gfx-1_0-0 -p /sbin/ldconfig + +%postun -n libSDL2_gfx-1_0-0 -p /sbin/ldconfig + +%files -n libSDL2_gfx-1_0-0 +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog NEWS README +%{_libdir}/lib*.so.* + +%files -n libSDL2_gfx-devel +%defattr(-,root,root) +%{_includedir}/SDL2/* +%{_libdir}/lib*.so + +%changelog diff --git a/SDL_gfx-2.0.23.tar.gz b/SDL_gfx-2.0.23.tar.gz deleted file mode 100644 index c85f041..0000000 --- a/SDL_gfx-2.0.23.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41bd601d65bba19eeac80a62570ce120098414ece22de402a8ee81b10e07faea -size 1707852 diff --git a/SDL_gfx.changes b/SDL_gfx.changes deleted file mode 100644 index 840b0df..0000000 --- a/SDL_gfx.changes +++ /dev/null @@ -1,182 +0,0 @@ -------------------------------------------------------------------- -Wed Feb 22 17:16:10 UTC 2012 - jreidinger@suse.com - -- update to version 2.0.23 - * Updated sources to resolve some splint (static code analysis) - issues - * Updates for OpenSDK (WinCE6/ARM) build target (patch contributed - itsnotabigtruck) - * Added OSX Xcode3+ template files to Other Builds collection - (contributed by Vasyl) - * Added various fixes and improvements contributed by folks on - sourceforge (thanks contributors). - * Switched library and test code to zlib license. -- fix self obsoletion - -------------------------------------------------------------------- -Fri Sep 16 18:21:15 UTC 2011 - jengelh@medozas.de - -- Add libSDL_gfx-devel to baselibs -- Remove redundant tags/sections - -------------------------------------------------------------------- -Sat Jul 2 14:51:35 UTC 2011 - jengelh@medozas.de - -- Use %_smp_mflags for parallel building -- Strip %clean section (not needed on BS) - -------------------------------------------------------------------- -Mon Feb 21 16:30:00 CET 2011 - tzotsos@opensuse.org - -- Updated to version 2.0.22 - * Fixed line width calculation for normal and textured polygons - (patch contributed by Daniel (SupSuper) - * Fixed version setup in configure.in - * Added rounded rectangle and rounded box primitives - * Updated test program for roundedbox + left/right-click support - * Fixed pie calculation (line-case detection, end-angle clipping) - * Updated DLL_EXPORT handling and added WIN64 test - (patch contributed by tigerfishdaisy) - * Added thick line primitive based on Murphy's algorithm - -------------------------------------------------------------------- -Wed Jan 27 02:38:07 CET 2010 - jengelh@medozas.de - -- package baselibs.conf - -------------------------------------------------------------------- -Wed Oct 7 14:52:23 CEST 2009 - prusnak@suse.cz - -- fix provides and obsoletes [bnc#544957] - -------------------------------------------------------------------- -Wed May 20 15:55:09 CEST 2009 - prusnak@suse.cz - -- follow Shared Library Policy - -------------------------------------------------------------------- -Tue May 19 13:29:53 CEST 2009 - prusnak@suse.cz - -- updated to 2.0.19 - * gcc43 compiler patch for asm code in image filters - * off-by-one hline patch for 1byte indexed surfaces - * update acinclude.m4 from SDL-1.2 and moved # serial in file - * applied patch to add pkg-config support for SDL_gfx - * changed configure.in INTERFACE_AGE and BINARY_AGE - * fixed zoom XY-flip code and made it available for all modes - in zoom and rotations - * fixed edge issue on interpolated rotozoom modes - * updated TestRotozoom custom test mode, added delay parameter - * added tests which include flipping, included negative rotation - * update libtool files - * updated Makefile.mingw - -- updated to 2.0.18 - * libtool update for dependencies - * fix uninitialised variables in _putPixelAlpha() - * reverted to original alpha routine in _putPixelAlpha() - * added colorkey handling patch to rotozoom - * downgraded optimization to -O for asm compatibility with gcc4 - -------------------------------------------------------------------- -Wed Feb 25 15:56:44 CET 2009 - crrodriguez@suse.de - -- remove static libraries and "la" files -- correct -devel package dependencies - -------------------------------------------------------------------- -Fri Jun 13 10:58:20 CEST 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 13:27:14 CET 2007 - sndirsch@suse.de - -- disable use of MMX on i386 to fix build with gcc 4.3 - -------------------------------------------------------------------- -Tue Feb 6 17:12:51 CET 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 10:49:43 CET 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 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 deleted file mode 100644 index 8c54e9b..0000000 --- a/SDL_gfx.spec +++ /dev/null @@ -1,122 +0,0 @@ -# -# spec file for package SDL_gfx -# -# Copyright (c) 2012 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/ -# - - - -Name: SDL_gfx -BuildRequires: libSDL-devel -Url: http://www.ferzkopp.net/Software/SDL_gfx-2.0/ -Summary: SDL Graphics Routines for Primitives and Other Support Functions -Version: 2.0.23 -Release: 1 -Source0: %{name}-%{version}.tar.gz -Source1: baselibs.conf -License: Zlib -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. - -%package -n libSDL_gfx13 -Summary: SDL Graphics Routines for Primitives and Other Support Functions -Group: System/Libraries -Provides: SDL_gfx = %{version} -Obsoletes: SDL_gfx < %{version} - -%description -n libSDL_gfx13 -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. - -%package -n libSDL_gfx-devel -Summary: Libraries, includes and more to develop SDL_gfx applications -Group: Development/Libraries/C and C++ -Requires: libSDL_gfx13 = %{version} libSDL-devel pkgconfig -Provides: SDL_gfx-devel = %{version} -Obsoletes: SDL_gfx-devel < %{version} - -%description -n libSDL_gfx-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. - -%prep -%setup -q - -%build -%configure --disable-static --with-pic --disable-mmx -make %{?_smp_mflags} - -%install -make install DESTDIR=$RPM_BUILD_ROOT -%{__rm} -f %{buildroot}%{_libdir}/*.la - -%post -n libSDL_gfx13 -p /sbin/ldconfig - -%postun -n libSDL_gfx13 -p /sbin/ldconfig - -%files -n libSDL_gfx13 -%defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog LICENSE NEWS README -%{_libdir}/lib*.so.* - -%files -n libSDL_gfx-devel -%defattr(-,root,root) -%{_includedir}/SDL/* -%{_libdir}/lib*.so -%{_libdir}/pkgconfig/SDL_gfx.pc - -%changelog diff --git a/baselibs.conf b/baselibs.conf index 7d8c913..b96f924 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,6 @@ -libSDL_gfx13 - provides "SDL_gfx- = " - obsoletes "SDL_gfx- <= " -libSDL_gfx-devel - requires -libSDL_gfx- - requires "libSDL_gfx13- = " +libSDL2_gfx-1_0-0 + provides "SDL2_gfx- = " + obsoletes "SDL2_gfx- <= " +libSDL2_gfx-devel + requires -libSDL2_gfx- + requires "libSDL2_gfx-1_0-0- = "