!4 remove rpath and runpath of exec files and libraries

From: @panxh_purple
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2021-09-07 01:14:28 +00:00 committed by Gitee
commit 14a52603e3

View File

@ -1,12 +1,12 @@
Name: mtdev
Version: 1.1.6
Release: 1
Release: 2
Summary: Multitouch Protocol Translation Library
License: MIT
URL: http://bitmath.org/code/mtdev
Source0: http://bitmath.org/code/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: gcc autoconf automake libtool
BuildRequires: gcc autoconf automake libtool chrpath
%description
The mtdev is a stand-alone library which transforms all variants of kernel MT
@ -33,6 +33,12 @@ This package is the development files for %{name}.
%make_install
rm -f %{buildroot}%{_libdir}/*a
#remove rpath
chrpath -d %{buildroot}%{_bindir}/%{name}-test
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%ldconfig_scriptlets
%files
@ -47,8 +53,15 @@ rm -f %{buildroot}%{_libdir}/*a
%{_includedir}/%{name}*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%config(noreplace) /etc/ld.so.conf.d/*
%changelog
* Mon Sep 6 2021 panxiaohe<panxiaohe@huawei.com> - 1.1.6-2
- Type:requirements
- ID:NA
- SUG:NA
- DESC:remove rpath and runpath of exec files and libraries
* Mon Jul 27 2020 liuchenguang<liuchenguang4@huawei.com> - 1.1.6-1
- Type:enhancement
- ID:NA