SET(EXEC_PREFIX "${PREFIX}")
SET(VERSION 0.2.41)
+IF (LIBDIR MATCHES "/usr/lib64")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLIB64")
+ENDIF (LIBDIR)
+
## Include common directory ##
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE RENAME tts DESTINATION /usr/share/license)
## Config ##
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION /usr/lib/voice/tts/1.0)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION ${LIBDIR}/voice/tts/1.0)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system.d)
* Defines for configuration
*******************************************************************************************/
+#ifdef LIB64
+#define TTS_USR_BASE "/usr/lib64/voice/tts/1.0"
+#else
#define TTS_USR_BASE "/usr/lib/voice/tts/1.0"
+#endif
#define TTS_OPT_BASE "/opt/usr/data/voice/tts/1.0"
#define TTS_DEFAULT_CONFIG TTS_USR_BASE"/tts-config.xml"
%post
/sbin/ldconfig
-mkdir -p /usr/lib/voice
+mkdir -p %{_libdir}/voice
mkdir -p /usr/share/voice
%manifest %{name}.manifest
%defattr(-,system,system,-)
%{_libdir}/lib*.so
-/usr/lib/voice/tts/1.0/tts-config.xml
+%{_libdir}/voice/tts/1.0/tts-config.xml
%{_bindir}/tts-daemon*
/usr/share/dbus-1/system-services/org.tizen.voice*
/etc/dbus-1/system.d/tts-server.conf