fix rpath problem in some binaries
(cherry picked from commit 551ee936946d7021bf4c2bcdd6822c352e97c6c7)
This commit is contained in:
parent
02faa254b7
commit
5d2cea9ba6
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user