diff --git a/.cvsignore b/.cvsignore index bf9ccb0..474ef8c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -fcpackage.2_0.tar.gz +fcpackage.2_1.tar.gz diff --git a/fontconfig.spec b/fontconfig.spec index cce527c..1860ccc 100644 --- a/fontconfig.spec +++ b/fontconfig.spec @@ -1,30 +1,33 @@ -%define fcpackage_version 2_0 -%define relno 2.0 +%define fcpackage_version 2_1 +%define relno %(echo %fcpackage_version | sed -e 's#_#.#') -%define freetype_version 2.1.2-2 +%define freetype_version 2.1.2-7 Summary: Font configuration and customization library Name: fontconfig Version: %relno -Release: 3 +Release: 7 License: MIT Group: System Environment/Libraries Source: http://fontconfig.org/release/fcpackage.%{fcpackage_version}.tar.gz URL: http://fontconfig.org -BuildRoot: %{_tmppath}/fontconfig-%{PACKAGE_VERSION}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-root + Patch1: fontconfig-2.0-defaultconfig.patch -Patch4: fontconfig-0.0.1.020811.1151-slighthint.patch -# Only look in /usr/X11R6/lib/fonts/Type1, not in -# all of /usr/X11R6/lib/fonts. -Patch5: fontconfig-0.0.1.020626.1517-fontdir.patch +Patch4: fontconfig-2.1-slighthint.patch +# Remove /usr/X11R6 dirs from fonts.conf, we'll add them back +Patch5: fontconfig-fontdir.patch # Blacklist certain fonts that freetype can't handle Patch11: fontconfig-0.0.1.020826.1330-blacklist.patch -# Patch from Keith Packard to fix problem where -# subdirectories could get lost from ~/.fonts.cache -Patch12: fontconfig-2.0-subdir.patch +# Fix caching of directories +# (http://www.fontconfig.org/cgi-bin/bugzilla/show_bug.cgi?id=8) +Patch12: fontconfig-2.1-dircache.patch +# Ignore .fulldir entries from earlier versions 'dircache' fix. +Patch13: fontconfig-2.1-fulldir.patch BuildRequires: freetype-devel >= %{freetype_version} BuildRequires: expat-devel +BuildRequires: perl PreReq: freetype >= %{freetype_version} @@ -51,15 +54,28 @@ will use fontconfig. %patch1 -p1 -b .defaultconfig %patch4 -p1 -b .slighthint -%patch5 -p1 -b .fontdir +%patch5 -p1 -b .slighthint %patch11 -p1 -b .blacklist -%patch12 -p1 -b .subdir +%patch12 -p1 -b .dircache +%patch13 -p1 -b .fulldir %build %configure make +# Only look for fonts in the Type1/OTF subdirectories +# of /usr/X11R6/lib/fonts; the fonts in the TTF directory +# duplicate those in the Type1 directory +perl -ni -e ' +if (m@^\s+