Removed hardcoding of library install path accepted/tizen/20130604.192803 submit/tizen/20130604.114113
authorAnas Nashif <anas.nashif@intel.com>
Tue, 4 Jun 2013 11:38:46 +0000 (07:38 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 4 Jun 2013 11:38:46 +0000 (07:38 -0400)
CMakeLists.txt
client/CMakeLists.txt
packaging/stt.changes [new file with mode: 0644]
packaging/stt.spec

index 09f305d..9d3ed37 100755 (executable)
@@ -16,6 +16,5 @@ ADD_SUBDIRECTORY(client)
 ## 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)
index 0a15388..659fa72 100644 (file)
@@ -62,7 +62,7 @@ CONFIGURE_FILE(stt.pc.in "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc" @ONLY)
 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)
diff --git a/packaging/stt.changes b/packaging/stt.changes
new file mode 100644 (file)
index 0000000..e9060d9
--- /dev/null
@@ -0,0 +1,3 @@
+* Tue Jun 04 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130517.045423@68c2e4b
+- Removed hardcoding of library install path
+
index de443d3..ce25aaa 100755 (executable)
@@ -2,11 +2,9 @@ Name:       stt
 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)
@@ -24,7 +22,7 @@ Speech To Text client library and daemon.
 
 %package devel
 Summary:    Speech To Text header files for STT development
-Group:      libdevel
+Group:      Development/UI Framework
 Requires:   %{name} = %{version}-%{release}
 
 %description devel
@@ -32,16 +30,15 @@ Speech To Text header files for STT development.
 
 
 %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
@@ -50,14 +47,14 @@ mkdir -p %{buildroot}/usr/share/license
 
 %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,-)