!24 Remove rpath compilation option

From: @wcc_140409
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
This commit is contained in:
openeuler-ci-bot 2021-09-08 09:18:17 +00:00 committed by Gitee
commit ef390daac2

View File

@ -2,7 +2,7 @@
Name: man-db
Version: 2.9.3
Release: 3
Release: 4
Summary: Online database for using man pages
License: GPLv2+ and GPLv3+
URL: http://www.nongnu.org/man-db/
@ -62,6 +62,13 @@ install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/man-db-cache-update.ser
%find_lang %{name}
%find_lang %{name}-gnulib
chrpath -d %{buildroot}%{_sbindir}/accessdb
chrpath -d %{buildroot}%{_libexecdir}/%{name}/*
chrpath -d %{buildroot}%{_bindir}/{*man*,whatis,lexgrog}
chrpath -d %{buildroot}%{_libdir}/%{name}/libmandb-%{version}.so
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
echo "/usr/lib64/man-db" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%pre
%preun
@ -69,6 +76,7 @@ install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/man-db-cache-update.ser
%post
# clear the old cache
%{__rm} -rf %{cache}/* || :
/sbin/ldconfig
# update cache
%transfiletriggerin -- %{_mandir}
@ -83,6 +91,7 @@ if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
fi
%postun
/sbin/ldconfig
%files -f %{name}.lang -f %{name}-gnulib.lang
%{!?_licensedir:%global license %%doc}
@ -92,6 +101,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
%config(noreplace) /etc/ld.so.conf.d/*
%{_unitdir}/man-db-cache-update.service
%{_sbindir}/accessdb
%{_bindir}/man
@ -144,6 +154,9 @@ fi
%exclude %{_libdir}/man-db/*.la
%changelog
* Wed Sep 8 2021 wuchaochao <wuchaochao4@huawei.com> - 2.9.3-4
- Remove rpath compilation option
* Tue Aug 17 2021 Jianmin <jianmin@iscas.ac.cn> - 2.9.3-3
- Type:NA
- ID:NA