remove rpath and runpath of exec files and libraries
This commit is contained in:
parent
fa4a25a853
commit
091e5ac37e
17
mtdev.spec
17
mtdev.spec
@ -1,12 +1,12 @@
|
|||||||
Name: mtdev
|
Name: mtdev
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Multitouch Protocol Translation Library
|
Summary: Multitouch Protocol Translation Library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://bitmath.org/code/mtdev
|
URL: http://bitmath.org/code/mtdev
|
||||||
Source0: http://bitmath.org/code/%{name}/%{name}-%{version}.tar.bz2
|
Source0: http://bitmath.org/code/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
BuildRequires: gcc autoconf automake libtool
|
BuildRequires: gcc autoconf automake libtool chrpath
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The mtdev is a stand-alone library which transforms all variants of kernel MT
|
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
|
%make_install
|
||||||
rm -f %{buildroot}%{_libdir}/*a
|
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
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -47,8 +53,15 @@ rm -f %{buildroot}%{_libdir}/*a
|
|||||||
%{_includedir}/%{name}*.h
|
%{_includedir}/%{name}*.h
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 27 2020 liuchenguang<liuchenguang4@huawei.com> - 1.1.6-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user