From 9db49b9ed8ae24bfdc53d3022125bedcb2545e8a868df90e0afca8600407e8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 12 Nov 2024 12:05:33 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main SDL2_ttf revision d0abc03608c6f11bd1df5dd82ee1200c --- .gitattributes | 23 ++++++++ SDL2_ttf-2.22.0.tar.gz | 3 ++ SDL2_ttf-2.22.0.tar.gz.sig | Bin 0 -> 95 bytes SDL2_ttf.changes | 104 +++++++++++++++++++++++++++++++++++++ SDL2_ttf.keyring | 25 +++++++++ SDL2_ttf.spec | 88 +++++++++++++++++++++++++++++++ 6 files changed, 243 insertions(+) create mode 100644 .gitattributes create mode 100644 SDL2_ttf-2.22.0.tar.gz create mode 100644 SDL2_ttf-2.22.0.tar.gz.sig create mode 100644 SDL2_ttf.changes create mode 100644 SDL2_ttf.keyring create mode 100644 SDL2_ttf.spec 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/SDL2_ttf-2.22.0.tar.gz b/SDL2_ttf-2.22.0.tar.gz new file mode 100644 index 0000000..e628923 --- /dev/null +++ b/SDL2_ttf-2.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d48cbd1ce475b9e178206bf3b72d56b66d84d44f64ac05803328396234d67723 +size 14314901 diff --git a/SDL2_ttf-2.22.0.tar.gz.sig b/SDL2_ttf-2.22.0.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..47bb8acdf2947f05ba0efa9e034e285fde90409fdb69c1174290c4512b28bfd6 GIT binary patch literal 95 zcmeB(WnmCxVvrS6WD(U!j%^5DT3>$gL7TzS$>qz-te>$mrLHv!W8mTxfQh_$&M?1P vT}xQOJK*`rsl0}7(>}^|eJHxfuwY8 + +- Update to relesae 2.22 + * Unspecified bug fixes + +------------------------------------------------------------------- +Tue Feb 7 10:01:06 UTC 2023 - Jan Engelhardt + +- Update to release 2.20.2 + * Build system changes only + +------------------------------------------------------------------- +Mon Sep 5 07:44:43 UTC 2022 - Dominique Leuenberger + +- Add back Provides: SDL2_ttf = %version to library package: the + python bindings somewhat rely on the name to find the right + library. + +------------------------------------------------------------------- +Sat Aug 20 08:13:36 UTC 2022 - Jan Engelhardt + +- Update to release 2.20.1 + * Build updates for non-Linux platforms +- Rename devel package to just %name-devel, which is what most + our packages do. + +------------------------------------------------------------------- +Thu Jul 7 13:41:57 UTC 2022 - Jan Engelhardt + +- Update to release 2.20.0 + * Added TTF_GetFontWrappedAlign() and TTF_SetFontWrappedAlign() + to set alignment on wrapped text + * Added functions to render using FreeType LCD algorithm: + TTF_RenderText_LCD(), TTF_RenderUTF8_LCD(), + TTF_RenderUNICODE_LCD(), TTF_RenderText_LCD_Wrapped(), + TTF_RenderUTF8_LCD_Wrapped(), + TTF_RenderUNICODE_LCD_Wrapped(), TTF_RenderGlyph_LCD(), + TTF_RenderGlyph32_LCD(). + * Added TTF_SetFontDirection() and TTF_SetFontScriptName() for + additional control over fonts using HarfBuzz + * Fix memory corruption loading malformed TTF files + [CVE-2022-27470] +- Drop baselibs.conf (no SDL2_ttf-dependent Tumbleweed packages + themselves have baselibs). + +------------------------------------------------------------------- +Wed Jan 12 01:27:48 UTC 2022 - Jan Engelhardt + +- Update to release 2.0.18 + * Added TTF_GetFreeTypeVersion() and TTF_GetHarfBuzzVersion() + * Added support for Signed Distance Field rendering with + TTF_SetFontSDF() and TTF_GetFontSDF() + * Added optional DPI-scaling of fonts, with new functions. + * Added 32-bit character support. + * Added functions to set direction and script when using Harfbuzz. + * Added extended API for text measurement. + * Added TTF_SetFontSize() to set font size dynamically. + * Added 'Shaded' and 'Solid' text wrapped functions. + * Added TTF_HINTING_LIGHT_SUBPIXEL for better results at small + text sizes at a performance cost + +------------------------------------------------------------------- +Fri Aug 23 11:27:38 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 2.0.15 + * Text rendering functions now use the alpha component of the + text colors. + * Added support for characters greater than 0xFFFF (e.g. emoji) + in the UTF-8 APIs. + +------------------------------------------------------------------- +Sat Oct 22 15:29:43 UTC 2016 - aloisio@gmx.com + +- Update to version 2.0.14 + * Deprecated TTF_GetFontKerningSize() which takes font glyph + indices and added TTF_GetFontKerningSizeGlyphs() which + takes characters + +------------------------------------------------------------------- +Sun Jan 10 17:23:29 UTC 2016 - mailaender@opensuse.org + +- Update to version 2.0.13 + * Fixed bug rendering text starting with a glyph with negative starting offset + * Fixed regression loading non-scalable fonts + * TTF_GetFontKerningSize() gets kerning between two characters, not two glyph indices + +------------------------------------------------------------------- +Thu Jan 8 09:58:33 UTC 2015 - jengelh@inai.de + +- Improve package summary and description. Drop --with-pic which + is enabled implicitly anyway, remove redundant Requires. + +------------------------------------------------------------------- +Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de + +- Some metadata spruce-up: add current URLs, softer wildcarding + in the files list, more robust make install call + +------------------------------------------------------------------- +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/SDL2_ttf.keyring b/SDL2_ttf.keyring new file mode 100644 index 0000000..3e900ef --- /dev/null +++ b/SDL2_ttf.keyring @@ -0,0 +1,25 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.0.4 (GNU/Linux) +Comment: For info see http://www.gnupg.org + +mQGiBDpWOb0RBADQwd3d9mzt6KzqlsgXf9mikBuMbpKzYs1SBKYpdzUs9sRY0CnH +vCQTrL5sI57yKLnqEl6SbIiE75ZwrSWwvUDFFTh35Jew5nPZwv64en2kw2y4qrnJ +kBZCHDSU4KgfUZtoJ25Tmeru5MLNbXxCOoMszO5L5OchwMrGMtmFLRA/bwCgy5Th +d1/vJo+bej9tbgv++SJ05o0D/3MPK7EBoxWkQ0I+ScqOsvSMRQXWc/hXy4lyIp8e +xJByBApkv0LiiT3KlPpq/K2gTlDlCZ/JTt6Rv8Ug0g47R3a0aoz9kfc15UjHdiap +UOfF9MWmmbw59Lyx6+y2e0/C5xWzNOR1G4G5y4RZL/GXrp67xz/0fEhI85R+eASq +AEfSBAC5ZxwnBwyl+h+PXeJYKrPQjSUlgtSAkKp7PNBywwlue1LcSb7j4cc+cmgH +QMVuM883LPE59btNzFTAZjlzzIMiaXf5h9EkDARTGQ1wFiO3V5vIbVLh4kAoNfpT +egy7bYn3UrlbKg3V2DbCdEXm1zQufZzK7T0yenA5Ps8xXX7mNrQhU2FtIExhbnRp +bmdhIDxzbG91a2VuQGxpYnNkbC5vcmc+iFcEExECABcFAjpWOb0FCwcKAwQDFQMC +AxYCAQIXgAAKCRAwpZN3p3Y75t9RAJ48WI+nOPes0WK7t381Ij4JfSYxWQCgjpMa +Dg3/ah23HZhYtTKtHUzD9zi5AQ0EOlY5wxAEAPvjB0B5RNAj8hBF/Lq78w5rJ1/f +5RqWXmdfxApuEE/9OEFXUSUXms9f/IWvySdyf48Pk4t2h8b8i7F0f3R+tcCp6m0P +t1BSNHYumfmtonTy5FHqpwBVlEi7I0s5mD3kxO+k8PQbATHH5smFnoz2UTc+MzQj +UdtTzXUkUgqvf9zTAAMGA/9Y/h6rhi3YYXeI6SmbXqcmzsQKzaWVhLew67szejnY +sKIJ1ja4MefYlthCXgmIBriNftxIGtBI0Pcmzwpn0eknRNK6NgpmESbGKCWh59Je +iAK5hdBPe47LSFVct5zSO9vQhRDyLzhzPPtB3XeoKTUkLWxBSLbeZVwcHPIK/wLa +l4hGBBgRAgAGBQI6VjnDAAoJEDClk3endjvmxmUAn3Ne6Z3UULpie8RJP15RBt6K +2MWFAJ9hK/Ls/FeBJ9d50qxmYdZ2RrTXNg== +=toqC +-----END PGP PUBLIC KEY BLOCK----- diff --git a/SDL2_ttf.spec b/SDL2_ttf.spec new file mode 100644 index 0000000..86c77f2 --- /dev/null +++ b/SDL2_ttf.spec @@ -0,0 +1,88 @@ +# +# spec file for package SDL2_ttf +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: SDL2_ttf +%define lname libSDL2_ttf-2_0-0 +Version: 2.22.0 +Release: 0 +Summary: Simple DirectMedia Layer 2 Truetype library +License: Zlib +Group: Development/Libraries/X11 +URL: https://github.com/libsdl-org/SDL_ttf + +#Git-Clone: https://github.com/libsdl-org/SDL_ttf +Source: https://github.com/libsdl-org/SDL_ttf/releases/download/release-%version/SDL2_ttf-%version.tar.gz +Source2: https://github.com/libsdl-org/SDL_ttf/releases/download/release-%version/SDL2_ttf-%version.tar.gz.sig +Source8: %name.keyring +BuildRequires: SDL2-devel >= 2.24 +BuildRequires: c++_compiler +BuildRequires: dos2unix +BuildRequires: pkg-config +BuildRequires: pkgconfig(freetype2) + +%description +This is a sample library that allows you to use TrueType fonts in your +SDL applications. + +%package -n %lname +Summary: Simple DirectMedia Layer 2 Truetype library +Group: System/Libraries +Provides: SDL2_ttf = %version + +%description -n %lname +This is a sample library that allows you to use TrueType fonts in your +SDL applications. + +%package devel +Summary: Header files for the Simple DirectMedia Layer 2 Truetype library +Group: Development/Libraries/X11 +Requires: %lname = %version +Obsoletes: libSDL2_ttf-devel < %version-%release +Provides: libSDL2_ttf-devel = %version-%release + +%description devel +This is a sample library that allows you to use TrueType fonts in your +SDL applications. + +%prep +%autosetup -p1 +dos2unix *.txt + +%build +%configure --disable-static +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%license LICENSE.txt +%_libdir/libSDL2_ttf-2*.so.* + +%files devel +%doc CHANGES.txt README.txt +%_includedir/SDL2/ +%_libdir/libSDL2_ttf.so +%_libdir/pkgconfig/SDL2_ttf.pc +%_libdir/cmake/ + +%changelog