From 8da4e5802a7be14be03f2648d50726be74349f75 Mon Sep 17 00:00:00 2001 From: wang_yue111 <648774160@qq.com> Date: Thu, 9 Sep 2021 21:07:45 +0800 Subject: [PATCH] fix rpath error --- qt-mobility.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/qt-mobility.spec b/qt-mobility.spec index 687c1dc..3281fec 100644 --- a/qt-mobility.spec +++ b/qt-mobility.spec @@ -1,6 +1,6 @@ Name: qt-mobility Version: 1.2.2 -Release: 2 +Release: 3 Summary: Framwork of qt mobility License: LGPLv2 with exceptions URL: https://code.qt.io/cgit/qt-mobility/qt-mobility.git @@ -11,7 +11,7 @@ Patch2: qt-mobility-opensource-src-1.2.2-sensors_ftbfs.patch BuildRequires: gcc-c++ perl proj-devel pkgconfig(xv) pkgconfig(QtGui) pkgconfig(QtOpenGL) BuildRequires: pkgconfig(QtDeclarative) pkgconfig(QtCore) pkgconfig(libudev) pkgconfig(libnm) -BuildRequires: pkgconfig(alsa) pkgconfig(blkid) pkgconfig(bluez) pkgconfig(libpulse) +BuildRequires: pkgconfig(alsa) pkgconfig(blkid) pkgconfig(bluez) pkgconfig(libpulse) chrpath Requires: qt4 Provides: qt4-mobility = %{version}-%{release} qt4-mobility%{?_isa} = %{version}-%{release} @@ -75,6 +75,13 @@ make install INSTALL_ROOT=%{buildroot} %ldconfig_scriptlets +cd $RPM_BUILD_ROOT/usr +file `find -type f` | grep -w ELF | awk -F":" '{print $1}' | for i in `xargs` +do +chrpath -d $i +done +cd - + %files -f %{name}.lang %license LICENSE.LGPL LGPL_EXCEPTION.txt %dir %{_qt4_importdir}/QtMobility/ @@ -98,5 +105,8 @@ make install INSTALL_ROOT=%{buildroot} %{_qt4_libdir}/pkgconfig/Qt*.pc %changelog +* Thu Sep 09 2021 wangyue - 1.2.2-2 +- fix rpath error + * Thu Dec 12 2019 openEuler Buildteam - 1.2.2-1 - Package init