- Update to version 2.4.5 * A rendering regression for second-order Bézier curves has been fixed, introduced in 2.4.3. * If autohinting is not explicitly disabled, FreeType now uses the autohinter if a TrueType based font doesn't contain native hints. * The load flag FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH has been made redundant and is simply ignored; this means that FreeType now ignores the global advance width value in TrueType fonts. * `FT_Sfnt_Table_Info' can now return the number of SFNT tables of a font. * Support for PCF files compressed with bzip2 has been contributed by Joel Klinghed. To make this work, the OS must provide a bzip2 library. * Again some fixes to better handle broken fonts. * Some improvements to the B/W rasterizer. * Fixes to the cache module to improve robustness. * Just Fill Bugs contributed (experimental) code to compute blue zones for CJK Ideographs, improving the alignment of horizontal stems at the top or bottom edges. - Dropped the following patches: * bnc628213_1797.diff (fixed upstream) * bnc641580_CVE-2010-3311.diff (fixed upstream) * ft2-stream-compat.diff (only needed for SLE8->SLE9 update) - Add libbz2-devel to BuildRequires to enable bzip2 support - Update to version 2.4.5 * The `ftgrid' demo program can now display autohinter segments, to be toggled on and off with key `s'. OBS-URL: https://build.opensuse.org/request/show/74498 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=45
102 lines
3.3 KiB
RPMSpec
102 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package ft2demos
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: ft2demos
|
|
BuildRequires: xorg-x11-devel
|
|
License: GPLv2+
|
|
Group: Productivity/Publishing/Other
|
|
AutoReqProv: on
|
|
Supplements: fonts-config
|
|
Version: 2.4.5
|
|
Release: 4
|
|
%define freetype_version %{version}
|
|
Url: http://www.freetype.org
|
|
Summary: Freetype2 Utilities and Demo Programs
|
|
Source0: http://savannah.nongnu.org/download/freetype/freetype-%{version}.tar.bz2
|
|
Source1: http://savannah.nongnu.org/download/freetype/ft2demos-%{version}.tar.bz2
|
|
Patch9: fix-build.patch
|
|
Patch308961: bugzilla-308961-cmex-workaround.patch
|
|
Patch50: ft2demos-build-testname.patch
|
|
Patch200: freetype2-subpixel.patch
|
|
Patch201: use_unix.diff
|
|
|
|
Source1000: bnc628213_test.otf
|
|
Source1004: bnc629447_sigsegv31.ttf
|
|
Source1013: bnc633938_badbdf.0
|
|
Source1015: bug-641580_CVE-2010-3311.cff
|
|
Source1016: bug-647375_tt2.ttf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Freetype2 utilities and demo programs.
|
|
|
|
%prep
|
|
%define enable_subpixel_rendering 0%{?opensuse_bs}
|
|
%setup -n freetype-%{freetype_version} -b 1
|
|
%patch9 -p 1
|
|
%patch308961 -p 1
|
|
pushd ../ft2demos-%{version}
|
|
%patch50 -p 1
|
|
popd
|
|
%if %{enable_subpixel_rendering}
|
|
%patch200 -p 1 -b .subpixel
|
|
%endif
|
|
%patch201 -p1
|
|
|
|
cp /usr/share/automake*/config.{guess,sub} builds/unix
|
|
|
|
%build
|
|
ln -s /usr/bin/libtool ./builds/unix/libtool
|
|
make setup CFG="--prefix=%{_prefix} --libdir=%{_libdir} --with-zlib"
|
|
make prefix=%{_prefix} libdir=%{_libdir} %{_smp_mflags}
|
|
# build the documentation in the references subdirectory:
|
|
# (this needs python and we cannot have python in the BuildRequires of
|
|
# a basic package like freetype2, therefore we cannot do it here but we have
|
|
# to generate this documentation manually)
|
|
# make refdoc
|
|
pushd ..
|
|
ln -s freetype-%{freetype_version} freetype2
|
|
cd ft2demos-%{version}
|
|
make prefix=%{_prefix} libdir=%{_libdir}
|
|
popd
|
|
|
|
%install
|
|
#make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
pushd ../ft2demos-%{version}/bin/.libs
|
|
install -m 755 ft* $RPM_BUILD_ROOT%{_bindir}
|
|
popd
|
|
|
|
%check
|
|
$RPM_BUILD_ROOT/usr/bin/ftbench -c 1 %{S:1000}
|
|
$RPM_BUILD_ROOT/usr/bin/ftbench -c 1 %{S:1004} |& grep -v "couldn't load font resource" && echo "should fail"
|
|
$RPM_BUILD_ROOT/usr/bin/ftbench -c 1 %{S:1013} |& grep -v "couldn't load font resource" && echo "should fail"
|
|
$RPM_BUILD_ROOT/usr/bin/ftbench -c 1 %{S:1015} |& grep -v "couldn't load font resource" && echo "should fail"
|
|
$RPM_BUILD_ROOT/usr/bin/ftbench -c 1 %{S:1016}
|
|
|
|
%clean
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ft*
|
|
|
|
%changelog
|