-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.14)
PROJECT(context-job-scheduler)
INCLUDE(GNUInstallDirs)
ADD_SUBDIRECTORY(src/server-dummy)
ADD_SUBDIRECTORY(src/client)
ADD_SUBDIRECTORY(src/server)
-ADD_SUBDIRECTORY(src/agent)
+if(ALL_SPEC)
+ ADD_SUBDIRECTORY(src/agent)
+endif(ALL_SPEC)
BuildRequires: pkgconfig(capi-network-wifi-manager)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(notification)
+%if %{?mv_prj:!%{mv_prj}}%{?!mv_prj:1}
BuildRequires: pkgconfig(contacts-service2)
BuildRequires: pkgconfig(capi-geofence-manager)
+%endif
BuildRequires: pkgconfig(context-common-server)
BuildRequires: pkgconfig(context-common-client)
Requires: %{name}-dummy = %{version}-%{release}
Requires: context-service
+%if %{?mv_prj:!%{mv_prj}}%{?!mv_prj:1}
Requires: context-agent
+%endif
%global __provides_exclude ^.*-genuine\\.so.*$
%description
export CXXFLAGS+=" -fno-strict-aliasing -fno-unroll-loops -fsigned-char -fstrict-overflow"
export CXXFLAGS+=" -Wnon-virtual-dtor -std=c++0x"
-%cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version}
+%cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DALL_SPEC:BOOL=%{?!mv_prj:ON}
make %{?_smp_mflags}
%install
%manifest packaging/%{name}.manifest
%{_libdir}/lib%{name}-client-genuine.so.*
%{_libdir}/lib%{name}-server-genuine.so.*
-%{_libdir}/context-agent/*.so.*
+%if %{?mv_prj:!%{mv_prj}}%{?!mv_prj:1}
+ %{_libdir}/context-agent/*.so.*
+%endif
%license LICENSE