diff --git a/tracker3.spec b/tracker3.spec index db629a7..0eb1153 100644 --- a/tracker3.spec +++ b/tracker3.spec @@ -2,7 +2,7 @@ Name: tracker3 Version: 3.0.4 -Release: 1 +Release: 2 Summary: Desktop-neutral metadata database and search tool License: GPLv2+ @@ -14,7 +14,7 @@ BuildRequires: pkgconfig(dbus-1) dbus-daemon pkgconfig(icu-i18n) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(icu-uc) pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libsoup-2.4) pkgconfig(libxml-2.0) -BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(sqlite3) chrpath Requires: libtracker-sparql3%{?_isa} = %{version}-%{release} @@ -78,13 +78,21 @@ The %{name}-devel package contains the documentation for %{name}. %find_lang tracker3 +chrpath -d %{buildroot}%{_libdir}/libtracker-sparql-3.0.so.0.4.0 +chrpath -d %{buildroot}%{_libexecdir}/tracker-xdg-portal-3 +chrpath -d %{buildroot}%{_bindir}/tracker3 +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "%{_libdir}/tracker-3.0" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %post +/sbin/ldconfig %systemd_user_post %{systemd_units} %preun %systemd_user_preun %{systemd_units} %postun +/sbin/ldconfig %systemd_user_postun_with_restart %{systemd_units} %files -f tracker3.lang @@ -99,6 +107,7 @@ The %{name}-devel package contains the documentation for %{name}. %{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service %{_mandir}/man1/tracker*.1* %{_userunitdir}/tracker-xdg-portal-3.service +%config(noreplace) /etc/ld.so.conf.d/* %files -n libtracker-sparql3 %license COPYING COPYING.LGPL @@ -106,6 +115,7 @@ The %{name}-devel package contains the documentation for %{name}. %{_libdir}/girepository-1.0/Tracker-3.0.typelib %{_libdir}/libtracker-sparql-3.0.so.0* %{_datadir}/tracker3/ +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/tracker-3.0/ @@ -128,5 +138,8 @@ The %{name}-devel package contains the documentation for %{name}. %changelog +* Thu Sep 09 2021 wangyue - 3.0.4-2 +- fix rpath error + * Mon Jun 7 2021 weijin deng - 3.0.4-1 - Package tracker3 init with version 3.0.4