diff --git a/gnome-system-monitor.spec b/gnome-system-monitor.spec index 42f7de0..f5fee38 100644 --- a/gnome-system-monitor.spec +++ b/gnome-system-monitor.spec @@ -13,7 +13,7 @@ Summary: Simple process monitor Name: gnome-system-monitor Version: 2.24.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://www.gnome.org/ @@ -85,6 +85,23 @@ desktop-file-install --vendor gnome --delete-original \ desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} rm -rf $RPM_BUILD_ROOT/var/scrollkeeper + +# save space by linking identical images in translated docs +helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name} +for f in $helpdir/C/figures/*.png; do + b="$(basename $f)" + for d in $helpdir/*; do + if [ -d "$d" -a "$d" != "$helpdir/C" ]; then + g="$d/figures/$b" + if [ -f "$g" ]; then + if cmp -s $f $g; then + rm "$g"; ln -s "../../C/figures/$b" "$g" + fi + fi + fi + done +done + %find_lang %{name} --with-gnome %clean @@ -126,6 +143,9 @@ scrollkeeper-update -q %changelog +* Wed Oct 8 2008 Matthias Clasen - 2.24.0-2 +- Save some space + * Tue Sep 23 2008 Matthias Clasen - 2.24.0-1 - Update to 2.24.0