[lash] - Fixing FTBFS caused by the swig upgrade 2.0.12 -> 3.0.0 (#1090111) - Fixing rpath removal (libtool
Jaromír Cápík
jcapik at fedoraproject.org
Wed Apr 23 13:10:29 UTC 2014
commit 1720baeee5ae5629af2c3ecf897410cd208218b7
Author: Jaromir Capik <jcapik at redhat.com>
Date: Wed Apr 23 15:09:51 2014 +0200
- Fixing FTBFS caused by the swig upgrade 2.0.12 -> 3.0.0 (#1090111)
- Fixing rpath removal (libtool regenerated during the make phase -> sed didn't work)
lash.spec | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/lash.spec b/lash.spec
index 692d127..6b03f61 100644
--- a/lash.spec
+++ b/lash.spec
@@ -3,7 +3,7 @@
Summary: LASH Audio Session Handler
Name: lash
Version: 0.5.4
-Release: 18%{?dist}
+Release: 19%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://www.nongnu.org/lash/
@@ -25,6 +25,7 @@ BuildRequires: python-devel
BuildRequires: readline-devel
BuildRequires: swig
BuildRequires: texi2html
+BuildRequires: chrpath
BuildRequires: libuuid-devel
@@ -62,16 +63,14 @@ LASH.
%patch2 -p1 -b .gcc47
# Hack to build against newer swig
-sed -i 's|1.3.31|2.0.0|g' configure*
+sed -i 's|1.3.31|3.0.0|g' configure*
%build
export am_cv_python_pythondir=%{python_sitearch}
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %configure --disable-static --disable-serv-inst
-# remove rpath from libtool
-sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
+
%install
mkdir -p %{buildroot}%{_sysconfdir}
make DESTDIR=%{buildroot} install
@@ -94,6 +93,15 @@ mv %{buildroot}%{_datadir}/lash/icons/lash_48px.png %{buildroot}%{_datadir}/icon
mv %{buildroot}%{_datadir}/lash/icons/lash_96px.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/lash.png
mv %{buildroot}%{_datadir}/lash/icons/lash.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lash.svg
+# Remove rpath
+chrpath --delete %{buildroot}%{_bindir}/lash_control
+chrpath --delete %{buildroot}%{_bindir}/lash_simple_client
+chrpath --delete %{buildroot}%{_bindir}/lashd
+chrpath --delete %{buildroot}%{_bindir}/lash_synth
+chrpath --delete %{buildroot}%{_bindir}/lash_panel
+chrpath --delete %{buildroot}%{_bindir}/lash_save_button
+chrpath --delete %{buildroot}%{python_sitearch}/_lash.so
+
# Move the dtd file to our Fedora Friendly place
mkdir -p %{buildroot}%{_datadir}/xml/lash/dtds
mv %{buildroot}%{_datadir}/lash/dtds/lash-project-1.0.dtd %{buildroot}%{_datadir}/xml/lash/dtds
@@ -153,6 +161,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{python_sitearch}/lash.py*
%changelog
+* Wed Apr 23 2014 Jaromir Capik <jcapik at redhat.com> - 0.5.4-19
+- Fixing FTBFS caused by the swig upgrade 2.0.12 -> 3.0.0 (#1090111)
+- Fixing rpath removal (libtool regenerated during the make phase -> sed didn't work)
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.4-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list