Summary: FreeType library Name: freetype2 Version: 2.0.9 Release: 1 Source: http://prdownloads.sourceforge.net/freetype/freetype-%{version}.tar.bz2 Source1: http://prdownloads.sourceforge.net/freetype/ftdocs-%{version}.tar.bz2 URL: http://www.freetype.org/ Copyright: BSD-Like Group: Libraries BuildRoot: /var/tmp/freetype BuildRequires: libtool >= 1.3.5 Prefix:%{_prefix} %ifarch ia64 %define stdlib lib/ia64l32 %define stdlib64 lib/ia64l64 %define liblink ../../.. %define PKG64 %{name}-%{version}-ia64l64 %define DIRS . %{_builddir}/%{PKG64}/%{name}-%{version} %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %endif %description FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well.. Note that FreeType 2 is a font service and doesn't provide APIs to perform higher-level features, like text layout or graphics processing (e.g. colored text rendering, "hollowing", etc..). However, it greatly simplifies these tasks by providing a simple, easy to use and uniform interface to access the content of font files. %package devel Summary: FreeType development headers and libraries Group: Development/Libraries Requires: %{name} = %{version} %description devel Headers and documentation for the FreeType 2 software font engine. %prep %ifarch ia64 %setup -q -c -n %{PKG64} cd %{name}-%{version} find . -name CVS -type d | xargs rm -rf %endif %setup -q -b 1 -n freetype-%{version} find . -name CVS -type d | xargs rm -rf %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi for dir in %{DIRS}; do cd $dir; if [[ $dir != "." ]]; then export CC="$CC64"; fi make setup CFG="--prefix=%{prefix}" make done %install # Potential loop if building 64-bit libraries for IA64 for dir in %{DIRS}; do cd $dir; if [[ $dir = "." ]]; then INSTDIR=%{prefix}; else INSTDIR=/%{PKG64}%{prefix}; fi make install prefix=$RPM_BUILD_ROOT$INSTDIR /usr/bin/strip $RPM_BUILD_ROOT$INSTDIR/bin/* 2>/dev/null || : done (cd $RPM_BUILD_ROOT mkdir -p usr/include cd usr/include ln -sf ../..%{prefix}/include/* . cd - mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{prefix}/bin/* . cd - mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/libfreetype.la . cd - mkdir -p usr/linux/%{stdlib} cd usr/linux/%{stdlib} ln -sf ../%{liblink}%{prefix}/lib/libfreetype.a . cd - ) %ifarch ppc || %ifarch rs6000 && %ifnarch linux ( cd $RPM_BUILD_ROOT/%{prefix}/lib # Create a compatibility member to mitigate differences with Bull Freeware # offering COMPATMEMBER=shr.o for lib in *.a do /usr/bin/dump -Tv $lib |/usr/bin/awk 'match($4,"EXP|Exp") { print $NF }' > tmp.exp libbase=`print $lib | sed -e 's/.a$//' -e 's/^lib//'` ld -L. -bI:tmp.exp -bE:tmp.exp -l$libbase -bM:SRE -bnoentry -o $COMPATMEMBER /usr/bin/strip -e $COMPATMEMBER # Make shr.o a load-only module /usr/bin/ar -r $lib $COMPATMEMBER rm -f $COMPATMEMBER tmp.exp done ) %endif %ifarch ia64 # Add 64-bit libs to main install tree mkdir -p $RPM_BUILD_ROOT%{prefix}/%{stdlib64} mv ${RPM_BUILD_ROOT}/%{PKG64}%{prefix}/lib/* $RPM_BUILD_ROOT%{prefix}/%{stdlib64} # Add system links cd $RPM_BUILD_ROOT mkdir -p usr/%{stdlib64} cd usr/%{stdlib64} ln -sf %{liblink}%{prefix}/%{stdlib64}/libttf.la . cd - mkdir -p usr/linux/%{stdlib64} cd usr/linux/%{stdlib64} ln -sf ../%{liblink}%{prefix}/%{stdlib64}/libttf.a . %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644, root, root, 755) %doc docs/license.txt docs/FTL.txt docs/GPL.txt docs/PATENTS %ifarch ia64 || %ifos linux %{prefix}/lib/libfreetype.so* /usr/%{stdlib}/libfreetype.so* %else %{prefix}/lib/libfreetype.a /usr/linux/%{stdlib}/libfreetype.a %endif %ifarch ia64 %{prefix}/%{stdlib64}/lib* /usr/%{stdlib64}/lib* /usr/linux/%{stdlib64}/lib* %endif %files devel %defattr(644, root, root, 755) %doc README* docs/ %{prefix}/include/* %attr(0755, root, system) %{prefix}/bin/* /usr/include/freetype2 /usr/include/ft2build.h /usr/linux/bin/* %{prefix}/lib/libfreetype.la /usr/%{stdlib}/libfreetype.la %changelog * Wed Sep 18 2002 David Clissold - Update to 2.0.9 * Mon Sep 17 2001 David Clissold - Update to 2.0.4 * Wed Apr 11 2001 David Clissold - Link into /usr/linux/lib instead of /usr/lib * Thu Mar 22 2001 Marc Stephenson - Build both 32- and 64-bit libraries * Sun Mar 18 2001 Marc Stephenson - Use libtool 1.3.5a via libtoolize * Fri Mar 09 2001 Marc Stephenson - Rebuild against new shared objects - Use libtool 1.3.5a - Insert Bull freeware compatibility member * Thu Feb 15 2001 David Clissold - Strip the executable binaries * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Wed Jun 16 1999 Werner Lemberg - Updated to version 1.3. * Sun Oct 25 1998 Pavel Kankovsky - libttf.so version number updated again. - Default localedir based on prefix. - File list adjustments (howto/). * Sun Oct 16 1998 Pavel Kankovsky - Source filename fixed. - HOWTO removed. - libttf.so version number updated. * Tue Sep 29 1998 Robert Wilhelm - Updated to version 1.2. * Thu Sep 9 1998 Pavel Kankovsky - Simplified (and fixed) file list. * Tue Jul 14 1998 Alexander Zimmermann - Added missing files. - Added %defattr tags. * Thu Jun 18 1998 Robert Wilhelm - Added lots of attr(-,root,root). * Wed May 27 1998 Pavel Kankovsky - Changed group attr of freetype and freetype-devel package. - Fixed misc glitches. * Sun May 24 1998 Pavel Kankovsky - Split the package into three parts (runtime library, development tools, and demo programs). - Added missing files (headers, NLS). - Added ldconfing upon (de)installation. * Thu Mar 12 1998 Bruno Lopes F. Cabral - NLS for Portuguese language is missing, sorry (may be in a near future) (please note the workaround using --with-locale-dir and gnulocaledir. NLS Makefile needs a bit more rework but again I'll not patch it here).