remove patches
authorAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 22:08:28 +0000 (14:08 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 22:08:28 +0000 (14:08 -0800)
packaging/baselibs.conf
packaging/bugzilla-308961-cmex-workaround.patch [deleted file]
packaging/fix-build.patch [deleted file]
packaging/freetype2-bitmap-foundry.patch [deleted file]
packaging/freetype2-no_rpath.patch [deleted file]
packaging/freetype2-subpixel.patch [deleted file]
packaging/freetype2.spec [new file with mode: 0644]
packaging/ft2demos-build-testname.patch [deleted file]

index 3a998c5..a505796 100644 (file)
@@ -1,8 +1,6 @@
-libfreetype6
-       obsoletes "freetype2-<targettype> < <version>"
+libfreetype
        provides "freetype2-<targettype> = <version>"
 freetype2-devel
-       requires -freetype2-<targettype>
-       requires "libfreetype6-<targettype>"
+       requires "libfreetype-<targettype>"
        requires "zlib-devel-<targettype>"
        
diff --git a/packaging/bugzilla-308961-cmex-workaround.patch b/packaging/bugzilla-308961-cmex-workaround.patch
deleted file mode 100644 (file)
index 505c1c8..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
----
- 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;
diff --git a/packaging/fix-build.patch b/packaging/fix-build.patch
deleted file mode 100644 (file)
index 01aefce..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
----
- 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])
diff --git a/packaging/freetype2-bitmap-foundry.patch b/packaging/freetype2-bitmap-foundry.patch
deleted file mode 100644 (file)
index ffbb2de..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
----
- 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;
diff --git a/packaging/freetype2-no_rpath.patch b/packaging/freetype2-no_rpath.patch
deleted file mode 100644 (file)
index b74b1ea..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
---- 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
diff --git a/packaging/freetype2-subpixel.patch b/packaging/freetype2-subpixel.patch
deleted file mode 100644 (file)
index ea8cfe5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
-   /*************************************************************************/
diff --git a/packaging/freetype2.spec b/packaging/freetype2.spec
new file mode 100644 (file)
index 0000000..e70c164
--- /dev/null
@@ -0,0 +1,70 @@
+Name:           freetype2
+BuildRequires:  pkg-config
+BuildRequires:  zlib-devel
+Version:        2.4.9
+Release:        0
+Summary:        A TrueType Font Library
+License:        Freetype or GPL-2.0+
+Group:          System/Libraries
+Url:            http://www.freetype.org
+Source0:        http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
+Source2:        baselibs.conf
+
+%description
+This library features TrueType fonts for open source projects. This
+version also contains an autohinter for producing improved output.
+
+%package -n libfreetype
+Summary:        A TrueType Font Library
+Group:          System/Libraries
+
+%description -n libfreetype
+This library features TrueType fonts for open source projects. This
+version also contains an autohinter for producing improved output.
+
+%package devel
+Summary:        Development environment for the freetype2 TrueType font library
+Group:          Development/Libraries/C and C++
+Requires:       libfreetype = %{version}
+Requires:       zlib-devel
+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} 
+
+%build
+export CFLAGS="%optflags -std=gnu99 -D_GNU_SOURCE"
+%configure --without-bzip2 \
+           --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+rm docs/INSTALL*
+
+%post -n libfreetype -p /sbin/ldconfig
+
+%postun -n libfreetype -p /sbin/ldconfig
+
+%files -n libfreetype
+%defattr(-,root,root)
+%{_libdir}/libfreetype.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/*
+%{_libdir}/libfreetype.so
+%{_libdir}/pkgconfig/freetype2.pc
+%{_bindir}/*
+%{_datadir}/aclocal
+
+%changelog
diff --git a/packaging/ft2demos-build-testname.patch b/packaging/ft2demos-build-testname.patch
deleted file mode 100644 (file)
index 1f257a5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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) \