rpms/evolution/devel evolution.spec,1.356,1.357

Matthias Clasen mclasen at fedoraproject.org
Thu Oct 9 02:58:14 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/evolution/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1675

Modified Files:
	evolution.spec 
Log Message:
save space



Index: evolution.spec
===================================================================
RCS file: /cvs/extras/rpms/evolution/devel/evolution.spec,v
retrieving revision 1.356
retrieving revision 1.357
diff -u -r1.356 -r1.357
--- evolution.spec	25 Sep 2008 15:56:25 -0000	1.356
+++ evolution.spec	9 Oct 2008 02:57:43 -0000	1.357
@@ -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 @@
 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 @@
 %{_libexecdir}/evolution/%{evo_major}/evolution-addressbook-clean
 
 %changelog
+* Wed Oct  8 2008 Matthias Clasen  <mclasen at redhat.com> - 2.24.0-3
+- Save space in the -help package by not shipping multiple copies
+  of each screenshot
+
 * Thu Sep 25 2008 Matthew Barnes <mbarnes at redhat.com> - 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).




More information about the fedora-extras-commits mailing list