From 62a1df668ec68fe99503702ae2d9c9262623fde5 Mon Sep 17 00:00:00 2001 From: besfahbo Date: Jan 11 2007 21:41:12 +0000 Subject: - Undo the posttrans change. That's a no no. We now regenerate the module file in postun if there are any other pango versions left. This should take care of the problem in the future. --- diff --git a/pango.spec b/pango.spec index 68d0b05..520fb29 100644 --- a/pango.spec +++ b/pango.spec @@ -7,7 +7,7 @@ Summary: System for layout and rendering of internationalized text Name: pango -Version: 1.15.3 +Version: 1.15.4 Release: 3%{?dist} License: LGPL Group: System Environment/Libraries @@ -141,7 +141,6 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig -%posttrans umask 0022 # Deriving /etc/pango/$host location # @@ -165,7 +164,35 @@ case "$host" in ;; esac -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig + +if test $1 -gt 0; then + +umask 0022 +# Deriving /etc/pango/$host location +# +# autoconf changes linux to linux-gnu +case "%{_host}" in + *linux) host="%{_host}-gnu" + ;; + *) host="%{_host}" + ;; +esac + +# autoconf uses powerpc not ppc +host=`echo $host | sed "s/^ppc/powerpc/"` + +case "$host" in + alpha*|ia64*|powerpc64*|s390x*|x86_64*) + %{_bindir}/pango-querymodules-64 > %{_sysconfdir}/pango/$host/pango.modules || : + ;; + *) + %{_bindir}/pango-querymodules-32 > %{_sysconfdir}/pango/$host/pango.modules || : + ;; +esac + +fi %files -f modules.files %defattr(-, root, root) @@ -191,6 +218,11 @@ esac %changelog * Thu Jan 11 2007 Behdad Esfahbod - 1.15.3-3 +- Undo the posttrans change. That's a no no. We now regenerate the module + file in postun if there are any other pango versions left. This should + take care of the problem in the future. + +* Thu Jan 11 2007 Behdad Esfahbod - 1.15.3-3 - Move pango.modules generation to posttrans, to make sure modules available in an older version but not this one are removed. - Resolves #222217