save some space

This commit is contained in:
Matthias Clasen 2008-10-09 03:32:01 +00:00
parent 6c3d206af7
commit 504f959419

View File

@ -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 <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