[mate-system-monitor] use hardlink to save space by linking identical images in translated docs

Wolfgang Ulbrich raveit65 at fedoraproject.org
Fri Jul 26 13:24:25 UTC 2013


commit 0ca08515d12cbf3280faaee5689972c380cd3c2f
Author: raveit65 <chat-to-me at raveit.de>
Date:   Fri Jul 26 15:24:06 2013 +0200

    use hardlink to save space by linking identical images in translated docs

 mate-system-monitor.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mate-system-monitor.spec b/mate-system-monitor.spec
index 57562e9..857dfb2 100644
--- a/mate-system-monitor.spec
+++ b/mate-system-monitor.spec
@@ -26,6 +26,7 @@ BuildRequires: libxml2-devel
 BuildRequires: mate-doc-utils
 BuildRequires: mate-common
 BuildRequires: dbus-glib-devel
+BuildRequires: hardlink
 
 Requires: mate-desktop
 
@@ -57,6 +58,9 @@ desktop-file-install --delete-original             \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications    \
   $RPM_BUILD_ROOT%{_datadir}/applications/mate-system-monitor.desktop
 
+# save space by linking identical images in translated docs
+hardlink -c -v $RPM_BUILD_ROOT%{_datadir}/mate/help/%{name}
+
 %find_lang %{name} --with-gnome
 
 %postun
@@ -83,6 +87,7 @@ fi
 - add upstream patch to fix rhbz (#888696)
 - add upstream patch to add manpages
 - clean up BRs
+- use hardlink to save space by linking identical images in translated docs
 
 * Wed Apr 03 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.0-1
 - Update to latest 1.6.0 stable release.


More information about the scm-commits mailing list