add dynamic library search path with file

This commit is contained in:
weijin deng 2021-09-24 14:40:36 +08:00
parent 4b4eb31894
commit 1413f89d37
2 changed files with 9 additions and 4 deletions

1
tracker3-miners.conf Normal file
View File

@ -0,0 +1 @@
/usr/lib64/tracker-miners-3.0

View File

@ -2,12 +2,13 @@
Name: tracker3-miners
Version: 3.0.5
Release: 2
Release: 3
Summary: One of two parts of tracker mainly contains the indexer daemon and tools.
License: GPLv2+ and LGPLv2+
URL: https://wiki.gnome.org/Projects/Tracker
Source0: https://download.gnome.org/sources/tracker-miners/3.0/tracker-miners-%{version}.tar.xz
Source1: tracker3-miners.conf
BuildRequires: asciidoc libxslt coreutils glib2 glib2-devel gcc giflib-devel meson systemd
BuildRequires: pkgconfig(tracker-sparql-3.0) pkgconfig(tracker-testutils-3.0)
@ -55,8 +56,8 @@ chrpath -d %{buildroot}%{_libexecdir}/tracker-*
chrpath -d %{buildroot}%{_libexecdir}/tracker3/*
chrpath -d %{buildroot}%{_libdir}/tracker-miners-3.0/libtracker-miner-3.0.so
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "{_libdir}/tracker-miners-3.0" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%post
%systemd_user_post %{systemd_units}
@ -73,7 +74,7 @@ echo "{_libdir}/tracker-miners-3.0" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_a
%license COPYING*
%doc AUTHORS NEWS README.md
%config(noreplace) %{_sysconfdir}/xdg/autostart/tracker-miner-fs-3.desktop
%config(noreplace) /etc/ld.so.conf.d/*
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%{_libdir}/tracker-miners-3.0/
%{_libexecdir}/tracker*
%{_datadir}/dbus-1/interfaces/org.freedesktop.Tracker3.Miner*.xml
@ -85,6 +86,9 @@ echo "{_libdir}/tracker-miners-3.0" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_a
%changelog
* Thu Sep 23 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.0.5-3
- Add dynamic library search path with file
* Thu Sep 09 2021 sunguoshuai <sunguoshuai@huawei.com> - 3.0.5-2
- del rpath in some binaries