Save some space

This commit is contained in:
Matthias Clasen 2008-10-09 04:06:20 +00:00
parent b91f8eb3a7
commit 7f47259ea5

View File

@ -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 <mclasen@redhat.com> - 2.24.0-2
- Save some space
* Tue Sep 23 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
- Update to 2.24.0