From 3d63548be0fb670890fc90ac0987434df4c50f74 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Oct 09 2008 02:57:43 +0000 Subject: save space --- diff --git a/evolution.spec b/evolution.spec index 8018955..8cac490 100644 --- a/evolution.spec +++ b/evolution.spec @@ -45,7 +45,7 @@ Name: evolution Version: 2.24.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 and GFDL Group: Applications/Productivity Summary: Mail and calendar client for GNOME @@ -338,6 +338,24 @@ for p in *.po; do done cd - +# Replace identical images in the help by links. +# This reduces the RPM size by several megabytes. +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 + + %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 @@ -678,6 +696,10 @@ rm -rf $RPM_BUILD_ROOT %{_libexecdir}/evolution/%{evo_major}/evolution-addressbook-clean %changelog +* Wed Oct 8 2008 Matthias Clasen - 2.24.0-3 +- Save space in the -help package by not shipping multiple copies + of each screenshot + * Thu Sep 25 2008 Matthew Barnes - 2.24.0-2.fc10 - Strip unneeded translations from .mo files (RH bug #463887). - Split Perl-based utilities into a "perl" subpackage (RH bug #462345).