SHA256
1
0
forked from pool/freetype2
freetype2/freetype2.spec

140 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package freetype2
#
# 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: freetype2
Accepting request 74498 from home:namtrac:branches:M17N - 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
2011-06-27 09:15:07 +02:00
BuildRequires: libbz2-devel pkg-config zlib-devel
License: Freetype License (BSD-like). See http://freetype.sourceforge.net/FTL.TXT
Group: System/Libraries
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: freetype2-64bit
%endif
#
Accepting request 74498 from home:namtrac:branches:M17N - 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
2011-06-27 09:15:07 +02:00
Version: 2.4.5
Release: 9
Url: http://www.freetype.org
Summary: A TrueType Font Library
Source0: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
Source3: baselibs.conf
Patch3: freetype2-bitmap-foundry.patch
Patch9: fix-build.patch
Patch10: freetype2-no_rpath.patch
Patch308961: bugzilla-308961-cmex-workaround.patch
Patch200: freetype2-subpixel.patch
Patch201: use_unix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.
%package -n libfreetype6
License: Freetype License (BSD-like). See http://freetype.sourceforge.net/FTL.TXT
Summary: A TrueType Font Library
Group: System/Libraries
Obsoletes: freetype2 < 2.3.10
Provides: freetype2 = 2.3.10
%description -n libfreetype6
This library features TrueType fonts for open source projects. This
version also contains an autohinter for producing improved output.
%package devel
License: GPLv2+ ; Freetype License (BSD-like). See http://freetype.sourceforge.net/FTL.TXT
Summary: Development environment for the freetype2 TrueType font library
Group: Development/Libraries/C and C++
Requires: libfreetype6 = %{version}, zlib-devel
# bug437293
%ifarch ppc64
Obsoletes: freetype2-devel-64bit
%endif
# there is no freetype-devel on suse:
Provides: freetype-devel
%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
%define enable_subpixel_rendering 0
%setup -q -n freetype-%{version} -a 1
%patch3 -p 1 -b .bitmap-foundry
%patch9 -p 1
%patch10
%patch308961 -p 1
%if %{enable_subpixel_rendering}
%patch200 -p 1 -b .subpixel
%endif
%patch201 -p1
cp /usr/share/automake*/config.{guess,sub} builds/unix
rm docs/reference/.gitignore
%build
%ifarch arm
export CFLAGS="$CFLAGS -std=gnu99"
%endif
Accepting request 74498 from home:namtrac:branches:M17N - 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
2011-06-27 09:15:07 +02:00
ln -s /usr/bin/libtool ./builds/unix/libtool
make setup CFG="--prefix=/usr --libdir=%{_libdir} --with-zlib"
Accepting request 74498 from home:namtrac:branches:M17N - 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
2011-06-27 09:15:07 +02:00
make prefix=/usr 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
%install
# these development documents should go into the freetype2-devel package:
mv docs/reference freetype-%{version}/docs
make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
# remove documentation that does not belong in an rpm
rm docs/INSTALL*
%clean
rm -rf %{buildroot}
%post -n libfreetype6 -p /sbin/ldconfig
%postun -n libfreetype6 -p /sbin/ldconfig
%files -n libfreetype6
%defattr(-,root,root)
%{_libdir}/libfreetype.so.*
%doc ChangeLog README
%doc docs/*
%files devel
%defattr(-,root,root)
%doc freetype-%{version}/docs/*
/usr/include/*
%exclude %{_libdir}/libfreetype.*a
%{_libdir}/libfreetype.so
%{_libdir}/pkgconfig/freetype2.pc
/usr/bin/*
/usr/share/aclocal/*
%changelog