diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec index ff7dc50..1e43f09 100644 --- a/sblim-sfcb.spec +++ b/sblim-sfcb.spec @@ -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 - 1.4.9-18 +- fix rpath problem in some binaries + * Fri Aug 27 2021 zhangjiapeng - 1.4.9-17 - fix undefined symbol