Hello community,

here is the log from the commit of package freetype2 for 
openSUSE:12.1:Update:Test checked in at 2011-12-19 17:48:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update:Test/freetype2 (Old)
 and      /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "freetype2", Maintainer is "[email protected]"

Changes:
--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new/freetype2.changes        
2011-12-19 17:48:21.000000000 +0100
@@ -0,0 +1,952 @@
+-------------------------------------------------------------------
+Tue Oct 18 12:11:46 UTC 2011 - [email protected]
+
+- Update to version 2.4.7
+  * Some  vulnerabilities in handling Type 1 fonts  have been fixed;
+    see CVE-2011-3256.
+  * FreeType  now properly  handles ZapfDingbats  glyph names  while
+    constructing a Unicode character map (for fonts which don't have
+    one).
+
+-------------------------------------------------------------------
+Fri Jul 29 07:41:28 UTC 2011 - [email protected]
+
+- Update to version 2.4.6
+  * For TrueType based fonts, the ascender and descender values were
+    incorrect sometimes  (off by a pixel if the ppem value was not a
+    multiple of 5).   Depending on the use you might now  experience
+    a different  layout; the  change should  result in  better, more
+    consistent line spacing. 
+  * Fix CVE-2011-0226  which causes a  vulnerability while  handling
+    Type 1 fonts.
+  * BDF fonts  containing  glyphs with negative values  for ENCODING
+    were  incorrectly  rejected.  This  bug has  been introduced  in
+    FreeType version 2.2.0.
+  * The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
+  * A new  line join style,  FT_STROKER_LINEJOIN_MITER_FIXED,  has
+    been introduced to support PostScript and PDF miter joins.
+  * FT_STROKER_LINEJOIN_MITER_VARIABLE  has been introduced  as an
+    alias for FT_STROKER_LINEJOIN_MITER.
+  * Various stroking glitches has been fixed
+  * SFNT bitmap fonts which contain an outline glyph for `.notdef'
+    only no longer set the FT_FACE_FLAG_SCALABLE flag.
+- Drop bnc704612_othersubr.diff, applied upstream
+
+-------------------------------------------------------------------
+Fri Jul 22 13:41:02 CEST 2011 - [email protected]
+
+- added bnc704612_othersubr.diff, CVE-2011-0226, bnc#704612.
+
+-------------------------------------------------------------------
+Thu Jul  7 13:16:05 UTC 2011 - [email protected]
+
+- Clean spec file
+- Disable static libraries
+- Drop unneeded use_unix.diff
+- Disable newly introduced bzip2 support, it seems to create 
+  problems with subpixel rendering 
+
+-------------------------------------------------------------------
+Sat Jun 25 08:37:55 UTC 2011 - [email protected]
+
+- 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
+
+-------------------------------------------------------------------
+Mon Feb 28 16:36:35 UTC 2011 - [email protected]
+
+- bnc#647375: CVE-2010-3855.diff already fixed upstream.
+- bnc#647375: CVE-2010-3814.diff already fixed upstream.
+
+-------------------------------------------------------------------
+Tue Dec  7 17:53:52 UTC 2010 - [email protected]
+
+- several old patches got lost, reapplying:
+  * added bnc641580_CVE-2010-3311.diff for bnc#641580
+  * bnc633943_CVE-2010-3054 nothing to do. 
+  * bnc633938_CVE-2010-3053 nothing to do. 
+
+-------------------------------------------------------------------
+Mon Dec  6 01:34:41 UTC 2010 - [email protected]
+
+- exclude *.a *.la files from -devel package 
+
+-------------------------------------------------------------------
+Sat Dec  4 20:27:14 UTC 2010 - [email protected]
+
+- Updated to version 2.4.4:
+  * [truetype] better multi-threading support
+  * [truetype] identify the tricky fonts by cvt/fpgm/prep checksums; some 
Latin TrueType fonts are still expected to be unhinted
+  * [type1] fix matrix normalization
+  * [type1] improve guard against malformed data
+  * [ftsmooth] improve rendering
+  * [ftraster] fix rendering
+
+-------------------------------------------------------------------
+Fri Oct 29 16:19:41 UTC 2010 - [email protected]
+
+- Updated to version 2.4.3:
+  + Fix rendering of certain cubic, S-shaped arcs. This regression
+    has been introduced in version 2.4.0.
+  + Handling of broken fonts has been further improved.
+
+-------------------------------------------------------------------
+Thu Aug 12 09:43:18 UTC 2010 - [email protected]
+
+- bnc#628213: added bnc628213_1797.diff
+- bnc#629447: CVE-2010-2805..8 are already fixed in upstream 2.4.2
+- bnc#619562: CVE-2010-2497,2498,2499,2500,2519,2520 dito.
+
+-------------------------------------------------------------------
+Mon Aug  9 12:48:18 CEST 2010 - [email protected]
+
+- updated to version 2.4.2:
+  Another serious bug in the CFF font module has been found,
+  together with more exploitable vulnerabilities in the T42 font
+  driver. 
+
+-------------------------------------------------------------------
+Tue Jul 20 17:50:44 CEST 2010 - [email protected]
+
+- updated to version 2.4.1:
+  * major version up
+  * bytecode interpreter is enabled as default in the upstream
+  * doc-reference is redundant, removed
+
+-------------------------------------------------------------------
+Fri Jun  4 11:09:21 UTC 2010 - [email protected]
+
+- reenable bitmap foundaries (bnc#596559)
+
+-------------------------------------------------------------------
+Sat Apr 24 09:20:43 UTC 2010 - [email protected]
+
+- buildrequire pkg-config to fix provides
+
+-------------------------------------------------------------------
+Tue Apr  6 20:12:54 UTC 2010 - [email protected]
+
+- Adjust baselibs.conf for changes
+
+-------------------------------------------------------------------
+Tue Apr  6 05:23:04 UTC 2010 - [email protected]
+
+- fix obsoletes/provides
+
+-------------------------------------------------------------------
+Mon Apr  5 18:52:29 UTC 2010 - [email protected]
+
+- leave freetype2 behind and only go with shared library package
+
+-------------------------------------------------------------------
+Sun Apr  4 08:14:19 UTC 2010 - [email protected]
+
+- Fix baselibs.conf for renamed libs
+
+-------------------------------------------------------------------
+Wed Mar 31 14:45:27 UTC 2010 - [email protected]
+
+- update to version 2.3.12:
+  brings considerable improvements for b/w rasterizing of hinted 
+  TrueType fonts at small sizes, see NEWS for more details
+- fixed build without sysvinit in the build system
+- disable no longer compiling patch that should be upstream or dead
+- split out shared library policy package
+- remove old patches
+
+-------------------------------------------------------------------
+Mon Dec 14 20:12:43 CET 2009 - [email protected]
+
+- add baselibs.conf as a source
+
+-------------------------------------------------------------------
+Fri Nov  6 11:26:27 CET 2009 - [email protected]
+
+- make -std=gnu99 cfalgs to be ARM-specific
+
+-------------------------------------------------------------------
+Tue Nov  3 19:13:01 UTC 2009 - [email protected]
+
+- updated patches to apply with fuzz=0
+
+-------------------------------------------------------------------
+Sun Aug  2 20:06:24 UTC 2009 - [email protected]
+
++++ 755 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new/freetype2.changes
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new/ft2demos.changes 
2011-12-19 17:48:21.000000000 +0100
@@ -0,0 +1,659 @@
+-------------------------------------------------------------------
+Tue Oct 18 12:12:44 UTC 2011 - [email protected]
+
+- Update to version 2.4.7
+  * No changes since 2.4.5
+
+-------------------------------------------------------------------
+Fri Jul 29 07:44:56 UTC 2011 - [email protected]
+
+- Update to version 2.4.6
+  * No changes since 2.4.5 
+
+-------------------------------------------------------------------
+Fri Jul 22 13:41:52 CEST 2011 - [email protected]
+
+- added bnc704612_othersubr.diff, CVE-2011-0226, bnc#704612.
+
+-------------------------------------------------------------------
+Thu Jul  7 13:20:45 UTC 2011 - [email protected]
+
+- Cleanup spec file
+- Drop unneeded use_unix.diff 
+
+-------------------------------------------------------------------
+Sat Jun 25 08:43:59 UTC 2011 - [email protected]
+
+- Update to version 2.4.5
+    * The `ftgrid' demo program  can now display  autohinter segments,
+      to be toggled on and off with key `s'. 
+
+-------------------------------------------------------------------
+Fri Feb 25 12:06:26 UTC 2011 - [email protected]
+
+- bnc647375: CVE-2010-3814, regression test added.
+
+-------------------------------------------------------------------
+Tue Dec  7 17:52:34 UTC 2010 - [email protected]
+
+- Several old patches got lost. Reapplying:
+ * added bnc641580_CVE-2010-3311.diff incl. test-case for bnc#641580
+ * bnc633943_CVE-2010-3054 nothing to do.
+ * bnc633938_CVE-2010-3053 nothing to do.
+ * bnc633938_badbdf.0 regression test added.
+
+-------------------------------------------------------------------
+Fri Oct 29 16:25:22 UTC 2010 - [email protected]
+
+- Updated to version 2.4.3:
+  + Make `grKey' enum comprehensive for gcc 4.5 compatibility.
+  + [ftbench] Add option `-i' to specify first used glyph index.
+
+-------------------------------------------------------------------
+Thu Aug 12 09:53:12 UTC 2010 - [email protected]
+
+- bnc#628213: added bnc628213_1797.diff + regression test
+- bnc#629447: CVE-2010-2805..8 are already fixed in upstream 2.4.2
+- bnc#619562: CVE-2010-2497,2498,2499,2500,2519,2520 dito.
+  added sigsegv31.ttf regression test
+
+-------------------------------------------------------------------
+Mon Aug  9 12:48:18 CEST 2010 - [email protected]
+
+- updated to version 2.4.2:
+  Another serious bug in the CFF font module has been found,
+  together with more exploitable vulnerabilities in the T42 font
+  driver.
+
+-------------------------------------------------------------------
+Tue Jul 20 17:50:44 CEST 2010 - [email protected]
+
+- updated to version 2.4.1:
+  * major version up
+  * bytecode interpreter is enabled as default in the upstream
+  * doc-reference is redundant, removed
+
+-------------------------------------------------------------------
+Wed Mar 31 15:08:24 UTC 2010 - [email protected]
+
+- update to version 2.3.12:
+  brings considerable improvements for b/w rasterizing of hinted
+  TrueType fonts at small sizes, see NEWS for more details
+
+-------------------------------------------------------------------
+Mon Jul 27 15:05:32 CEST 2009 - [email protected]
+
+- updated to version 2.3.9:
+  * see URLs below
+    http://www.freetype.org/index2.html#release-freetype-2.3.9
+    
http://sourceforge.net/project/shownotes.php?group_id=3157&release_id=653641
+- updated to version 2.3.9:
+  * see URLs below
+    http://www.freetype.org/index2.html#release-freetype-2.3.9
+    
http://sourceforge.net/project/shownotes.php?group_id=3157&release_id=667610
+- fix builds with older distros
+
+-------------------------------------------------------------------
+Thu Apr 16 17:55:50 CEST 2009 - [email protected]
+
+- fixed integer overflows [bnc#485889] CVE-2009-0946
+
+-------------------------------------------------------------------
+Wed Nov 05 16:58:22 CET 2008 - [email protected]
+
+- bnc#441638: use fix from upstream CVS to fix the return value
+  of FT_Get_TrueType_Engine_Type (and make it work as documented).
+  Thanks to Werner Lemberg for fixing and Krzysztof Kotlenga for
+  reporting the issue.
+
+-------------------------------------------------------------------
+Mon Aug 18 16:38:09 CEST 2008 - [email protected]
+
+- fix uninitialized pointer "FT_STREAM stream" in function
+  FT_Open_Face() which made fontforge crash while trying to apply
+  a workaround to the sazanami-fonts because fontforge called
+  FT_Open_Face() with 0 for the FT_Library argument and
+  then freetype crashed in FT_Stream_Free().
+
+-------------------------------------------------------------------
+Wed Jul 23 12:20:30 CEST 2008 - [email protected]
+
+- update to 2.3.7. Extract from the docs/CHANGES file:
+  • If the library was compiled on an i386 platform using gcc, and
+    compiler option -O3 was given, `FT_MulFix' sometimes returned
+    incorrect results which could have caused problems with
+    `FT_Request_Metrics' and `FT_Select_Metrics', returning an
+    incorrect descender size.
+  • Pure CFFs without subfonts were scaled incorrectly if the font
+    matrix was non-standard.  This bug has been introduced in
+    version 2.3.6.
+  • The `style_name' field in the `FT_FaceRec' structure often
+    contained a wrong value for Type 1 fonts.  This misbehaviour
+    has been introduced in version 2.3.6 while trying to fix
+    another problem.  [Note, however, that this value is
+    informative only since the used algorithm to extract it is
+    very simplistic.]
+  • Two new macros, FT_OUTLINE_SMART_DROPOUTS and
+    FT_OUTLINE_EXCLUDE_STUBS, have been introduced.  Together with
+    FT_OUTLINE_IGNORE_DROPOUTS (which was ignored previously) it is
+    now possible to control the dropout mode of the `raster' module
+    (for B&W rasterization), using the `flags' field in the
+    `FT_Outline' structure.
+  • The TrueType bytecode interpreter now passes the dropout mode to
+    the B&W rasterizer.  This greatly increases the output for small
+    ppem values of many fonts like `pala.ttf'.
+  • A bunch of potential security problems have been found.  All
+    users should update.
+  • Microsoft Unicode cmaps in TrueType fonts are now always
+    preferred over Apple cmaps.  This is not a bug per se, but there
+    exist some buggy fonts created for MS which have broken Apple
+    cmaps.  This affects only the automatic selection of FreeType;
+    it's always possible to manually select an Apple Unicode cmap if
+    desired.
+  • Many bug fixes to the TrueType bytecode interpreter.
+  • Improved Mac support.
+  • Subsetted CID-keyed CFFs are now supported correctly.
+  • CID-keyed CFFs with subfonts which are scaled in a non-standard
+    way are now handled correctly.
+  • A call to FT_Open_Face with `face_index' < 0 crashed FreeType if
+    the font was a Windows (bitmap) FNT/FON.
+  • The new function `FT_Get_CID_Registry_Ordering_Supplement' gives
+    access to those fields in a CID-keyed font.  The code has been
+    contributed by Derek Clegg.
+  • George Williams contributed code to validate the new `MATH'
+    OpenType table (within the `otvalid' module).  The `ftvalid'
+    demo program has been extended accordingly.
+  • An API for cmap 14 support (for Unicode Variant Selectors, UVS)
+    has been contributed by George Williams.
+  • A new face flag FT_FACE_FLAG_CID_KEYED has been added, together
+    with a macro FT_IS_CID_KEYED which evaluates to 1 if the font is
+    CID-keyed.
+  • Build support for symbian has been contributed.
+  • Better WGL4 glyph name support, contributed by Sergey Tolstov.
+  • Debugging output of the various FT_TRACEX macros is now sent to
+    stderr.
+  • The `ftview' demo program now provides artificial slanting too.
+  • The `ftvalid' demo program has a new option `-f' to select the
+    font index.
+- remove patch for bnc#399169 (came from upstream).
+
+-------------------------------------------------------------------
+Fri Jun 13 11:50:06 CEST 2008 - [email protected]
+
+- bnc#399169: fix multiple vulnerabilities.
+
+-------------------------------------------------------------------
+Mon Apr 14 18:33:02 CEST 2008 - [email protected]
+
+- Make sure config.guess and config.sub exist.
+
+-------------------------------------------------------------------
+Thu Oct 18 15:45:04 CEST 2007 - [email protected]
+
+- Bugzilla #334565: avoid crash in xpdf caused by a bug in the
+  workaround patch for bug #308961
+  (fixed by Peng Wu <[email protected]>).
+
+-------------------------------------------------------------------
++++ 462 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new/ft2demos.changes

