Hello community,
here is the log from the commit of package freetype2.13173 for
openSUSE:Leap:15.2:Update checked in at 2020-07-17 18:29:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/freetype2.13173 (Old)
and /work/SRC/openSUSE:Leap:15.2:Update/.freetype2.13173.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "freetype2.13173"
Fri Jul 17 18:29:09 2020 rev:1 rq:819147 version:2.10.1
Changes:
--------
New Changes file:
--- /dev/null 2020-07-16 02:54:20.700682797 +0200
+++
/work/SRC/openSUSE:Leap:15.2:Update/.freetype2.13173.new.3592/freetype2.changes
2020-07-17 18:29:11.316206577 +0200
@@ -0,0 +1,1915 @@
+-------------------------------------------------------------------
+Wed Oct 9 17:06:32 UTC 2019 - Cristian Rodríguez <[email protected]>
+
+- Use the compiler default C std, since 2012 gcc defaults
+ have changed, we now only need to get rid of ANSIFLAGS, override
+ that variable instead.
+
+-------------------------------------------------------------------
+Tue Jul 2 07:19:53 UTC 2019 - Ismail Dönmez <[email protected]>
+
+- Update to version 2.10.1
+ * The bytecode hinting of OpenType variation fonts was flawed, since
+ the data in the `CVAR' table wasn't correctly applied.
+ * Auto-hinter support for Mongolian.
+ * The handling of the default character in PCF fonts as introduced
+ in version 2.10.0 was partially broken, causing premature abortion
+ of charmap iteration for many fonts.
+ * If `FT_Set_Named_Instance' was called with the same arguments
+ twice in a row, the function returned an incorrect error code the
+ second time.
+ * Direct rendering using FT_RASTER_FLAG_DIRECT crashed (bug
+ introduced in version 2.10.0).
+ * Increased precision while computing OpenType font variation
+ instances.
+ * The flattening algorithm of cubic Bezier curves was slightly
+ changed to make it faster. This can cause very subtle rendering
+ changes, which aren't noticeable by the eye, however.
+ * The auto-hinter now disables hinting if there are blue zones
+ defined for a `style' (i.e., a certain combination of a script and
+ its related typographic features) but the font doesn't contain any
+ characters needed to set up at least one blue zone.
+- Add tarball signatures and freetype2.keyring
+
+-------------------------------------------------------------------
+Mon Jun 24 07:09:55 UTC 2019 - Ismail Dönmez <[email protected]>
+
+- Update to version 2.10.0
+ * A bunch of new functions has been added to access and process
+ COLR/CPAL data of OpenType fonts with color-layered glyphs.
+ * As a GSoC 2018 project, Nikhil Ramakrishnan completely
+ overhauled and modernized the API reference.
+ * The logic for computing the global ascender, descender, and
+ height of OpenType fonts has been slightly adjusted for
+ consistency.
+ * `TT_Set_MM_Blend' could fail if called repeatedly with the same
+ arguments.
+ * The precision of handling deltas in Variation Fonts has been
+ increased.The problem did only show up with multidimensional
+ designspaces.
+ * New function `FT_Library_SetLcdGeometry' to set up the geometry
+ of LCD subpixels.
+ * FreeType now uses the `defaultChar' property of PCF fonts to set
+ the glyph for the undefined character at glyph index 0 (as
+ FreeType already does for all other supported font formats). As
+ a consequence, the order of glyphs of a PCF font if accessed
+ with FreeType can be different now compared to previous
+ versions.
+ This change doesn't affect PCF font access with cmaps.
+ * `FT_Select_Charmap' has been changed to allow parameter value
+ `FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT
+ formats to access built-in cmaps that don't have a predefined
+ `FT_Encoding' value.
+ * A previously reserved field in the `FT_GlyphSlotRec' structure
+ now holds the glyph index.
+ * The usual round of fuzzer bug fixes to better reject malformed
+ fonts.
+ * `FT_Outline_New_Internal' and `FT_Outline_Done_Internal' have
+ been removed.These two functions were public by oversight only
+ and were never documented.
+ * A new function `FT_Error_String' returns descriptions of error
+ codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is
+ defined.
+ * `FT_Set_MM_WeightVector' and `FT_Get_MM_WeightVector' are new
+ functions limited to Adobe MultiMaster fonts to directly set and
+ get the weight vector.
+
+-------------------------------------------------------------------
+Sat Oct 27 11:54:18 UTC 2018 - Ismail Dönmez <[email protected]>
+
+- Remove old ppc64 parts in spec file
+- Refresh patches:
+ + bugzilla-308961-cmex-workaround.patch
+ + don-t-mark-libpng-as-required-library.patch
+ + enable-long-family-names-by-default.patch
+- Enable subpixel rendering with infinality config:
+ + enable-subpixel-rendering.patch
+ + enable-infinality-subpixel-hinting.patch
+
+-------------------------------------------------------------------
+Mon May 14 10:06:56 UTC 2018 - [email protected]
+
+- Re-enable freetype-config, there is just too many fallouts.
+
+-------------------------------------------------------------------
+Wed May 2 10:54:32 UTC 2018 - [email protected]
+
+- Update to version 2.9.1
+ * Type 1 fonts containing flex features were not rendered
+ correctly (bug introduced in version 2.9).
+ * CVE-2018-6942: Older FreeType versions can crash with certain
+ malformed variation fonts.
+ * Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.
+ * Emboldening of bitmaps didn't work correctly sometimes, showing
+ various artifacts (bug introduced in version 2.8.1).
+ * The auto-hinter script ranges have been updated for Unicode 11.
+ No support for new scripts have been added, however, with the
+ exception of Georgian Mtavruli.
+- freetype-config is now deprecated by upstream and not enabled
+ by default.
+- Drop upstreamed patches:
+ * bnc1079600.patch
+ * psaux-flex.patch
+ * 0001-src-truetype-ttinterp.c-Ins_GETVARIATION-Avoid-NULL-.patch
+ * 0001-truetype-Better-protection-against-invalid-VF-data.patch
+
+-------------------------------------------------------------------
+Thu Mar 8 16:47:21 UTC 2018 - [email protected]
+
+- Add bnc1079600.patch: Fix several integer overflow issues in
+ truetype/ttinterp.c (bsc#1079600)
+
+-------------------------------------------------------------------
+Tue Mar 6 10:47:29 UTC 2018 - [email protected]
+
+- Refresh spec-file via spec-cleaner.
+- Add shell script freetype2.sh in separate package
+ freetype2-profile-tti35 in order to be able to set TrueType
+ interpreter version 35 (boo#1084085).
+
+-------------------------------------------------------------------
+Fri Feb 9 11:11:36 UTC 2018 - [email protected]
+
+- Added patch:
+ * enable-long-family-names-by-default.patch
+ + Define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES to obtain 2.7.1
+ behaviour
+
+-------------------------------------------------------------------
+Wed Feb 7 09:17:10 UTC 2018 - [email protected]
+
+- Added patches:
+ * 0001-src-truetype-ttinterp.c-Ins_GETVARIATION-Avoid-NULL-.patch
+ + Upstream fix for bsc#1079603: Avoid NULL reference in
+ src/truetype/ttinterp.c
+ * 0001-truetype-Better-protection-against-invalid-VF-data.patch
+ + Upstream fix for bsc#1079601: Protection against invalid VF
+ data
+
+-------------------------------------------------------------------
+Wed Jan 10 10:32:25 UTC 2018 - [email protected]
+
+- Add psaux-flex.patch to fix a regression in Type1 rendering
+
+-------------------------------------------------------------------
+Tue Jan 9 11:34:51 UTC 2018 - [email protected]
+
+- Update to version 2.9
+ * Advance width values of variation fonts were often wrong.
+ * More fixes for variation font support; you should update to
+ this version if you want to support them.
+ * As a GSoC project, Ewald Hew extended the new (Adobe) CFF
+ engine to handle Type 1 fonts also, thus greatly improving
+ the rendering of this format. This is the new default.
+ * A new function, `FT_Set_Named_Instance', can be used to set
+ or change the current named instance.
+ * Starting with this FreeType version, resetting variation
+ coordinates will return to the currently selected named
+ instance. Previously, FreeType returned to the base font
+ (i.e., no instance set).
+ * Some fuzzer fixes to better reject malformed fonts.
+
+-------------------------------------------------------------------
+Mon Sep 18 09:15:41 UTC 2017 - [email protected]
+
+- Update to version 2.8.1
+ * B/W hinting of TrueType fonts didn't work properly if
+ interpreter version 38 or 40 was selected.
+ * Some severe problems within the handling of TrueType Variation
+ Fonts were found and fixed.
+ * Function `FT_Set_Var_Design_Coordinates' didn't correctly handle
+ the case with less input coordinates than axes.
+ * By default, FreeType now offers high quality LCD-optimized
+ output without resorting to ClearType techniques of resolution
+ tripling and filtering. In this method, called Harmony, each
+ color channel is generated separately after shifting the glyph
+ outline, capitalizing on the fact that the color grids on LCD
+ panels are shifted by a third of a pixel. This output is
+ indistinguishable from ClearType with a light 3-tap filter.
+ * Using the new function `FT_Get_Var_Axis_Flags', an application
+ can access the `flags' field of a variation axis (introduced in
+ OpenType version 1.8.2)
+ * FreeType now synthesizes a missing Unicode cmap for (older)
+ TrueType fonts also if glyph names are available.
+ * The warping option has moved from `light' to `normal' hinting
+ where it replaces the original hinting algorithm. The `light'
+ mode is now always void of any hinting in x-direction.
+
++++ 1718 more lines (skipped)
++++ between /dev/null
++++ and
/work/SRC/openSUSE:Leap:15.2:Update/.freetype2.13173.new.3592/freetype2.changes
New Changes file:
--- /dev/null 2020-07-16 02:54:20.700682797 +0200
+++
/work/SRC/openSUSE:Leap:15.2:Update/.freetype2.13173.new.3592/ft2demos.changes
2020-07-17 18:29:11.476206737 +0200
@@ -0,0 +1,1201 @@
+-------------------------------------------------------------------
+Tue Jul 2 07:21:03 UTC 2019 - Ismail Dönmez <[email protected]>
+
+- Update to version 2.10.1
+ * The `ftmulti' demo program now supports multiple hidden axes with
+ the same name tag.
+ * `ftview', `ftstring', and `ftgrid' got a `-k' command line option
+ to emulate a sequence of keystrokes at start-up.
+ * `ftview', `ftstring', and `ftgrid' now support screen dumping to a
+ PNG file.
+ * The bytecode debugger, `ttdebug', now supports variation TrueType
+ fonts; a variation font instance can be selected with the new `-d'
+ command line option.
+- Add tarball signatures and freetype2.keyring
+
+-------------------------------------------------------------------
+Mon Jun 24 07:15:45 UTC 2019 - Ismail Dönmez <[email protected]>
+
+- Update to version 2.10.0
+ * The `ftdump' demo program has new options `-c' and `-C' to
+ display charmaps in compact and detailed format, respectively.
+ Option `-V' has been removed.
+ * The `ftview', `ftstring', and `ftgrid' demo programs use a new
+ command line option `-d' to specify the program window's width,
+ height, and color depth.
+ * The `ftview' demo program now displays red boxes for zero-width
+ glyphs.
+ * `ftglyph' has limited support to display fonts with
+ color-layered glyphs.This will be improved later on.
+ * `ftgrid' can now display bitmap fonts also.
+ * The `ttdebug' demo program has a new option `-f' to select a
+ member of a TrueType collection (TTC).
+ * Other various improvements to the demo programs.
+
+-------------------------------------------------------------------
+Thu Feb 7 16:59:15 UTC 2019 - Marguerite Su <[email protected]>
+
+- Remove "Supplements: fonts-config" to avoid accidentally pulling
+ in Qt dependencies on some non-Qt based desktops.(boo#1091109)
+ fonts-config is fundamental but ft2demos seldom installs by end users.
+ only fonts-config maintainers/debuggers may use ft2demos along to
+ debug some issues.
+
+-------------------------------------------------------------------
+Wed May 2 10:56:39 UTC 2018 - [email protected]
+
+- Update to version 2.9.1
+ * No changelog upstream.
+
+-------------------------------------------------------------------
+Tue Mar 20 10:21:23 UTC 2018 - [email protected]
+
+- insert missing bzip2-devel for build in Leap 42.3
+
+-------------------------------------------------------------------
+Fri Mar 16 20:53:13 UTC 2018 - [email protected]
+
+- Change xorg-x11-devel --> pkgconfig(x11)
+
+-------------------------------------------------------------------
+Tue Jan 9 11:36:27 UTC 2018 - [email protected]
+
+- Update to version 2.9
+ * The `ftbench' demo program has a new test for opening a new
+ face and loading some glyphs.
+ * The `ftbench' demo program has a new option `-j' to specify
+ the last glyph index to be used in the tests.
+ * The `ftgrid' demo program has a new option `-n' to suppress
+ display of named instances of variation fonts.
+ * The `ttdebug' demo program can now show a stack trace (key `K')
+ and switch between hexadecimal and decimal display of integers
+ (key `I').
+
+-------------------------------------------------------------------
+Mon Sep 18 09:17:19 UTC 2017 - [email protected]
+
+- Update to version 2.8.1
+ * The ftgrid demo program can now toggle the display of grid lines
+ with the G key.
+ * The ftgrid demo program can toggle a different set of colors
+ (suitable to color-blind people) with the C key.
+ * The ftgrid demo program now supports the -e command line option
+ to select a cmap.
+ * The ftdump demo program has a new command line option -t to
+ output the SFNT table list.
+
+-------------------------------------------------------------------
+Mon May 15 10:41:10 UTC 2017 - [email protected]
+
+- A mode to display light auto-hinting with sub-pixel positioning
+ has been added to `ftdiff'.
+
+-------------------------------------------------------------------
+Mon Apr 3 16:08:34 UTC 2017 - [email protected]
+
+- Package the tools separately to avoid unnecessary dependencies
+ on X11 and/or Qt5 (bsc#1031678)
+
+-------------------------------------------------------------------
+Sun Jan 1 12:04:31 UTC 2017 - [email protected]
+
+- Update to version 2.7.1
+ + The `ftmulti' demo program can now switch engines with key `H'.
+ + The `ftstring' demo program can now show some built-in,
+ non-latin sample strings (to be selected with the TAB key).
+ + The `ftview' demo program can now switch between a font's
+ charmaps using the TAB key.
+- Remove ftinspect-library.patch, merged upstream.
+
+-------------------------------------------------------------------
+Tue Sep 20 11:58:32 UTC 2016 - [email protected]
+
+- Also build ftinspect
+
+-------------------------------------------------------------------
+Fri Sep 9 16:14:34 UTC 2016 - [email protected]
+
+- update to version 2.7:
+ + Sync with freetype 2.7
+
+-------------------------------------------------------------------
+Fri Jul 8 08:38:28 UTC 2016 - [email protected]
+
+- Update to version 2.6.4:
+ + Sync with freetype 2.6.4.
+
+-------------------------------------------------------------------
+Mon Mar 28 11:55:28 UTC 2016 - [email protected]
+
+- Update to version 2.6.3
+ * The `ftgamma' demo program has been modernized; the gamma grid
+ display has been moved from `ftview' to this program.
+ * It is now possible to cycle through the available LCD filtering
+ modes.
+
+-------------------------------------------------------------------
+Sun Nov 29 13:36:34 UTC 2015 - [email protected]
+
+- Update to version 2.6.2
+ * The ftstring demo program now supports sub-pixel rendering;
+ use key l to cycle through the LCD modes.
+ * The ftstring demo program now supports colour rendering; use
+ the space key to cycle through various colour combinations.
+ * The graphical demo programs now use a default gamma value of 1.8
+ (instead of 1.2).
+
+-------------------------------------------------------------------
+Fri Oct 23 23:34:06 UTC 2015 - [email protected]
+
+- no longer conflict dtc, flattened device tree tools are named
+ to no longer clash with ft2demos binaries since dtc 1.4
+
+-------------------------------------------------------------------
+Sun Oct 4 22:24:26 UTC 2015 - [email protected]
+
+- Update to version 2.6.1.
+
+-------------------------------------------------------------------
+Thu Jun 11 08:56:22 UTC 2015 - [email protected]
+
+- Update to version 2.6
+ * ftgrid can now display GX and MM fonts.
+ * Anti-aliasing rendering modes can now be selected (with keys
+ F5 and F6).
+ * The display of point numbers can be toggled with key `D'.
+ * ftdump now display information on MM and GX variation axes.
+ * ftmulti can now handle up to six MM or GX axes.
+- Refresh overflow.patch
+
+-------------------------------------------------------------------
+Tue Jun 9 08:18:50 UTC 2015 - [email protected]
+
+- Merge with the version 2.5.5 from openSUSE:Factory
+- Removed patches:
+ * CVE-2014-9656.patch
+ * CVE-2014-9657.patch
+ * CVE-2014-9658.patch
+ * CVE-2014-9659.patch
+ * CVE-2014-9660.patch
+ * CVE-2014-9661.patch
+ * CVE-2014-9662.patch
+ * CVE-2014-9663.patch
+ * CVE-2014-9664.patch
+ * CVE-2014-9665.patch
+ * CVE-2014-9666.patch
+ * CVE-2014-9667.patch
+ * CVE-2014-9668.patch
+ * CVE-2014-9669.patch
+ * CVE-2014-9670.patch
+ * CVE-2014-9671.patch
+ * CVE-2014-9672.patch
+ * CVE-2014-9673.patch
+ * CVE-2014-9674.patch
+ * CVE-2014-9675.patch
+ - Integrated in the 2.5.5 release
+- Modified patches:
+ * don-t-mark-libpng-as-required-library.patch
++++ 1004 more lines (skipped)
++++ between /dev/null
++++ and
/work/SRC/openSUSE:Leap:15.2:Update/.freetype2.13173.new.3592/ft2demos.changes
New:
----
baselibs.conf
bnc628213_test.otf
bnc629447_sigsegv31.ttf
bnc633938_badbdf.0
bug-641580_CVE-2010-3311.cff
bug-647375_tt2.ttf
bugzilla-308961-cmex-workaround.patch
don-t-mark-libpng-as-required-library.patch
enable-infinality-subpixel-hinting.patch
enable-long-family-names-by-default.patch
enable-subpixel-rendering.patch
freetype-2.10.1.tar.xz
freetype-2.10.1.tar.xz.sig
freetype-doc-2.10.1.tar.xz
freetype-doc-2.10.1.tar.xz.sig
freetype2.changes
freetype2.keyring
freetype2.sh
freetype2.spec
ft2demos-2.10.1.tar.xz
ft2demos-2.10.1.tar.xz.sig
ft2demos.changes
ft2demos.spec
overflow.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ freetype2.spec ++++++
#
# spec file for package freetype2
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define doc_version 2.10.1
Name: freetype2
Version: 2.10.1
Release: 0
Summary: A TrueType Font Library
License: SUSE-Freetype OR GPL-2.0-or-later
Group: System/Libraries
URL: https://www.freetype.org
Source0:
https://downloads.sourceforge.net/project/freetype/freetype2/%{version}/freetype-%{version}.tar.xz
Source1:
https://downloads.sourceforge.net/project/freetype/freetype-docs/%{version}/freetype-doc-%{version}.tar.xz
Source2: %{name}.sh
Source10:
https://downloads.sourceforge.net/project/freetype/freetype2/%{version}/freetype-%{version}.tar.xz.sig
Source11:
https://downloads.sourceforge.net/project/freetype/freetype-docs/%{version}/freetype-doc-%{version}.tar.xz.sig
Source12: freetype2.keyring
Source1000: baselibs.conf
Patch0: bugzilla-308961-cmex-workaround.patch
# PATCH-FIX-OPENSUSE don-t-mark-libpng-as-required-library.patch -- it is
private in .pc
Patch1: don-t-mark-libpng-as-required-library.patch
Patch2: enable-long-family-names-by-default.patch
Patch3: enable-subpixel-rendering.patch
Patch4: enable-infinality-subpixel-hinting.patch
BuildRequires: gawk
BuildRequires: libbz2-devel
BuildRequires: libpng-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%description
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.
%package -n libfreetype6
Summary: A TrueType Font Library
Group: System/Libraries
Obsoletes: freetype2 < %{version}
Provides: freetype2 = %{version}
%description -n libfreetype6
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.
%package profile-tti35
Summary: Set TrueType interpreter to version 35
Group: System/Shells
Requires: bash
Requires: freetype2
BuildArch: noarch
%description profile-tti35
System environment for set TrueType interpreter to version 35.
In release 2.6.4, a new hinting mode for TrueType fonts was added,
which enabled by default to activate sub-pixel hinting for TrueType.
This broke the work of full hinting. This optional package with a bash profile
that will switch the TrueType Interpreter to the old version 35.
%package devel
Summary: Development environment for the freetype2 TrueType font library
Group: Development/Libraries/C and C++
Requires: libfreetype6 = %{version}
Requires: zlib-devel
# there is no freetype-devel on suse:
Provides: freetype-devel
# Static library provides:
Provides: libfreetype6-devel-static
%description devel
This package contains all necessary include files, libraries and
documentation needed to develop applications that require the freetype2
TrueType font library.
It also contains a small tutorial for using that library.
%prep
%setup -q -n freetype-%{version} -a 1
%autopatch -p1
%build
export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
%configure \
--with-bzip2 \
--with-png \
--with-zlib \
--enable-freetype-config \
--disable-static
make %{?_smp_mflags} ANSIFLAGS=
%install
%make_install
install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
# remove documentation that does not belong in an rpm
rm docs/INSTALL*
rm %{buildroot}%{_libdir}/libfreetype.la
%post -n libfreetype6 -p /sbin/ldconfig
%postun -n libfreetype6 -p /sbin/ldconfig
%files -n libfreetype6
%{_libdir}/libfreetype.so.*
%doc ChangeLog README
%doc docs/{CHANGES,CUSTOMIZE,DEBUG,MAKEPP,PROBLEMS,TODO,*.txt}
%files profile-tti35
%config %{_sysconfdir}/profile.d/%{name}.sh
%files devel
%doc docs/reference/*
%{_bindir}/freetype-config
%{_includedir}/*
%{_libdir}/libfreetype.so
%{_libdir}/pkgconfig/freetype2.pc
%{_mandir}/man1/freetype-config.1%{?ext_man}
%{_datadir}/aclocal
%changelog
++++++ ft2demos.spec ++++++
#
# spec file for package ft2demos
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define freetype_version 2.10.1
Name: ft2demos
Version: 2.10.1
Release: 0
Summary: Freetype2 Utilities and Demo Programs
License: GPL-2.0-or-later
Group: Productivity/Publishing/Other
Url: https://www.freetype.org
Source0:
https://downloads.sourceforge.net/project/freetype/freetype2/%{version}/freetype-%{version}.tar.xz
Source1:
https://downloads.sourceforge.net/project/freetype/freetype-demos/%{version}/ft2demos-%{version}.tar.xz
Source10:
https://downloads.sourceforge.net/project/freetype/freetype2/%{version}/freetype-%{version}.tar.xz.sig
Source11:
https://downloads.sourceforge.net/project/freetype/freetype-demos/%{version}/ft2demos-%{version}.tar.xz.sig
Source12: freetype2.keyring
Source1000: bnc628213_test.otf
Source1004: bnc629447_sigsegv31.ttf
Source1013: bnc633938_badbdf.0
Source1015: bug-641580_CVE-2010-3311.cff
Source1016: bug-647375_tt2.ttf
# silence our clamav check
NoSource: 1000
# PATCH-FIX-UPSTREAM overflow.patch -- I: Statement is overflowing a buffer
Patch201: overflow.patch
# PATCH-FIX-OPENSUSE don-t-mark-libpng-as-required-library.patch -- it is
private in .pc
Patch202: don-t-mark-libpng-as-required-library.patch
Patch308961: bugzilla-308961-cmex-workaround.patch
BuildRequires: libpng-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
Requires: ftbench = %{version}-%{release}
Requires: ftdiff = %{version}-%{release}
Requires: ftdump = %{version}-%{release}
Requires: ftgamma = %{version}-%{release}
Requires: ftgrid = %{version}-%{release}
Requires: ftinspect = %{version}-%{release}
Requires: ftlint = %{version}-%{release}
Requires: ftmulti = %{version}-%{release}
Requires: ftstring = %{version}-%{release}
Requires: ftvalid = %{version}-%{release}
Requires: ftview = %{version}-%{release}
Conflicts: dtc < 1.4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Freetype2 utilities and demo programs.
%package -n ftbench
Summary: Run FreeType benchmarks
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftbench
Run FreeType benchmarks
This tool is part of the FreeType project
%package -n ftdiff
Summary: Compare font hinting modes
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftdiff
Compare font hinting modes
This tool is part of the FreeType project
%package -n ftdump
Summary: Simple font dumper
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftdump
Simple font dumper
This tool is part of the FreeType project
%package -n ftgamma
Summary: Screen gamma calibration helper
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftgamma
Screen gamma calibration helper
This tool is part of the FreeType project
%package -n ftgrid
Summary: Simple glyph grid viewer
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftgrid
Simple glyph grid viewer
This tool is part of the FreeType project
%package -n ftinspect
Summary: Shows how a font gets rendered by FreeType
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftinspect
Shows how a font gets rendered by FreeType, allowing
control over virtually all rendering parameters
This tool is part of the FreeType project
%package -n ftlint
Summary: Simple font tester
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftlint
Simple font tester
This tool is part of the FreeType project
%package -n ftmulti
Summary: Multiple masters font viewer
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftmulti
Multiple masters font viewer
This tool is part of the FreeType project
%package -n ftstring
Summary: String viewer
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftstring
String viewer
This tool is part of the FreeType project
%package -n ftvalid
Summary: Layout table validator
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftvalid
Layout table validator
This tool is part of the FreeType project
%package -n ftview
Summary: Simple glyph viewer
Group: Productivity/Publishing/Other
Conflicts: %{name} < %{version}-%{release}
%description -n ftview
Simple glyph viewer
This tool is part of the FreeType project
%prep
%setup -q -n freetype-%{freetype_version} -b 1
%patch308961 -p 1
pushd ../ft2demos-%{version}
%patch201 -p1
popd
%patch202 -p1
%build
export CFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
%configure \
--enable-static \
--without-bzip2
make %{?_smp_mflags}
pushd ..
ln -s freetype-%{freetype_version} freetype2
cd ft2demos-%{version}
make %{?_smp_mflags}
cd src/ftinspect
qmake-qt5 ftinspect.pro
make
popd
%install
mkdir -p %{buildroot}%{_bindir}
pushd ../ft2demos-%{version}/bin/.libs
install -m 755 ft* %{buildroot}%{_bindir}
install -m 755 ../../src/ftinspect/ftinspect %{buildroot}%{_bindir}
popd
%check
%{buildroot}%{_bindir}/ftbench -c 1 %{SOURCE1000}
%{buildroot}%{_bindir}/ftbench -c 1 %{SOURCE1004} |& grep -v "couldn't load
font resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{SOURCE1013} |& grep -v "couldn't load
font resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{SOURCE1015} |& grep -v "couldn't load
font resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{SOURCE1016}
%files
%defattr(-,root,root)
%doc README
%files -n ftbench
%defattr(-,root,root)
%{_bindir}/ftbench
%files -n ftdiff
%defattr(-,root,root)
%{_bindir}/ftdiff
%files -n ftdump
%defattr(-,root,root)
%{_bindir}/ftdump
%files -n ftgamma
%defattr(-,root,root)
%{_bindir}/ftgamma
%files -n ftgrid
%defattr(-,root,root)
%{_bindir}/ftgrid
%files -n ftinspect
%defattr(-,root,root)
%{_bindir}/ftinspect
%files -n ftlint
%defattr(-,root,root)
%{_bindir}/ftlint
%files -n ftmulti
%defattr(-,root,root)
%{_bindir}/ftmulti
%files -n ftstring
%defattr(-,root,root)
%{_bindir}/ftstring
%files -n ftvalid
%defattr(-,root,root)
%{_bindir}/ftvalid
%files -n ftview
%defattr(-,root,root)
%{_bindir}/ftview
%changelog
++++++ baselibs.conf ++++++
libfreetype6
obsoletes "freetype2-<targettype> < <version>"
provides "freetype2-<targettype> = <version>"
freetype2-devel
requires -freetype2-<targettype>
requires "libfreetype6-<targettype>"
requires "zlib-devel-<targettype>"
++++++ bugzilla-308961-cmex-workaround.patch ++++++
---
src/base/ftobjs.c | 5 +++++
1 file changed, 5 insertions(+)
Index: freetype-2.10.0/src/base/ftobjs.c
===================================================================
--- freetype-2.10.0.orig/src/base/ftobjs.c
+++ freetype-2.10.0/src/base/ftobjs.c
@@ -2584,6 +2584,11 @@
if ( FT_IS_SCALABLE( face ) )
{
+ if ( face->family_name && strncmp(face->family_name, "CMEX", 4 ) == 0){
+ face->underline_position = (FT_Short)( -face->units_per_EM / 10 );
+ face->underline_thickness = (FT_Short)( face->units_per_EM / 30 );
+ }
+
if ( face->height < 0 )
face->height = (FT_Short)-face->height;
++++++ don-t-mark-libpng-as-required-library.patch ++++++
Index: freetype-2.10.0/builds/unix/configure
===================================================================
--- freetype-2.10.0.orig/builds/unix/configure
+++ freetype-2.10.0/builds/unix/configure
@@ -14848,7 +14848,6 @@ fi
# entries in Requires.private are separated by commas;
REQUIRES_PRIVATE="$zlib_reqpriv, \
$bzip2_reqpriv, \
- $libpng_reqpriv, \
$harfbuzz_reqpriv"
# beautify
REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
@@ -14862,7 +14861,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT
LIBS_PRIVATE="$zlib_libspriv \
$bzip2_libspriv \
- $libpng_libspriv \
$harfbuzz_libspriv \
$ft2_extra_libs"
# beautify
@@ -14874,7 +14872,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \
LIBSSTATIC_CONFIG="-lfreetype \
$zlib_libsstaticconf \
$bzip2_libsstaticconf \
- $libpng_libsstaticconf \
$harfbuzz_libsstaticconf \
$ft2_extra_libs"
# remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
Index: freetype-2.10.0/builds/unix/configure.raw
===================================================================
--- freetype-2.10.0.orig/builds/unix/configure.raw
+++ freetype-2.10.0/builds/unix/configure.raw
@@ -991,7 +991,6 @@ fi
# entries in Requires.private are separated by commas;
REQUIRES_PRIVATE="$zlib_reqpriv, \
$bzip2_reqpriv, \
- $libpng_reqpriv, \
$harfbuzz_reqpriv"
# beautify
REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
@@ -1005,7 +1004,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT
LIBS_PRIVATE="$zlib_libspriv \
$bzip2_libspriv \
- $libpng_libspriv \
$harfbuzz_libspriv \
$ft2_extra_libs"
# beautify
@@ -1017,7 +1015,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \
LIBSSTATIC_CONFIG="-lfreetype \
$zlib_libsstaticconf \
$bzip2_libsstaticconf \
- $libpng_libsstaticconf \
$harfbuzz_libsstaticconf \
$ft2_extra_libs"
# remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
++++++ enable-infinality-subpixel-hinting.patch ++++++
Index: freetype-2.10.0/include/freetype/config/ftoption.h
===================================================================
--- freetype-2.10.0.orig/include/freetype/config/ftoption.h
+++ freetype-2.10.0/include/freetype/config/ftoption.h
@@ -658,8 +658,8 @@ FT_BEGIN_HEADER
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
*/
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2
-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */
+/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )
/**************************************************************************
++++++ enable-long-family-names-by-default.patch ++++++
Index: freetype-2.10.0/include/freetype/config/ftoption.h
===================================================================
--- freetype-2.10.0.orig/include/freetype/config/ftoption.h
+++ freetype-2.10.0/include/freetype/config/ftoption.h
@@ -847,7 +847,7 @@ FT_BEGIN_HEADER
* If this option is activated, it can be controlled with the
* `no-long-family-names` property of the 'pcf' driver module.
*/
-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */
+#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
/*************************************************************************/
++++++ enable-subpixel-rendering.patch ++++++
Index: freetype-2.10.0/include/freetype/config/ftoption.h
===================================================================
--- freetype-2.10.0.orig/include/freetype/config/ftoption.h
+++ freetype-2.10.0/include/freetype/config/ftoption.h
@@ -126,7 +126,7 @@ FT_BEGIN_HEADER
* macro is not defined, FreeType offers alternative LCD rendering
* technology that produces excellent output without LCD filtering.
*/
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
/**************************************************************************
++++++ freetype2.sh ++++++
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
++++++ overflow.patch ++++++
Index: ft2demos-2.10.0/src/ttdebug.c
===================================================================
--- ft2demos-2.10.0.orig/src/ttdebug.c
+++ ft2demos-2.10.0/src/ttdebug.c
@@ -2024,11 +2024,11 @@
FT_Library_Version( library, &major, &minor, &patch );
- offset = snprintf( version_string, 64,
+ offset = snprintf( version_string, sizeof(version_string),
"ttdebug (FreeType) %d.%d",
major, minor );
if ( patch )
- offset = snprintf( version_string + offset, (size_t)( 64 - offset ),
+ offset = snprintf( version_string + offset, (size_t)(
sizeof(version_string) - offset ),
".%d",
patch );
}