diff --git a/zenity.spec b/zenity.spec index 8392d26..c988496 100644 --- a/zenity.spec +++ b/zenity.spec @@ -1,6 +1,6 @@ Name: zenity Version: 2.24.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Display dialog boxes from shell scripts Group: Applications/System License: LGPLv2+ @@ -50,6 +50,23 @@ make install DESTDIR=$RPM_BUILD_ROOT # we don't want a perl dependency just for this rm $RPM_BUILD_ROOT%{_bindir}/gdialog +# 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 zenity --with-gnome @@ -74,6 +91,9 @@ scrollkeeper-update -q || : %changelog +* Thu Oct 9 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