From ceee44f5a0cb8da93493752096fdf3e34fcf29e5 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 13 May 2020 20:35:22 +0000 Subject: [PATCH] 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 --- tracker-miners.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tracker-miners.spec b/tracker-miners.spec index 0067dcd..dc05480 100644 --- a/tracker-miners.spec +++ b/tracker-miners.spec @@ -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