Update tracker-miners.spec to successfully build on RHEL and ELN

The tracker-miners.spec already has a section in it to turn off certain dependencies not wanted in RHEL.
But since the %build section was changed to use meson, it no longer builds correctly on RHEL.
This change puts in the meson build statements to allow it to build on RHEL and ELN.
We are setting up a secondary Rawhide build called ELN. In this compose, %{fedora} is unset and %{rhel} is set to "one higher than the most recently-released RHEL major version".

Successful Fedora Rawhide scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=44463079
Successful Fedora ELN scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=44462968

Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2020-05-13 20:35:22 +00:00
parent 8874bcdd45
commit ceee44f5a0

View File

@ -89,6 +89,12 @@ This package contains various miners and metadata extractors for tracker.
# Disable the functional tests for now, they use python bytecodes.
%meson \
-Dfunctional_tests=false \
%if ! 0%{?with_libcue}
-Dcue=disabled \
%endif
%if ! 0%{?with_rss}
-Dminer_rss=false \
%endif
-Dsystemd_user_services=%{_userunitdir}
%meson_build