%define glib2_base_version 2.2.0 %define glib2_version %{glib2_base_version}-1 %define pkgconfig_version 0.12 %define freetype_version 2.1.3-3 %define fontconfig_version 2.0 %define xft_version 1.9.1.020626.1517-1 Summary: System for layout and rendering of internationalized text. Name: pango Version: 1.2.5 Release: 4 License: LGPL Group: System Environment/Libraries Source: ftp://ftp.gtk.org/pub/gtk/v2.1/pango-%{version}.tar.bz2 URL: http://www.pango.org BuildRoot: %{_tmppath}/pango-%{PACKAGE_VERSION}-root # We need to prereq this so we can run pango-querymodules Prereq: glib2 >= %{glib2_version} Requires: freetype >= %{freetype_version} BuildRequires: libtool >= 1.4.2-10 BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pkgconfig >= %{pkgconfig_version} BuildRequires: freetype-devel >= %{freetype_version} BuildRequires: fontconfig-devel >= %{fontconfig_version} BuildRequires: XFree86-devel >= 4.2.99 Obsoletes: pango-gtkbeta, fribidi-gtkbeta Patch1: pango-slighthint.patch Patch3: pango-1.0.99.020606-xfonts.patch # http://bugzilla.gnome.org/show_bug.cgi?id=121488 Patch4: pango-1.2.5-thai.patch # Look for pango.modules in an arch-specific directory Patch5: pango-1.2.5-lib64.patch %description Pango is a system for layout and rendering of internationalized text. %package devel Summary: System for layout and rendering of internationalized text. Group: Development/Libraries Requires: pango = %{PACKAGE_VERSION} Requires: XFree86-devel >= 4.2.99 Requires: glib2-devel >= %{glib2_version} Requires: freetype-devel >= %{freetype_version} Requires: fontconfig-devel >= %{fontconfig_version} Obsoletes: fribidi-gtkbeta-devel, pango-gtkbeta-devel %description devel The pango-devel package includes the static libraries, header files, and developer docs for the pango package. Install pango-devel if you want to develop programs which will use pango. %prep %setup -q -n pango-%{version} %patch1 -p1 -b .slighthint %patch3 -p1 -b .xfonts %patch4 -p1 -b .thai %patch5 -p1 -b .lib64 %build ## FIXME remove this hack when X is fixed export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/X11R6/lib64/pkgconfig if ! pkg-config --exists xft ; then echo "No xft.pc!" exit 1 fi %configure --without-qt --disable-gtk-doc make %install rm -rf $RPM_BUILD_ROOT %makeinstall # Remove files that should not be packaged rm $RPM_BUILD_ROOT%{_libdir}/*.la PANGOXFT_SO=$RPM_BUILD_ROOT%{_libdir}/libpangoxft-1.0.so if ! test -e $PANGOXFT_SO; then echo "$PANGOXFT_SO not found; did not build with Xft support?" ls $RPM_BUILD_ROOT%{_libdir} exit 1 fi # autoconf changes linux to linux-gnu case "%{_host}" in *linux) host="%{_host}-gnu" ;; *) host="%{_host}" ;; esac # We need to have separate 32-bit and 64-bit pango-querymodules binaries # for places where we have two copies of the Pango libraries installed. # (we might have x86_64 and i686 packages on the same system, for example.) case "$host" in alpha*|ia64*|ppc64*|s390x*|x86_64*) mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-64 ;; *) mv $RPM_BUILD_ROOT%{_bindir}/pango-querymodules $RPM_BUILD_ROOT%{_bindir}/pango-querymodules-32 ;; esac rm $RPM_BUILD_ROOT%{_sysconfdir}/pango/pango.modules mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pango/$host touch $RPM_BUILD_ROOT%{_sysconfdir}/pango/$host/pango.modules # # We need the substitution of $host so we use an external # file list # echo %dir %{_sysconfdir}/pango/$host > modules.files echo %ghost %{_sysconfdir}/pango/$host/pango.modules >> modules.files %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig # autoconf changes linux to linux-gnu case "%{_host}" in *linux) host="%{_host}-gnu" ;; *) host="%{_host}" ;; esac case "$host" in alpha*|ia64*|ppc64*|s390x*|x86_64*) %{_bindir}/pango-querymodules-64 > %{_sysconfdir}/pango/$host/pango.modules ;; *) %{_bindir}/pango-querymodules-32 > %{_sysconfdir}/pango/$host/pango.modules ;; esac %postun -p /sbin/ldconfig %files -f modules.files %defattr(-, root, root) %doc README AUTHORS COPYING ChangeLog TODO %doc examples/HELLO.utf8 %{_libdir}/libpango*-*.so.* %{_bindir}/pango-querymodules* %{_libdir}/pango %dir %{_sysconfdir}/pango %config %{_sysconfdir}/pango/pangox.aliases %files devel %defattr(-, root, root) %{_libdir}/libpango*.so %{_includedir}/* %{_libdir}/pkgconfig/* %{_datadir}/gtk-doc/* %changelog * Thu Dec 18 2003 Owen Taylor 1.2.5-4 - Deal with autoconf changing -linux to -linux-gnu (#112387) * Mon Dec 8 2003 Owen Taylor 1.2.5-3.0 - Package pango-querymodules as pango-querymodules-{32,64}; look for pango.modules in an architecture-specific directory. (Fixes #111511, Justin M. Forbes) * Mon Sep 8 2003 Owen Taylor 1.2.5-2.0 - Fix problem with corrupt Thai shaper * Wed Aug 27 2003 Owen Taylor 1.2.5-1.1 - Version 1.2.5 * Tue Aug 26 2003 Owen Taylor 1.2.4-1.1 - Version 1.2.4 * Tue Jul 8 2003 Owen Taylor 1.2.3-2.0 - Bump for rebuild * Mon Jun 9 2003 Owen Taylor - Version 1.2.3 * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon Jun 2 2003 Owen Taylor - Use the right version-1.2.2 tarball * Thu May 29 2003 Owen Taylor - Version 1.2.2 * Thu Feb 13 2003 Tim Powers 1.2.1-3 - remove deps on Xft and Xft-devel since XFree86 no longer has the virtual prvodes. Instead, require XFree86-devel > 4.2.99 * Tue Feb 11 2003 Owen Taylor - Fix problem where language tag wasn't causing relookup of font (#84034) * Sun Feb 2 2003 Owen Taylor - Version 1.2.1 * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 14 2003 Owen Taylor - Patch from CVS to synthesize GDEF tables for fonts without them, like the Kacst fonts in fonts-arabic * Thu Jan 9 2003 Owen Taylor - Make requires freetype, not freetype-devel (#81423) * Tue Jan 7 2003 Owen Taylor - Update slighthint patch for freetype-2.1.3 (#81125) * Fri Dec 20 2002 Owen Taylor - Version 1.2.0 * Mon Dec 16 2002 Owen Taylor - Version 1.1.6 * Wed Dec 11 2002 Owen Taylor - Version 1.1.5 * Tue Dec 3 2002 Owen Taylor - Version 1.1.4 * Thu Nov 21 2002 Havoc Pennington - change PKG_CONFIG_PATH hack to also search /usr/X11R6/lib64/pkgconfig * Wed Nov 20 2002 Havoc Pennington - explicitly require pangoxft to be built, so we catch situations such as xft.pc moving to /usr/X11R6 - also add /usr/X11R6/lib/pkgconfig to PKG_CONFIG_PATH as a temporary hack * Thu Nov 7 2002 Havoc Pennington - 1.1.3 * Thu Oct 31 2002 Owen Taylor 1.1.1-5 - Require the necessary freetype version, don't just BuildRequires it (#74744) * Thu Oct 31 2002 Owen Taylor 1.1.1-4 - Own /etc/pango (#73962, Enrico Scholz) - Remove .la files from the build root * Mon Oct 7 2002 Havoc Pennington - require glib 2.0.6-3, try rebuild on more arches * Wed Aug 21 2002 Owen Taylor - Version 1.1.1 (main change, fixes font selection for FT2 backend, as in gdmgreeter) * Thu Aug 15 2002 Owen Taylor - Fix linked list manipulation problem that was causing hang for anaconda - Fix warning from loading mini-fonts with context == NULL * Wed Aug 14 2002 Owen Taylor - Fix major memory leak in the last patch * Tue Aug 13 2002 Owen Taylor - Actually use language tags at the rendering layer (should fix #68211) * Mon Jul 15 2002 Owen Taylor - Remove fixed-ltmain.sh, relibtoolize; to fix relink problems without - Fix bug causing hex boxes to be misrendered leaving RPATH (#66005) - For FT2 backend, supply FT_LOAD_NO_BITMAP to avoid problems with fonts with embedded bitmaps (#67851) * Mon Jul 8 2002 Owen Taylor - Make basic-x shaper work with our big-5 fonts * Wed Jul 3 2002 Owen Taylor - New upstream tarball with hooks for change-on-the fly font rendering * Tue Jun 25 2002 Owen Taylor - Up FreeType version to deal with FreeType-2.0.x / 2.1.x \ ABI changes for pango's OpenType code. * Mon Jun 24 2002 Owen Taylor - Add some Korean aliases that the installer wants * Fri Jun 21 2002 Tim Powers - automated rebuild * Sat Jun 8 2002 Havoc Pennington - devel package requires fontconfig/Xft devel packages * Fri Jun 07 2002 Havoc Pennington - rebuild in different environment * Thu Jun 6 2002 Owen Taylor - Snapshot with Xft2/fontconfig support * Wed May 29 2002 Owen Taylor - Version 1.0.2 - Patch for charmaps problem * Sun May 26 2002 Tim Powers - automated rebuild * Wed May 22 2002 Havoc Pennington - rebuild in different environment * Wed May 22 2002 Havoc Pennington - add patch to adjust to newer version of freetype * Wed Apr 3 2002 Alex Larsson - Update to version 1.0.1, remove patch * Tue Mar 19 2002 Owen Taylor - Patch from CVS for big speedup with FreeType-2.0.9 * Mon Mar 11 2002 Owen Taylor - Rebuild * Fri Mar 8 2002 Owen Taylor - Version 1.0.0 * Mon Feb 25 2002 Alex Larsson - Update to 0.26 * Thu Feb 21 2002 Alex Larsson - Bump for rebuild * Mon Feb 18 2002 Alex Larsson - Update to 0.25 * Fri Feb 15 2002 Havoc Pennington - add horrible buildrequires hack * Thu Feb 14 2002 Havoc Pennington - 0.24.90 cvs snap * Tue Jan 29 2002 Owen Taylor - Version 0.24 * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Jan 2 2002 Havoc Pennington - new snap 0.23.90 * Sun Nov 25 2001 Havoc Pennington - rebuild with 64-bit-fixed glib * Sun Nov 25 2001 Havoc Pennington - Version 0.22 - add explicit check for required glib2 version before we do the build, so we don't end up with bad RPMs on --nodeps builds - PreReq the glib2_version version, instead of 1.3.8 hardcoded that no one had updated recently * Thu Oct 25 2001 Owen Taylor - Version 0.21 * Thu Oct 4 2001 Havoc Pennington - cvs snap - new cvs snap with a bugfix * Thu Sep 27 2001 Havoc Pennington - sync with Owen's changes, fix up dependency versions * Wed Sep 19 2001 Havoc Pennington - 0.19 * Mon Sep 10 2001 Havoc Pennington - build CVS snap * Wed Sep 05 2001 Havoc Pennington - no relinking junk * Tue Sep 4 2001 root - Version 0.18 * Fri Jul 20 2001 Owen Taylor - Configure --disable-gtk-doc - BuildRequires freetype-devel, XFree86-devel * Tue Jun 12 2001 Havoc Pennington - 0.17 - libtool hackarounds * Fri May 04 2001 Owen Taylor - 0.16, rename back to pango from pango-gtkbeta * Fri Feb 16 2001 Owen Taylor - Obsolete fribidi-gtkbeta * Mon Dec 11 2000 Havoc Pennington - Remove that patch I just put in * Mon Dec 11 2000 Havoc Pennington - Patch pangox.pc.in to include -Iincludedir * Fri Nov 17 2000 Owen Taylor - final 0.13 * Tue Nov 14 2000 Owen Taylor - New 0.13 tarball * Mon Nov 13 2000 Owen Taylor - 0.13pre1 * Sun Aug 13 2000 Owen Taylor - Rename to 0.12b to avoid versioning problems * Thu Aug 10 2000 Havoc Pennington - Move to a CVS snapshot * Fri Jul 07 2000 Owen Taylor - Move back to /usr - Version 0.12 * Mon Jun 19 2000 Owen Taylor - Add missing %%defattr * Thu Jun 8 2000 Owen Taylor - Rebuild with a prefix of /opt/gtk-beta * Wed May 31 2000 Owen Taylor - version 0.11 - add --without-qt * Wed Apr 26 2000 Owen Taylor - Make the devel package require *-gtkbeta-* not the normal packages. * Tue Apr 25 2000 Owen Taylor - GTK+ snapshot version installing in /opt/gtk-beta * Fri Feb 11 2000 Owen Taylor - Created spec file