option('function-trace', type: 'boolean', value: false, description: 'enable function trace: (default=false)')
+option('tests', type: 'boolean', value: true, description: 'Compile Enlightenment tests')
%description devel
Development files for enlightenment
+%if "%{disable_tests}" != "1"
%package tests
Summary: enlightenment tests package
Group: System/Libraries
%description tests
Tests binary for internal API in enlightenment
+%endif
%package isu
Summary: ISU package for enlightenment
export CFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV "
export LDFLAGS+=" -lgcov "
%endif
+
meson setup \
+ builddir --reconfigure \
--prefix /usr \
--libdir %{_libdir} \
--bindir %{_bindir} \
-Dfunction-trace=true \
- builddir --reconfigure
+ %{?disable_tests:-Dtests=false}%{!?disable_tests:-Dtests=true}
%install
export DESTDIR=%{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/resourced/vip-process.d
cp %{SOURCE1002} %{buildroot}/%{_sysconfdir}/resourced/vip-process.d/enlightenment.conf
+%if "%{disable_tests}" != "1"
%check
%{buildroot}%{_bindir}/enlightenment-tests
+%endif
%post
/usr/bin/chsmack %{_bindir}/input_keyevent* -a "System::Tools"
%{_includedir}/enlightenment/*
%{_libdir}/pkgconfig/*.pc
+%if "%{disable_tests}" != "1"
%files tests
%defattr(-,root,root,-)
%attr(550,root,root) %{_bindir}/enlightenment-tests
+%endif
%files isu
/etc/isu/enlightenment/isu.cfg