[telepathy-mission-control] Remove rpath and omit some unused direct shared library dependencies.

Debarshi Ray rishi at fedoraproject.org
Wed Jul 17 09:46:12 UTC 2013


commit 58b97df9c61c84178ee24176ac130a8f6c874df1
Author: Debarshi Ray <debarshir at gnome.org>
Date:   Wed Jul 17 11:42:05 2013 +0200

    Remove rpath and omit some unused direct shared library dependencies.

 telepathy-mission-control.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/telepathy-mission-control.spec b/telepathy-mission-control.spec
index 7b630fb..ea6f5ab 100644
--- a/telepathy-mission-control.spec
+++ b/telepathy-mission-control.spec
@@ -2,7 +2,7 @@
 
 Name:           telepathy-mission-control
 Version:        5.14.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Epoch:          1
 Summary:        Central control for Telepathy connection manager
 
@@ -49,6 +49,13 @@ files for developing applications that use %{name}.
 %build
 %configure --disable-static --enable-gnome-keyring --enable-gtk-doc --enable-mcd-plugins --with-connectivity=nm --enable-upower
 
+# Remove rpath.
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+# Omit unused direct shared library dependencies.
+sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
+
 make %{?_smp_mflags}
 
 
@@ -88,6 +95,9 @@ fi
 
 
 %changelog
+* Wed Jul 17 2013 Debarshi Ray <rishi at fedoraproject.org> - 1:5.14.1-3
+- Remove rpath and omit some unused direct shared library dependencies.
+
 * Fri Jun 20 2013 Matthias Clasen <mclasen at redhat.com> - 1:5.14.1-2
 - Install NEWS instead of ChangeLog
 


More information about the scm-commits mailing list