save some space
This commit is contained in:
parent
fb33cea62d
commit
b7cd3be80c
24
eog.spec
24
eog.spec
@ -14,7 +14,7 @@
|
||||
Summary: Eye of GNOME image viewer
|
||||
Name: eog
|
||||
Version: 2.24.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
URL: http://www.gnome.org
|
||||
Source: http://download.gnome.org/sources/eog/2.24/%{name}-%{version}.tar.bz2
|
||||
# needs to be redone
|
||||
@ -82,7 +82,7 @@ echo "NoDisplay=true" >> data/eog.desktop.in.in
|
||||
|
||||
%build
|
||||
|
||||
CFLAGS="-O0 -g" %configure --disable-scrollkeeper
|
||||
%configure --disable-scrollkeeper
|
||||
make
|
||||
|
||||
%install
|
||||
@ -104,6 +104,23 @@ rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/eog/plugins
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -155,6 +172,9 @@ fi
|
||||
%{_datadir}/gtk-doc/html/eog
|
||||
|
||||
%changelog
|
||||
* Thu Oct 9 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-2
|
||||
- Save some space
|
||||
|
||||
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-1
|
||||
- Update to 2.24.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user