Hi,
I updated the pango package for hack{glib,gtk+}.
Here are my spec-file and the build compatibility patches.
--
Goetz Waschk <> student of computer science <> university Rostock
http://www.informatik.uni-rostock.de/~waschk/waschk.asc for PGP key
--> Logout Fascism! <--
%define version 0.12
%define release 1mdk
Summary: System for layout and rendering of internationalized text
Name: pango
Version: %{version}
Release: %{release}
Copyright: LGPL
Group: System/Internationalization
Source: http://www.pango.org/download/pango-%{version}.tar.bz2
URL: http://www.pango.org/
# links to qt version 2 instead of version 1
Patch: pango-0.12-qt-compat.patch.bz2
# removes the glib version 1.2.x headers from cflags
Patch1: pango-0.12-glib2.patch.bz2
BuildRoot: /var/tmp/pango-%{PACKAGE_VERSION}-root
Obsoletes: gscript
Requires: hackglib
%description
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
It is the next step on Gtk+ internationalization.
%package devel
Summary: System for layout and rendering of internationalized text
Group: System/Libraries
Requires: pango = %{PACKAGE_VERSION}
Requires: libunicode-devel
Requires: fribidi-devel
Requires: XFree86-devel
Requires: hackglib-devel
%description devel
The pango-devel package includes the static libraries and header files
for the pango package.
Install pango-devel if you want to develop programs which will use
pango.
%prep
%setup -q
%patch
%patch1
%build
GLIB_CONFIG=/usr/bin/glib-config-2.0 CFLAGS="$RPM_OPT_FLAGS" ./configure
--prefix=%{_prefix} --sysconfdir=/etc --localstatedir=/var
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/var/lib/pango
( cd $RPM_BUILD_ROOT%{_prefix}/lib/pango/modules/
LD_PRELOAD=$RPM_BUILD_ROOT%{_prefix}/lib/libpango.so \
$RPM_BUILD_ROOT%{_prefix}/bin/pango-querymodules *.so | \
sed "s|$RPM_BUILD_ROOT||" > $RPM_BUILD_ROOT/var/lib/pango/pango.modules
)
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%{_prefix}/bin/pango-querymodules %{_prefix}/lib/pango/modules/*.so >
/var/lib/pango/pango.modules
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README AUTHORS COPYING ChangeLog TODO
%doc examples/HELLO.utf8
%{_prefix}/lib/libpango*-*.so
%{_prefix}/bin/pango-querymodules
%{_prefix}/bin/pango-viewer
%dir %{_prefix}/lib/pango
%dir %{_prefix}/lib/pango/modules
%{_prefix}/lib/pango/modules/*.so
%dir %{_sysconfdir}/pango
%config %{_sysconfdir}/pango/pangox.aliases
%dir /var/lib/pango
/var/lib/pango/pango.modules
%files devel
%defattr(-, root, root)
%{_prefix}/bin/pango-config
%{_prefix}/lib/libpango.so
%{_prefix}/lib/libpangox.so
%{_prefix}/lib/libpango*.a
#%{_prefix}/lib/pango/modules/*.a
%{_prefix}/include/*
%changelog
* Mon Jul 17 2000 G�tz Waschk <[EMAIL PROTECTED]> 0.12-1mdk
- updated to 0.12
- fix for qt2 vs qt1 linker conflict
- fix for glib1 vs glib2 header conflict
- pango requires glib2.0 (hackglib) for now
* Tue Apr 18 2000 Pixel <[EMAIL PROTECTED]> 0.9-2mdk
- fix % post (was writing to %/var/lib/pango instead of /var/lib/pango)
* Sat Apr 08 2000 Pablo Saratxaga <[EMAIL PROTECTED]> 0.9-1mdk
- updated to 0.9
- corrected conflicts in %files section
- added orphaned directories & files
* Fri Mar 31 2000 John Buswell <[EMAIL PROTECTED]> 0.8-1mdk
- Initial Mandrake Release
- spec-helper
- fixed groups
* Fri Feb 11 2000 Owen Taylor <[EMAIL PROTECTED]>
- Created spec file
--- pango-config.in~ Thu Jun 8 20:47:57 2000
+++ pango-config.in Sat Jul 15 17:58:27 2000
@@ -83,7 +83,7 @@
fi
if test "$echo_cflags" = "yes"; then
cflags="@UNICODE_CFLAGS@ @GLIB_CFLAGS@"
- echo -I@libdir@/glib/include $includes $cflags
+ echo $includes $cflags
fi
if test "$echo_libs" = "yes"; then
libs="-lpango -lfribidi @UNICODE_LIBS@ @GLIB_LIBS@"
--- examples/Makefile.in~ Thu Jul 6 22:01:14 2000
+++ examples/Makefile.in Sat Jul 15 17:36:24 2000
@@ -88,7 +88,7 @@
###################################################
@BUILD_QT_TEST_TRUE@QT_INCLUDES = -I $(QTDIR)/include
-@BUILD_QT_TEST_TRUE@QT_LIBS = -L $(QTDIR)/lib -lqt
+@BUILD_QT_TEST_TRUE@QT_LIBS = $(QTDIR)/lib/libqt.so.2
@BUILD_QT_TEST_TRUE@MOC = $(QTDIR)/bin/moc
@BUILD_QT_TEST_TRUE@INCLUDES = -I$(top_srcdir) $(QT_INCLUDES) $(GLIB_CFLAGS)