From f9091471ba63584e686b0081ac225c5f65b05de4a093984dd53ba528c7a7a1ad Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 13 Aug 2013 12:00:35 +0000 Subject: [PATCH] - created package (version 2.0.0) - based on SDL_ttf package OBS-URL: https://build.opensuse.org/package/show/games/SDL2_ttf?expand=0&rev=2 --- SDL2_ttf-2.0.12.tar.gz | 3 + SDL2_ttf.changes | 5 + SDL_ttf.spec => SDL2_ttf.spec | 52 +++++------ SDL_ttf-2.0.11-repack.tar.bz2 | 3 - SDL_ttf.changes | 166 ---------------------------------- baselibs.conf | 12 +-- 6 files changed, 38 insertions(+), 203 deletions(-) create mode 100644 SDL2_ttf-2.0.12.tar.gz create mode 100644 SDL2_ttf.changes rename SDL_ttf.spec => SDL2_ttf.spec (65%) delete mode 100644 SDL_ttf-2.0.11-repack.tar.bz2 delete mode 100644 SDL_ttf.changes diff --git a/SDL2_ttf-2.0.12.tar.gz b/SDL2_ttf-2.0.12.tar.gz new file mode 100644 index 0000000..675fab0 --- /dev/null +++ b/SDL2_ttf-2.0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e +size 5517665 diff --git a/SDL2_ttf.changes b/SDL2_ttf.changes new file mode 100644 index 0000000..4bd55e7 --- /dev/null +++ b/SDL2_ttf.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Aug 13 11:27:54 UTC 2013 - prusnak@opensuse.org + +- created package (version 2.0.0) - based on SDL_ttf package + diff --git a/SDL_ttf.spec b/SDL2_ttf.spec similarity index 65% rename from SDL_ttf.spec rename to SDL2_ttf.spec index a47be61..9d615d4 100644 --- a/SDL_ttf.spec +++ b/SDL2_ttf.spec @@ -1,5 +1,5 @@ # -# spec file for package SDL_ttf +# spec file for package SDL2_ttf # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -16,45 +16,41 @@ # -Name: SDL_ttf -BuildRequires: freetype2-devel -BuildRequires: libSDL-devel -Url: http://www.libsdl.org/projects/SDL_ttf/ -Version: 2.0.11 +Name: SDL2_ttf +Version: 2.0.12 Release: 0 Summary: Simple DirectMedia Layer - Truetype Library License: Zlib Group: System/Libraries -# removed VisualC dir, Watcom-Win32.zip, Xcode and Xcode-iOS dirs from upstream tarball [bnc#508180] -Source: %{name}-%{version}-repack.tar.bz2 +Url: http://www.libsdl.org/projects/SDL_ttf/ +Source: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz Source2: baselibs.conf +BuildRequires: freetype2-devel +BuildRequires: libSDL2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a sample library that allows you to use TrueType fonts in your SDL applications. -%package -n libSDL_ttf-2_0-0 +%package -n libSDL2_ttf-2_0-0 Summary: Simple DirectMedia Layer - Truetype Library Group: System/Libraries -Provides: SDL_ttf = %{version} -Obsoletes: SDL_ttf <= %{version} +Provides: SDL2_ttf = %{version} -%description -n libSDL_ttf-2_0-0 +%description -n libSDL2_ttf-2_0-0 This is a sample library that allows you to use TrueType fonts in your SDL applications. -%package -n libSDL_ttf-devel -Requires: %{name} = %{version} -Requires: SDL-devel +%package -n libSDL2_ttf-devel Summary: Simple DirectMedia Layer - Truetype Library Group: Development/Libraries/C and C++ -Requires: libSDL-devel -Requires: libSDL_ttf-2_0-0 = %{version} -Provides: SDL_ttf-devel = %{version} -Obsoletes: SDL_ttf-devel <= %{version} +Requires: %{name} = %{version} +Requires: libSDL2-devel +Requires: libSDL2_ttf-2_0-0 = %{version} +Provides: SDL2_ttf-devel = %{version} -%description -n libSDL_ttf-devel +%description -n libSDL2_ttf-devel This is a sample library that allows you to use TrueType fonts in your SDL applications. @@ -68,22 +64,22 @@ SDL applications. make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install +%make_install rm -f %{buildroot}%{_libdir}/*.la -%post -n libSDL_ttf-2_0-0 -p /sbin/ldconfig +%post -n libSDL2_ttf-2_0-0 -p /sbin/ldconfig -%postun -n libSDL_ttf-2_0-0 -p /sbin/ldconfig +%postun -n libSDL2_ttf-2_0-0 -p /sbin/ldconfig -%files -n libSDL_ttf-2_0-0 +%files -n libSDL2_ttf-2_0-0 %defattr(-,root,root) -%doc CHANGES COPYING README +%doc CHANGES.txt COPYING.txt README.txt %{_libdir}/lib*.so.* -%files -n libSDL_ttf-devel +%files -n libSDL2_ttf-devel %defattr(-,root,root) -%{_includedir}/SDL/SDL_ttf.h +%{_includedir}/SDL2/SDL_ttf.h %{_libdir}/lib*.so -%{_libdir}/pkgconfig/SDL_ttf.pc +%{_libdir}/pkgconfig/SDL2_ttf.pc %changelog diff --git a/SDL_ttf-2.0.11-repack.tar.bz2 b/SDL_ttf-2.0.11-repack.tar.bz2 deleted file mode 100644 index ef3ad94..0000000 --- a/SDL_ttf-2.0.11-repack.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61a43fa79f1432e7efabd473a8e0d14c092a77847328a312efbb0c611ed2fd74 -size 2241008 diff --git a/SDL_ttf.changes b/SDL_ttf.changes deleted file mode 100644 index 41e19d8..0000000 --- a/SDL_ttf.changes +++ /dev/null @@ -1,166 +0,0 @@ -------------------------------------------------------------------- -Tue Aug 13 11:31:29 UTC 2013 - prusnak@opensuse.org - -- updated to 2.0.11 - * SDL_ttf is now under the zlib license - * Improved font glyph caching for non-latin languages - * Added API to get kerning info: TTF_GetFontKerningSize() - * Added Android.mk to build on the Android platform -- updated to 2.0.10 - * Find the Unicode or symbol character map if it's available in the font - * Set the appropriate font styles for bold and italic fonts - * Added font style TTF_STYLE_STRIKETHROUGH - * Fixed size calculations taking outline and underline into account - * Added API for font outlining: TTF_GetFontOutline()/TTF_SetFontOutline() - * Added API to disable kerning: TTF_GetFontKerning()/TTF_SetFontKerning() - * Fixed height calculation for fonts that extend below the font height - * Added access to font hinting: TTF_GetFontHinting()/TTF_SetFontHinting() - * Added TTF_GlyphIsProvided() to check whether a glyph is in a given font - -------------------------------------------------------------------- -Thu Jan 3 02:06:00 UTC 2013 - crrodriguez@opensuse.org - -- Do not buildRequire metapackage xorg-x11-devel it is not - needed and adds significant bloat - -------------------------------------------------------------------- -Tue May 8 14:08:05 UTC 2012 - cfarrell@suse.com - -- license update: LGPL-2.1+ - SPDX syntax - dropping Freetype license from spec file as no files found - under that license. - -------------------------------------------------------------------- -Sat Sep 17 10:24:24 UTC 2011 - jengelh@medozas.de - -- Remove redundant tags/sections from specfile - -------------------------------------------------------------------- -Fri Sep 16 18:24:34 UTC 2011 - jengelh@medozas.de - -- Add libSDL_ttf-devel to baselibs -- Remove redundant tags - -------------------------------------------------------------------- -Sat Jul 2 14:54:16 UTC 2011 - jengelh@medozas.de - -- Use %_smp_mflags for parallel building - -------------------------------------------------------------------- -Wed Jan 27 02:45:00 CET 2010 - jengelh@medozas.de - -- package baselibs.conf - -------------------------------------------------------------------- -Wed Oct 7 14:52:42 CEST 2009 - prusnak@suse.cz - -- fix provides and obsoletes [bnc#544957] - -------------------------------------------------------------------- -Fri May 29 17:40:32 CEST 2009 - prusnak@suse.cz - -- removed VisualC.zip, Watcom-OS2.zip, Xcode.tar.gz from upstream - tarball [bnc#508180] - -------------------------------------------------------------------- -Wed May 20 17:17:46 CEST 2009 - prusnak@suse.cz - -- follow Shared Library Policy - -------------------------------------------------------------------- -Sun Jul 13 22:44:32 CEST 2008 - crrodriguez@suse.de - -- remove unusable static libraries -- SDL_ttf-devel requires SDL-devel - -------------------------------------------------------------------- -Sun Dec 16 21:40:47 CET 2007 - sndirsch@suse.de - -- fixed BuildRequires for SUSE < 10.2 - -------------------------------------------------------------------- -Wed Jul 25 18:19:28 CEST 2007 - prusnak@suse.cz - -- updated to 2.0.9 - * fixed rendering of fonts with 2 bit and 4 bit embedded graymaps - * fixed bug in solid bold glyph rendering - * fixed crash when passing NULL to TTF_CloseFont() - -------------------------------------------------------------------- -Sun Jul 22 19:00:07 CEST 2007 - aj@suse.de - -- Cleanup BuildRequires. - -------------------------------------------------------------------- -Thu Jun 7 16:27:46 CEST 2007 - prusnak@suse.cz - -- split devel subpackage - -------------------------------------------------------------------- -Fri Mar 2 12:40:30 CET 2007 - prusnak@suse.cz - -- cleaned spec file - -------------------------------------------------------------------- -Fri Jun 23 12:27:00 CEST 2006 - nadvornik@suse.cz - -- do not use freetype2 internals - -------------------------------------------------------------------- -Fri Jan 27 10:35:12 CET 2006 - nadvornik@suse.cz - -- fixed BuildRequires - -------------------------------------------------------------------- -Wed Jan 25 14:32:33 CET 2006 - nadvornik@suse.cz - -- fixed crash on nonexistant font file [#145040] - -------------------------------------------------------------------- -Sat Jan 10 18:48:28 CET 2004 - adrian@suse.de - -- add %defattr and %run_ldconfig - -------------------------------------------------------------------- -Tue Jan 06 12:57:04 CET 2004 - nadvornik@suse.cz - -- fixed to compile with new freetype - -------------------------------------------------------------------- -Fri Jul 25 12:42:19 CEST 2003 - nadvornik@suse.cz - -- updated to 2.0.6 -- added buildroot - -------------------------------------------------------------------- -Mon Dec 16 17:49:53 CET 2002 - ro@suse.de - -- fix build with automake, use "AUTOMAKE_OPTIONS = foreign" - -------------------------------------------------------------------- -Mon Sep 2 14:43:55 CEST 2002 - uli@suse.de - -- use %_libdir (bug #18726) - -------------------------------------------------------------------- -Thu Jun 13 14:31:45 CEST 2002 - uli@suse.de - -- update -> 2.0.5 (bugfixes, support for selecting individual font - faces, support for foreground/background color in showfont) - -------------------------------------------------------------------- -Wed Jun 12 00:29:34 CEST 2002 - ro@suse.de - -- run autoreconf (fixes build on ppc64) - -------------------------------------------------------------------- -Tue Jan 22 18:23:53 CET 2002 - ro@suse.de - -- changed neededforbuild to - -------------------------------------------------------------------- -Tue Aug 7 17:45:44 CEST 2001 - uli@suse.de - -- initial package - - diff --git a/baselibs.conf b/baselibs.conf index 0da24af..da9ef23 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,6 @@ -libSDL_ttf-2_0-0 - provides "SDL_ttf- = " - obsoletes "SDL_ttf- <= " -libSDL_ttf-devel - requires -libSDL_ttf- - requires "libSDL_ttf-2_0-0- = " +libSDL2_ttf-2_0-0 + provides "SDL2_ttf- = " + obsoletes "SDL2_ttf- <= " +libSDL2_ttf-devel + requires -libSDL2_ttf- + requires "libSDL2_ttf-2_0-0- = "