diff --git a/mcpp.spec b/mcpp.spec index 3df088e36b0e7099de567bc25929ad6dd2978511..6a5d5048dc71205f374e2f4c2548a8964e4af5bd 100644 --- a/mcpp.spec +++ b/mcpp.spec @@ -1,6 +1,6 @@ Name: mcpp Version: 2.7.2 -Release: 29 +Release: 30 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,12 @@ make check %{_mandir}/man1/%{name}.1.gz %changelog +* Wed Jun 12 2024 fuanan - 2.7.2-30 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: remove rpath and runpath of exec files and libraries + * Tue Oct 25 2022 yanglongkang - 2.7.2-29 - Type: bugfix - ID: NA