remove rpath and runpath of exec files and libraries

This commit is contained in:
panxiaohe 2021-09-06 16:42:37 +08:00
parent 2b1d4dc4ab
commit 29b562c4ac

View File

@ -1,6 +1,6 @@
Name: mcpp Name: mcpp
Version: 2.7.2 Version: 2.7.2
Release: 27 Release: 28
Summary: A portable C preprocessor Summary: A portable C preprocessor
License: BSD License: BSD
URL: http://mcpp.sourceforge.net/ 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 Patch0: backport-mcpp.2.7.2.patch
Patch1: backport-CVE-2019-14274-05-gniibe-fix-13.patch Patch1: backport-CVE-2019-14274-05-gniibe-fix-13.patch
BuildRequires: gcc BuildRequires: gcc chrpath
Provides: libmcpp Provides: libmcpp
Obsoletes: 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}%{_docdir}/%{name}/%{name}-manual-jp*
rm -f %{buildroot}%{_libdir}/libmcpp*a 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 %check
make check make check
@ -65,6 +71,7 @@ make check
%{_docdir}/%{name}/LICENSE %{_docdir}/%{name}/LICENSE
%{_bindir}/%{name} %{_bindir}/%{name}
%{_libdir}/libmcpp.so.* %{_libdir}/libmcpp.so.*
%config(noreplace) /etc/ld.so.conf.d/*
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
@ -77,6 +84,9 @@ make check
%{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/%{name}.1.gz
%changelog %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 * Tue Jul 20 2021 fuanan <fuanan3@huawei.com> - 2.7.2-27
- Remove redundant gdb from BuildRequires - Remove redundant gdb from BuildRequires