Hello community, here is the log from the commit of package rarian for openSUSE:Factory checked in at Tue Dec 8 12:06:41 CET 2009. -------- --- GNOME/rarian/rarian.changes 2009-10-02 15:04:15.000000000 +0200 +++ /mounts/work_src_done/STABLE/rarian/rarian.changes 2009-12-07 13:47:02.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Dec 7 13:41:24 CET 2009 - vuntz@opensuse.org + +- Rework the update-alternatives part to be correctly handle + package upgrades. Note that we need a %posttrans to work around + bugs in previously installed packages. + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rarian.spec ++++++ --- /var/tmp/diff_new_pack.pua1uM/_old 2009-12-08 12:05:47.000000000 +0100 +++ /var/tmp/diff_new_pack.pua1uM/_new 2009-12-08 12:05:47.000000000 +0100 @@ -28,7 +28,7 @@ BuildRequires: sgml-skel Summary: Rarian is designed to be a replacement for scrollkeeper Version: 0.8.1 -Release: 7 +Release: 8 Source0: %{name}-%{version}.tar.bz2 Patch1: rarian-0.5.6-reg-parse-bugs.patch Patch2: rarian-0.7.1-return.patch @@ -45,7 +45,7 @@ Patch8: rarian-no-info.patch # PATCH-FIX-UPSTREAM rarian-quiet.patch fdo24276 vuntz@opensuse.org -- Make rarian a bit quieter Patch9: rarian-quiet.patch -License: GPL v2 or later ; LGPL v2.1 or later +License: GPLv2+ ; LGPLv2.1+ Group: Development/Libraries/C and C++ BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: ftp://ftp.gnome.org/pub/gnome/sources/rarian/ @@ -58,7 +58,7 @@ far as my testing indicates) %package scrollkeeper-compat -License: GPL v2 or later ; LGPL v2.1 or later +License: GPLv2+ ; LGPLv2.1+ Requires: %{name} = %{version} Summary: Rarian is designed to be a replacement for scrollkeeper Group: Development/Libraries/C and C++ @@ -77,7 +77,7 @@ far as my testing indicates) %package devel -License: GPL v2 only +License: GPLv2 Requires: %{name} = %{version} Summary: Development files for rarian Group: Development/Libraries/C and C++ @@ -122,6 +122,8 @@ /sbin/ldconfig %post scrollkeeper-compat +# If the scrollkeeper-config group is in automatic mode, then this +# will also switch all symlinks automatically update-alternatives \ --install %{_bindir}/scrollkeeper-config scrollkeeper-config %{_bindir}/rarian-sk-config 10 \ --slave %{_bindir}/scrollkeeper-extract scrollkeeper-extract %{_bindir}/rarian-sk-extract \ @@ -139,7 +141,31 @@ --slave %{_bindir}/scrollkeeper-update scrollkeeper-update %{_bindir}/rarian-sk-update %postun scrollkeeper-compat -update-alternatives --remove scrollkeeper-config %{_bindir}/rarian-sk-config +# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed +if [ ! -f %{_bindir}/rarian-sk-config ]; then + update-alternatives --remove scrollkeeper-config %{_bindir}/rarian-sk-config +fi + +%posttrans +# Workaround old bug in 11.1/11.2 packages that always removed the symlinks in +# %postun. Can be removed during 12.2 development. +if [ ! -f %{_bindir}/scrollkeeper-config -a -f %{_bindir}/rarian-sk-config ]; then + update-alternatives \ + --install %{_bindir}/scrollkeeper-config scrollkeeper-config %{_bindir}/rarian-sk-config 10 \ + --slave %{_bindir}/scrollkeeper-extract scrollkeeper-extract %{_bindir}/rarian-sk-extract \ + --slave %{_bindir}/scrollkeeper-gen-seriesid scrollkeeper-gen-seriesid %{_bindir}/rarian-sk-gen-uuid \ + --slave %{_bindir}/scrollkeeper-get-cl scrollkeeper-get-cl %{_bindir}/rarian-sk-get-cl \ + --slave %{_bindir}/scrollkeeper-get-content-list scrollkeeper-get-content-list %{_bindir}/rarian-sk-get-content-list \ + --slave %{_bindir}/scrollkeeper-get-extended-content-list scrollkeeper-get-extended-content-list %{_bindir}/rarian-sk-get-extended-content-list \ + --slave %{_bindir}/scrollkeeper-get-index-from-docpath scrollkeeper-get-index-from-docpath %{_bindir}/rarian-sk-get-scripts \ + --slave %{_bindir}/scrollkeeper-get-toc-from-docpath scrollkeeper-get-toc-from-docpath %{_bindir}/rarian-sk-get-scripts \ + --slave %{_bindir}/scrollkeeper-get-toc-from-id scrollkeeper-get-toc-from-id %{_bindir}/rarian-sk-get-scripts \ + --slave %{_bindir}/scrollkeeper-install scrollkeeper-install %{_bindir}/rarian-sk-install \ + --slave %{_bindir}/scrollkeeper-preinstall scrollkeeper-preinstall %{_bindir}/rarian-sk-preinstall \ + --slave %{_bindir}/scrollkeeper-rebuilddb scrollkeeper-rebuilddb %{_bindir}/rarian-sk-rebuild \ + --slave %{_bindir}/scrollkeeper-uninstall scrollkeeper-uninstall %{_bindir}/rarian-sk-install \ + --slave %{_bindir}/scrollkeeper-update scrollkeeper-update %{_bindir}/rarian-sk-update +fi %files %defattr(-,root,root) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org