--- /dev/null
+# Applications not required for mingw
+missing source: 'ft2demos-2.3.7.tar.bz2'
+# Mingw does not have multilib
+missing patch 'freetype-multilib.patch'
+# Not including demos in mingw
+missing patch 'ft2demos-2.1.9-mathlib.patch'
\ No newline at end of file
--- /dev/null
+--- freetype-2.1.10/include/freetype/config/ftoption.h.enable-ft2-bci 2005-10-12 13:50:40.000000000 -0400
++++ freetype-2.1.10/include/freetype/config/ftoption.h 2005-10-12 14:18:50.000000000 -0400
+@@ -436,7 +436,7 @@
+ /* Do not #undef this macro here, since the build system might */
+ /* define it for certain configurations only. */
+ /* */
+-/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
++#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
+
+ /*************************************************************************/
--- /dev/null
+--- freetype-2.2.1/modules.cfg.orig 2006-07-07 21:01:09.000000000 -0400
++++ freetype-2.2.1/modules.cfg 2006-07-07 21:01:54.000000000 -0400
+@@ -110,7 +110,7 @@
+ AUX_MODULES += cache
+
+ # TrueType GX/AAT table validation. Needs ftgxval.c below.
+-# AUX_MODULES += gxvalid
++AUX_MODULES += gxvalid
+
+ # Support for streams compressed with gzip (files with suffix .gz).
+ #
+@@ -124,7 +124,7 @@
+
+ # OpenType table validation. Needs ftotval.c below.
+ #
+-# AUX_MODULES += otvalid
++AUX_MODULES += otvalid
+
+ # Auxiliary PostScript driver component to share common code.
+ #
--- /dev/null
+--- freetype-2.2.1/src/psaux/psobjs.c~ 2006-04-26 16:38:17.000000000 +0200
++++ freetype-2.2.1/src/psaux/psobjs.c 2006-09-10 15:01:13.000000000 +0200
+@@ -165,6 +165,11 @@
+ return PSaux_Err_Invalid_Argument;
+ }
+
++ if ( length < 0 ) {
++ FT_ERROR(( "ps_table_add: invalid length\n" ));
++ return PSaux_Err_Invalid_Argument;
++ }
++
+ /* grow the base block if needed */
+ if ( table->cursor + length > table->capacity )
+ {
--- /dev/null
+--- freetype-2.3.0/include/freetype/config/ftoption.h.spf 2007-01-18 14:27:34.000000000 -0500
++++ freetype-2.3.0/include/freetype/config/ftoption.h 2007-01-18 14:27:48.000000000 -0500
+@@ -92,7 +92,7 @@
+ /* 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
+
+
+ /*************************************************************************/
--- /dev/null
+--- ft2demos-2.1.9/graph/x11/rules.mk.mathlib 2004-08-04 16:11:22.534818408 -0400
++++ ft2demos-2.1.9/graph/x11/rules.mk 2004-08-04 16:11:35.317875088 -0400
+@@ -70,7 +70,7 @@
+ ifeq ($(PLATFORM),unix)
+ GRAPH_LINK += $(X11_LIB:%=-R%)
+ endif
+- GRAPH_LINK += $(X11_LIB:%=-L%) -lX11
++ GRAPH_LINK += $(X11_LIB:%=-L%) -lX11 -lm
+
+ # Solaris needs a -lsocket in GRAPH_LINK.
+ #
Name: mingw-freetype
Version: 2.3.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: MinGW Windows Freetype library
License: FTL or GPLv2+
URL: http://www.freetype.org
Source: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
+Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch1: freetype-2.1.10-enable-ft2-bci.patch
+Patch2: freetype-2.3.0-enable-spr.patch
+Patch3: freetype-2.2.1-enable-valid.patch
+Patch4: freetype-2.2.1-memcpy-fix.patch
+
+
BuildArch: noarch
BuildRequires: mingw-filesystem >= 25
%prep
-%setup -q -n freetype-%{version}
+%setup -q -n freetype-%{version} -b 1 -a 1
%build
%{_mingw_configure}
%changelog
+* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.3.7-4
+- Import patches from rawhide & add docs
+
* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.3.7-3
- Depends on filesystem >= 25.