## Server daemon ##
ADD_SUBDIRECTORY(server)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.APLv2 RENAME stt DESTINATION /usr/share/license)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-server.rule DESTINATION /opt/etc/smack/accesses.d)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/sysinfo-stt.xml DESTINATION /etc/config)
CONFIGURE_FILE(stt-setting.pc.in "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}-setting.pc" @ONLY)
## Install library files ##
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(TARGETS "${PROJECT_NAME}_setting" DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc" "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}-setting.pc" DESTINATION lib/pkgconfig)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(TARGETS "${PROJECT_NAME}_setting" DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc" "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}-setting.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/stt.h ${CMAKE_CURRENT_SOURCE_DIR}/stt_setting.h DESTINATION include)
Summary: Speech To Text client library and daemon
Version: 0.1.41
Release: 1
-Group: libs
-License: Samsung
+Group: UI Framework/Libraries
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(ecore)
%package devel
Summary: Speech To Text header files for STT development
-Group: libdevel
+Group: Development/UI Framework
Requires: %{name} = %{version}-%{release}
%description devel
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
-cmake . -DCMAKE_INSTALL_PREFIX=/usr
+%cmake .
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
%make_install
%post -p /sbin/ldconfig
%files
%manifest stt-server.manifest
+%license LICENSE.APLv2
/opt/etc/smack/accesses.d/stt-server.rule
/etc/config/sysinfo-stt.xml
%defattr(-,root,root,-)
%{_libdir}/libstt.so
%{_libdir}/libstt_setting.so
-%{_libdir}/voice/stt/1.0/sttd.conf
+%{_prefix}/lib/voice/stt/1.0/sttd.conf
%{_bindir}/stt-daemon
-/usr/share/license/*
%files devel
%defattr(-,root,root,-)