Remove rpath compilation option
This commit is contained in:
parent
fdf07c4963
commit
8ef5f6aebf
15
man-db.spec
15
man-db.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: man-db
|
Name: man-db
|
||||||
Version: 2.9.3
|
Version: 2.9.3
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Online database for using man pages
|
Summary: Online database for using man pages
|
||||||
License: GPLv2+ and GPLv3+
|
License: GPLv2+ and GPLv3+
|
||||||
URL: http://www.nongnu.org/man-db/
|
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}
|
||||||
%find_lang %{name}-gnulib
|
%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
|
%pre
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -69,6 +76,7 @@ install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/man-db-cache-update.ser
|
|||||||
%post
|
%post
|
||||||
# clear the old cache
|
# clear the old cache
|
||||||
%{__rm} -rf %{cache}/* || :
|
%{__rm} -rf %{cache}/* || :
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
# update cache
|
# update cache
|
||||||
%transfiletriggerin -- %{_mandir}
|
%transfiletriggerin -- %{_mandir}
|
||||||
@ -83,6 +91,7 @@ if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang -f %{name}-gnulib.lang
|
%files -f %{name}.lang -f %{name}-gnulib.lang
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
@ -92,6 +101,7 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
||||||
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
||||||
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
|
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
%{_unitdir}/man-db-cache-update.service
|
%{_unitdir}/man-db-cache-update.service
|
||||||
%{_sbindir}/accessdb
|
%{_sbindir}/accessdb
|
||||||
%{_bindir}/man
|
%{_bindir}/man
|
||||||
@ -144,6 +154,9 @@ fi
|
|||||||
%exclude %{_libdir}/man-db/*.la
|
%exclude %{_libdir}/man-db/*.la
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 17 2021 Jianmin <jianmin@iscas.ac.cn> - 2.9.3-3
|
||||||
- Type:NA
|
- Type:NA
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user