%define _prefix /opt/freeware %define _defaultdocdir %{_prefix}/doc %define glib2_version 2.2.3 %define freetype2_version 2.1.4 %define pkgconfig_version 0.15.0 Summary: System for layout and rendering of internationalized text. Name: pango Version: 1.2.5 Release: 1 License: LGPL Group: System Environment/Libraries Source: ftp://ftp.gtk.org/pub/gtk/v2.1/pango-%{version}.tar.bz2 Patch0: pango-1.2.5-aix.patch Patch1: pango-1.2.5-autotools.patch URL: http://www.pango.org BuildRoot: %{_tmppath}/%{name}-%{version}-root # We need to prereq this so we can run pango-querymodules Prereq: glib2 >= %{glib2_version} Requires: freetype2 >= %{freetype2_version} # BuildRequires: libtool >= 1.4.2-10 BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pkgconfig >= %{pkgconfig_version} BuildRequires: freetype2-devel >= %{freetype2_version} # BuildRequires: fontconfig-devel >= %{fontconfig_version} # BuildRequires: Xft-devel >= %{xft_version} # BuildRequires: XFree86-devel >= 4.0.2 Obsoletes: pango-gtkbeta, fribidi-gtkbeta %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: glib2-devel >= %{glib2_version} Requires: freetype2-devel >= %{freetype2_version} #Requires: XFree86-devel #Requires: fontconfig-devel >= %{fontconfig_version} #Requires: Xft-devel >= %{xft_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. %post %{_prefix}/bin/pango-querymodules > %{_prefix}/etc/pango/pango.modules %prep %setup -q if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/pango-1.2.5-aix.patch $PATCH -p2 -s < %{_sourcedir}/pango-1.2.5-autotools.patch %build PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} --disable-gtk-doc LIBPATH=%{_libdir} PATH=%{_bindir}:$PATH make %install if test "%{buildroot}" != "/"; then rm -rf %{buildroot} fi mkdir -p %{buildroot} make DESTDIR=%{buildroot} install-strip # make links cd %{buildroot} for dir in bin lib include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done # Small hack to package the XftConfig file cp XftConfig %{buildroot}%{_sysconfdir}/XftConfig %files %defattr(-, root, system) %doc README AUTHORS COPYING ChangeLog TODO %doc examples/HELLO.utf8 %{_prefix}/bin/pango-querymodules /usr/bin/* %{_prefix}/lib/libpango*-*.a /usr/lib/libpango*-*.a %{_prefix}/lib/pango %config %{_sysconfdir}/pango/pangox.aliases %config %{_sysconfdir}/XftConfig # %ghost %{_sysconfdir}/pango/pango.modules %files devel %defattr(-, root, system) %{_prefix}/lib/libpango*.la %{_prefix}/include/* /usr/include/* %{_prefix}/lib/pkgconfig/* %{_prefix}/share/gtk-doc/*