%define enable_bytecode_interpreter 1 %define enable_subpixel_rendering 1 Name: libfreetype Version: 2.3.12 Release: 1mamba Summary: Free TrueType font rasterizer library Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco Group: System/Libraries URL: http://www.freetype.org Source: http://savannah.nongnu.org/download/freetype/freetype-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The FreeType engine is a free and portable TrueType font rendering engine. It has been developed to provide TT support to a great variety of platforms and environments. Note that FreeType is a library, not a stand-alone application, though some utility applications are included. %package devel Summary: Header files and static library for development with FreeType2 Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package is only needed if you intend to develop or compile applications which rely on the FreeType2 library. If you simply want to run existing applications, you won't need this package. %prep %setup -q -n freetype-%{version} %build %if "%{?enable_bytecode_interpreter}" == "1" # activate a bytecode interpreter in the TrueType driver sed -i "s|/\* \(#define.*TT_CONFIG_OPTION_BYTECODE_INTERPRETER\).*|\1|" \ include/freetype/config/ftoption.h %endif %if "%{?enable_subpixel_rendering}" == "1" # activate sub-pixel hinting sed -i "s|/\* \(#define.*FT_CONFIG_OPTION_SUBPIXEL_RENDERING\).*|\1|" \ include/freetype/config/ftoption.h %endif %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall # needed to compile xpdf 2.x install -D src/cff/cfftypes.h \ %{buildroot}%{_includedir}/freetype2/freetype/internal/cfftypes.h %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/*.so.* %doc ChangeLog README %files devel %defattr(-,root,root) %{_bindir}/freetype-config %{_datadir}/aclocal/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/*.a %{_libdir}/pkgconfig/freetype2.pc %doc docs/* %changelog * Thu Jun 03 2010 gil 2.3.12-1mamba - update to 2.3.12 * Mon Feb 08 2010 gil 2.3.11-2mamba - rebuilt * Tue Oct 13 2009 Automatic Build System 2.3.11-1mamba - automatic update to 2.3.11 by autodist * Wed Oct 07 2009 Automatic Build System 2.3.10-1mamba - automatic update to 2.3.10 by autodist * Thu Mar 19 2009 Silvan Calarco 2.3.9-1mamba - automatic update to 2.3.9 by autodist * Thu Jan 15 2009 Silvan Calarco 2.3.8-1mamba - automatic update to 2.3.8 by autodist * Fri Sep 19 2008 Silvan Calarco 2.3.7-2mamba - enabled subpixel rendering by default * Sat Jul 05 2008 gil 2.3.7-1mamba - update to 2.3.7 * Thu Jun 12 2008 Silvan Calarco 2.3.6-1mamba - update to 2.3.6 * Tue Jul 03 2007 Aleph0 2.3.5-1mamba - update to 2.3.5 * Tue Apr 10 2007 Aleph0 2.3.4-1mamba - update to version 2.3.4 by autospec * Thu Apr 05 2007 Aleph0 2.3.3-1mamba - update to version 2.3.3 by autospec - security fix against CVE-2007-1351 * Sat Mar 10 2007 Silvan Calarco 2.3.2-1qilnx - update to version 2.3.2 by autospec * Thu Feb 01 2007 Davide Madrisan 2.3.1-1qilnx - update to version 2.3.1 by autospec - removed all the patches previously got from CVS - removed all the security patches against (merged upstream) - added %%post and %%postun scripts * Fri Jul 21 2006 Davide Madrisan 2.1.10-4qilnx - security update against CVE-2006-3467 (bugzilla#204) * Thu Jun 15 2006 Davide Madrisan 2.1.10-3qilnx - security update against CVE-2006-[0747,1861,2661] * Tue Jun 13 2006 Davide Madrisan 2.1.10-2qilnx - stolen some fixes from freetype CVS * Sun Oct 30 2005 Silvan Calarco 2.1.10-1qilnx - update to version 2.1.10 by autospec * Thu Dec 09 2004 Davide Madrisan 2.1.9-2qilnx - added cfftypes.h in the devel package * Thu Jul 15 2004 Silvan Calarco 2.1.9-1qilnx - new version build * Wed May 26 2004 Silvan Calarco 2.1.8-1qilnx - new version rebuild * Wed Apr 28 2004 Davide Madrisan 2.1.7-1qilnx - new version rebuild * Mon Oct 27 2003 Silvan Calarco 2.1.5-1qilnx - new version rebuild * Mon Jul 14 2003 Silvan Calarco 2.1.4-2qilnx - activated truetype bytecode interpreter * Mon May 12 2003 Alessandro Ramazzina 2.1.4-1qilnx - creation of freetype package