New:
----
  _link
  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
  fix-build.patch
  freetype-2.4.7.tar.bz2
  freetype-doc-2.4.7.tar.bz2
  freetype2-bitmap-foundry.patch
  freetype2-no_rpath.patch
  freetype2-subpixel.patch
  freetype2.changes
  freetype2.spec
  ft2demos-2.4.7.tar.bz2
  ft2demos-build-testname.patch
  ft2demos.changes
  ft2demos.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ freetype2.spec ++++++
#
# 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/
#



Name:           freetype2
License:        Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
Group:          System/Libraries
BuildRequires:  pkg-config
BuildRequires:  zlib-devel
# bug437293
%ifarch ppc64
Obsoletes:      freetype2-64bit
%endif
#
Version:        2.4.7
Release:        1
Summary:        A TrueType Font Library
Url:            http://www.freetype.org
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
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}
Requires:       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

%build
%ifarch arm
export CFLAGS="$CFLAGS -std=gnu99"
%endif
%configure --without-bzip2 \
           --disable-static
make %{_smp_mflags}

%install
%makeinstall

# these development documents should go into the freetype2-devel package:
mv docs/reference freetype-%{version}/docs

# 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/*
%{_includedir}/*
%exclude %{_libdir}/libfreetype.*a
%{_libdir}/libfreetype.so
%{_libdir}/pkgconfig/freetype2.pc
%{_bindir}/*
%{_datadir}/aclocal/*

%changelog
++++++ ft2demos.spec ++++++
#
# 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/
#



Name:           ft2demos
Version:        2.4.7
Release:        1
License:        GPLv2+
Summary:        Freetype2 Utilities and Demo Programs
%define freetype_version %{version}
Url:            http://www.freetype.org
Group:          Productivity/Publishing/Other
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
BuildRequires:  xorg-x11-devel
Supplements:    fonts-config

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

%build
%configure --without-bzip2
make %{_smp_mflags}

pushd ..
    ln -s freetype-%{freetype_version} freetype2
    cd ft2demos-%{version}
    make %{_smp_mflags}
popd

%install
mkdir -p %{buildroot}%{_bindir}
pushd ../ft2demos-%{version}/bin/.libs
    install -m 755 ft* %{buildroot}%{_bindir}
popd

%check
%{buildroot}%{_bindir}/ftbench -c 1 %{S:1000}
%{buildroot}%{_bindir}/ftbench -c 1 %{S:1004} |& grep -v "couldn't load font 
resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{S:1013} |& grep -v "couldn't load font 
resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{S:1015} |& grep -v "couldn't load font 
resource" && echo "should fail"
%{buildroot}%{_bindir}/ftbench -c 1 %{S:1016}

%clean

%files
%defattr(-,root,root)
%{_bindir}/ft*

%changelog
++++++ _link ++++++
<link project="openSUSE:12.1" package="freetype2" 
baserev="3ca512c9b1c466c6e65b1463bacb2c53">
  <patches>
    <branch/>
  </patches>
</link>
++++++ 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.4.2/src/base/ftobjs.c
===================================================================
--- freetype-2.4.2.orig/src/base/ftobjs.c
+++ freetype-2.4.2/src/base/ftobjs.c
@@ -2153,6 +2153,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;
 
++++++ fix-build.patch ++++++
---
 autogen.sh                |    2 +-
 builds/unix/configure.raw |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: freetype-2.4.2/autogen.sh
===================================================================
--- freetype-2.4.2.orig/autogen.sh
+++ freetype-2.4.2/autogen.sh
@@ -150,7 +150,7 @@ sed -e "s;@VERSION@;$freetype_major$free
   < configure.raw > configure.ac
 
 run aclocal -I . --force
-run $LIBTOOLIZE --force --copy --install
+run $LIBTOOLIZE --force --copy
 run autoconf --force
 
 chmod +x mkinstalldirs
Index: freetype-2.4.2/builds/unix/configure.raw
===================================================================
--- freetype-2.4.2.orig/builds/unix/configure.raw
+++ freetype-2.4.2/builds/unix/configure.raw
@@ -650,7 +650,7 @@ AC_SUBST([FT2_EXTRA_LIBS])
 AC_SUBST([SYSTEM_ZLIB])
 
 
-LT_INIT(win32-dll)
+#LT_INIT(win32-dll)
 
 AC_SUBST([hardcode_libdir_flag_spec])
 AC_SUBST([wl])
++++++ freetype2-bitmap-foundry.patch ++++++
---
 src/pcf/pcfread.c |   30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

Index: freetype-2.4.2/src/pcf/pcfread.c
===================================================================
--- freetype-2.4.2.orig/src/pcf/pcfread.c
+++ freetype-2.4.2/src/pcf/pcfread.c
@@ -1175,8 +1175,34 @@ THE SOFTWARE.
       prop = pcf_find_property( face, "FAMILY_NAME" );
       if ( prop && prop->isString )
       {
-        if ( FT_STRDUP( root->family_name, prop->value.atom ) )
-          goto Exit;
+             int l = ft_strlen( prop->value.atom ) + 1;
+             int wide = 0;
+             PCF_Property foundry_prop = pcf_find_property( face, "FOUNDRY" );
+             PCF_Property point_size_prop = pcf_find_property( face, 
"POINT_SIZE" );
+             PCF_Property average_width_prop = pcf_find_property( face, 
"AVERAGE_WIDTH" );
+             if ( point_size_prop != NULL && average_width_prop != NULL) {
+                     if ( average_width_prop->value.l >= 
point_size_prop->value.l ) {
+                             /* This font is at least square shaped or even 
wider */
+                             wide = 1;
+                             l += ft_strlen( " Wide");
+                     }
+             }
+             if ( foundry_prop != NULL && foundry_prop->isString) {
+                     l += ft_strlen( foundry_prop->value.atom ) + 1;
+                     if ( FT_NEW_ARRAY( root->family_name, l ) )
+                             goto Exit;
+                     ft_strcpy( root->family_name, foundry_prop->value.atom );
+                     strcat( root->family_name, " ");
+                     strcat( root->family_name, prop->value.atom );
+             }
+             else {
+                     if ( FT_NEW_ARRAY( root->family_name, l ) )
+                             goto Exit;
+                     ft_strcpy( root->family_name, prop->value.atom );
+             }
+             if ( wide != 0) {
+                     strcat( root->family_name, " Wide");
+             }
       }
       else
         root->family_name = NULL;
