Make tracker miners able to work inside flatpak as a private instance
This commit is contained in:
parent
9311a3e74b
commit
7632125dd4
@ -1,4 +1,8 @@
|
||||
%if 0%{?rhel}
|
||||
# This needs to be changed accordingly to the application for what tracker-miners is bundled,
|
||||
# e.g. for gnome-books, it would be org.gnome.Books
|
||||
%{!?domain_ontology: %global domain_ontology org.freedesktop}
|
||||
|
||||
%if 0%{?rhel} || 0%{?flatpak}
|
||||
%global with_enca 0
|
||||
%global with_libcue 0
|
||||
%global with_rss 0
|
||||
@ -20,7 +24,7 @@
|
||||
|
||||
Name: tracker-miners
|
||||
Version: 3.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Tracker miners and metadata extractors
|
||||
|
||||
# libtracker-extract and libtracker-miner libraries are LGPLv2+; the miners are a mix of GPLv2+ and LGPLv2+ code
|
||||
@ -56,8 +60,6 @@ BuildRequires: pkgconfig(libgsf-1)
|
||||
BuildRequires: pkgconfig(libgxps)
|
||||
BuildRequires: pkgconfig(libiptcdata)
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
BuildRequires: pkgconfig(libnm)
|
||||
BuildRequires: pkgconfig(libosinfo-1.0)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libseccomp)
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
@ -65,8 +67,12 @@ BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(poppler-glib)
|
||||
BuildRequires: pkgconfig(totem-plparser)
|
||||
BuildRequires: pkgconfig(tracker-sparql-3.0) >= %{tracker_version}
|
||||
BuildRequires: pkgconfig(upower-glib)
|
||||
BuildRequires: pkgconfig(vorbisfile)
|
||||
%if !0%{?flatpak}
|
||||
BuildRequires: pkgconfig(libosinfo-1.0)
|
||||
BuildRequires: pkgconfig(libnm)
|
||||
BuildRequires: pkgconfig(upower-glib)
|
||||
%endif
|
||||
|
||||
# renamed in F34
|
||||
Obsoletes: tracker3-miners < 3.1.0~rc-2
|
||||
@ -90,13 +96,22 @@ This package contains various miners and metadata extractors for tracker.
|
||||
%build
|
||||
%meson \
|
||||
-Dtracker_core=system \
|
||||
%if 0%{?flatpak}
|
||||
-Dwriteback=false \
|
||||
-Dsystemd_user_services=false \
|
||||
-Diso=disabled \
|
||||
-Dnetwork_manager=disabled \
|
||||
-Ddomain_prefix=%{domain_ontology}\
|
||||
%endif
|
||||
%if ! 0%{?with_libcue}
|
||||
-Dcue=disabled \
|
||||
%endif
|
||||
%if ! 0%{?with_rss}
|
||||
-Dminer_rss=false \
|
||||
%endif
|
||||
%if ! 0%{?flatpak}
|
||||
-Dsystemd_user_services_dir=%{_userunitdir} \
|
||||
%endif
|
||||
%{nil}
|
||||
|
||||
%meson_build
|
||||
@ -129,14 +144,23 @@ This package contains various miners and metadata extractors for tracker.
|
||||
%{_libexecdir}/tracker*
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.Tracker3.Miner.Files.Index.xml
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.Tracker3.Miner.xml
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.Tracker*
|
||||
%{_datadir}/dbus-1/services/%{domain_ontology}.Tracker*
|
||||
%{_datadir}/glib-2.0/schemas/*
|
||||
%{_datadir}/tracker3-miners/
|
||||
%{_mandir}/man1/tracker*.1*
|
||||
%if !0%{?flatpak}
|
||||
%{_userunitdir}/tracker*.service
|
||||
%endif
|
||||
%if 0%{?flatpak}
|
||||
%{_datadir}/tracker3/domain-ontologies/%{domain_ontology}.domain.rule
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 22 2021 Jan Beran <jaberan@redhat.com> - 3.2.0-2
|
||||
- If building for flatpak, adapt the behavior to work as a private
|
||||
instance inside the flatpak
|
||||
|
||||
* Sat Sep 18 2021 Kalev Lember <klember@redhat.com> - 3.2.0-1
|
||||
- Update to 3.2.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user