[fcitx] Fix building
Chen Lei
supercyper at fedoraproject.org
Fri Nov 19 13:45:07 UTC 2010
commit 3a0029b9aea90384ed25ab309cd88cb06cc1cd7c
Author: Chen Lei <supercyper at 163.com>
Date: Fri Nov 19 21:44:58 2010 +0800
Fix building
fcitx.spec | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/fcitx.spec b/fcitx.spec
index 69936c3..0fc2f22 100644
--- a/fcitx.spec
+++ b/fcitx.spec
@@ -10,7 +10,7 @@ URL: http://code.google.com/p/%{name}/
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}_all.tar.gz
Source1: xinput-%{name}
BuildRequires: pango-devel dbus-devel
-BuildRequires: wget intltool
+BuildRequires: wget intltool chrpath
Requires: %{name}-libs = %{version}-%{release}
Requires: imsettings
Requires(post): %{_sbindir}/alternatives
@@ -45,16 +45,16 @@ developing programs using FCITX libraries.
%configure --disable-static \
--enable-dbus \
--enable-tray
-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
-sed -i 's|PYFA has bug" ;exit 1|PYFA has bug"|' test/Makefile.in
make %{?_smp_mflags}
%install
make install INSTALL="install -p" DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la
-#fix doc path
+# remove rpath
+chrpath --delete %{buildroot}%{_bindir}/{*PYMB,mb2org,fcitx,readPYBase}
+
+# fix doc path
mkdir __doc
mv %{buildroot}%{_datadir}/%{name}/doc/* __doc
rm -rf %{buildroot}%{_datadir}/%{name}/doc
More information about the scm-commits
mailing list