!14 [sync] PR-13: fix rpath problem in some binaries

From: @openeuler-sync-bot 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
This commit is contained in:
openeuler-ci-bot 2022-07-30 07:09:32 +00:00 committed by Gitee
commit 02afdf5f10
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@ Name: sblim-sfcb
Summary: Small Footprint CIM Broker (SFCB)
URL: http://sblim.sourceforge.net/wiki/index.php/Sfcb
Version: 1.4.9
Release: 17
Release: 18
License: EPL-1.0
Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
@ -21,7 +21,7 @@ Provides: cim-server = 0
Requires: cim-schema sblim-sfcCommon
BuildRequires: libcurl-devel perl-generators zlib-devel openssl-devel
BuildRequires: pam-devel cim-schema bison flex sblim-cmpi-devel
BuildRequires: systemd sblim-sfcCommon-devel openslp-devel gcc
BuildRequires: systemd sblim-sfcCommon-devel openslp-devel gcc chrpath
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
@ -68,6 +68,13 @@ echo "%{_libdir}/sfcb/*.so" >> _pkg_list
cat _pkg_list
chrpath -d %{buildroot}%{_bindir}/{sfcbinst2mof,sfcbtrace,sfcbmof}
chrpath -d %{buildroot}%{_sbindir}/sfcbd
chrpath -d %{buildroot}%{_libdir}/sfcb/*
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/sfcb" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%pre
%{_bindir}/getent group sfcb >/dev/null || %{_sbindir}/groupadd -r sfcb
%{_sbindir}/usermod -a -G sfcb root > /dev/null 2>&1 || :
@ -89,8 +96,12 @@ if [ $1 -eq 0 ]; then
fi;
%files -f _pkg_list
%config(noreplace) /etc/ld.so.conf.d/*
%changelog
* Wed Sep 08 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.4.9-18
- fix rpath problem in some binaries
* Fri Aug 27 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.9-17
- fix undefined symbol