From 86f5671c3cd0ec95196aea5cbfd1f08b6ecb9e9d Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 4 Jun 2013 07:38:46 -0400 Subject: [PATCH 1/1] Removed hardcoding of library install path --- CMakeLists.txt | 1 - client/CMakeLists.txt | 6 +++--- packaging/stt.changes | 3 +++ packaging/stt.spec | 17 +++++++---------- 4 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 packaging/stt.changes diff --git a/CMakeLists.txt b/CMakeLists.txt index 09f305d..9d3ed37 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 0a15388..659fa72 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -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 index 0000000..e9060d9 --- /dev/null +++ b/packaging/stt.changes @@ -0,0 +1,3 @@ +* Tue Jun 04 2013 Anas Nashif submit/tizen/20130517.045423@68c2e4b +- Removed hardcoding of library install path + diff --git a/packaging/stt.spec b/packaging/stt.spec index de443d3..ce25aaa 100755 --- a/packaging/stt.spec +++ b/packaging/stt.spec @@ -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,-) -- 2.7.4