!13 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:15:08 +00:00 committed by Gitee
commit a293cfd455

View File

@ -1,6 +1,6 @@
Name: mcpp
Version: 2.7.2
Release: 27
Release: 28
Summary: A portable C preprocessor
License: BSD
URL: http://mcpp.sourceforge.net/
@ -8,7 +8,7 @@ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: backport-mcpp.2.7.2.patch
Patch1: backport-CVE-2019-14274-05-gniibe-fix-13.patch
BuildRequires: gcc
BuildRequires: gcc chrpath
Provides: libmcpp
Obsoletes: libmcpp
@ -53,6 +53,12 @@ This is the development package for mcpp.
rm -f %{buildroot}%{_docdir}/%{name}/%{name}-manual-jp*
rm -f %{buildroot}%{_libdir}/libmcpp*a
#remove rpath
chrpath -d %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%check
make check
@ -65,6 +71,7 @@ make check
%{_docdir}/%{name}/LICENSE
%{_bindir}/%{name}
%{_libdir}/libmcpp.so.*
%config(noreplace) /etc/ld.so.conf.d/*
%files devel
%defattr(-, root, root)
@ -77,6 +84,9 @@ make check
%{_mandir}/man1/%{name}.1.gz
%changelog
* Mon Sep 6 2021 panxiaohe <panxiaohe@huawei.com> - 2.7.2-28
- remove rpath and runpath of exec files and libraries
* Tue Jul 20 2021 fuanan <fuanan3@huawei.com> - 2.7.2-27
- Remove redundant gdb from BuildRequires