##########################################################
# Define Test App
##########################################################
-
-ADD_SUBDIRECTORY(utilities)
-
+IF (TEST_APP_SUPPORT)
+ ADD_SUBDIRECTORY(utilities)
+ENDIF (TEST_APP_SUPPORT)
##########################################################
# Define Install Files
##########################################################
SET_TARGET_PROPERTIES(${CORE-SOUND-LIB} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES(${CORE-SOUND-LIB} PROPERTIES VERSION ${VERSION})
-INSTALL(TARGETS ${CORE-SOUND-LIB} DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${CORE-SOUND-LIB} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
##########################################################
# Define Core lib
+%global test_email_app_enabled 0
Name: email-service
Summary: E-mail Framework Middleware package
Version: 0.10.101
export CXXFLAGS="${CXXFLAGS} -fPIC -Wall -g -fvisibility=hidden"
export LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--rpath=%{_libdir} -Wl,--as-needed"
-%cmake .
+%cmake . \
+%if %{test_email_app_enabled}
+ -DTEST_APP_SUPPORT=On
+%endif
make %{?_smp_mflags}
%files
%manifest email-service.manifest
-%exclude /usr/bin/email-test-app
+%if %{test_email_app_enabled}
+/usr/bin/email-test-app
+%endif
%{_bindir}/email-service
/opt/usr/data/email/res/*
%{_libdir}/lib*.so.*
-/usr/lib/systemd/user/email.service
-/usr/lib/systemd/user/tizen-middleware.target.wants/email.service
-/usr/share/dbus-1/services/email-service.service
-/usr/share/license/email-service
+%{_libdir}/libemail-core-sound.so
+%{_libdir}/libemail-core-sound.so.*
+%{_unitdir_user}/email.service
+%{_unitdir_user}/tizen-middleware.target.wants/email.service
+%{_datarootdir}/dbus-1/services/email-service.service
+%{_datarootdir}/license/email-service
/opt/etc/smack/accesses.d/email-service.rule
%files devel
%{_includedir}/email-service/*.h
%{_libdir}/lib*.so
+%{_libdir}/libemail-core-sound.so
+%{_libdir}/libemail-core-sound.so.*
%{_libdir}/pkgconfig/*.pc