++++++ freetype2-no_rpath.patch ++++++
--- builds/unix/freetype-config.in.orig 2010-12-04 21:17:24.000000000 +0100
+++ builds/unix/freetype-config.in      2010-12-04 21:20:02.000000000 +0100
@@ -16,7 +16,6 @@
 libdir=@libdir@
 enable_shared=@build_libtool_libs@
 wl=@wl@
-hardcode_libdir_flag_spec='@hardcode_libdir_flag_spec@'
 
 usage()
 {
@@ -140,10 +139,6 @@
 fi
 
 if test "$echo_libs" = "yes" ; then
-  rpath=
-  if test "$enable_shared" = "yes" ; then
-    eval "rpath=\"$hardcode_libdir_flag_spec\""
-  fi
   libs="-lfreetype @LIBZ@ @LIBBZ2@ @FT2_EXTRA_LIBS@"
   if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != 
"/usr/lib64"; then
     echo -L${SYSROOT}$libdir $libs
++++++ freetype2-subpixel.patch ++++++
Index: freetype-2.4.3/include/freetype/config/ftoption.h
===================================================================
--- freetype-2.4.3.orig/include/freetype/config/ftoption.h      2010-07-05 
06:38:55.000000000 +0200
+++ freetype-2.4.3/include/freetype/config/ftoption.h   2010-10-29 
16:15:59.582654748 +0200
@@ -93,7 +93,7 @@ FT_BEGIN_HEADER
   /* This is done to allow FreeType clients to run unmodified, forcing     */
   /* them to display normal gray-level anti-aliased glyphs.                */
   /*                                                                       */
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
 
 
   /*************************************************************************/
++++++ ft2demos-build-testname.patch ++++++
Index: ft2demos-2.4.3/Makefile
===================================================================
--- ft2demos-2.4.3.orig/Makefile        2009-10-07 09:57:21.000000000 +0200
+++ ft2demos-2.4.3/Makefile     2010-10-29 16:24:24.770446520 +0200
@@ -482,7 +482,7 @@ else
          $(LINK)
 
   $(BIN_DIR_2)/testname$E: $(OBJ_DIR_2)/testname.$(SO) $(FTLIB)
-         $(LINK)
+         $(LINK_COMMON)
 
 
   $(BIN_DIR_2)/ftview$E: $(OBJ_DIR_2)/ftview.$(SO) $(FTLIB) \
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to