- 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.
This commit is contained in:
besfahbo 2007-01-11 21:41:12 +00:00
parent ac684e2d56
commit 62a1df668e

View File

@ -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)
@ -190,6 +217,11 @@ esac
%changelog
* Thu Jan 11 2007 Behdad Esfahbod <besfahbo@redhat.com> - 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 <besfahbo@redhat.com> - 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.