summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-03-20 11:52:03 +0100
committerlifang <fangx.li@intel.com>2013-03-29 05:26:24 +0800
commit76caf765889c058f6688bc17a91f941a0f6839df (patch)
tree5c72528421870f85f19f4b6af0f0dc1a587b765c
parentb7d185418a5ec2238fcbe468038a929ad39eef8c (diff)
downloadlibhaptic-tizen_2.1.tar.gz
libhaptic-tizen_2.1.tar.bz2
libhaptic-tizen_2.1.zip
-> Use %cmake macro -> Fix libraries path in pc file -> Fix installation for libraries Change-Id: Id6e2c7e4bd5a897c9cddd800271f1269e78d6262 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
-rw-r--r--CMakeLists.txt7
-rw-r--r--haptic-plugin.pc.in2
-rw-r--r--haptic.pc.in2
-rw-r--r--packaging/libhaptic.spec30
4 files changed, 7 insertions, 34 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c50a10..122476c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,6 @@ PROJECT(haptic C)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "\${prefix}")
-SET(LIBDIR "\${prefix}/lib")
SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}")
SET(VERSION 0.1)
@@ -45,9 +44,9 @@ CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
CONFIGURE_FILE(${PROJECT_NAME}-plugin.pc.in ${PROJECT_NAME}-plugin.pc @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION share/license RENAME ${PROJECT_NAME})
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-plugin.pc DESTINATION lib/pkgconfig)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-plugin.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
FOREACH(hfile ${HEADERS})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${hfile} DESTINATION include/${PROJECT_NAME})
diff --git a/haptic-plugin.pc.in b/haptic-plugin.pc.in
index 9cfb39b..e90fc89 100644
--- a/haptic-plugin.pc.in
+++ b/haptic-plugin.pc.in
@@ -3,7 +3,7 @@
prefix=@PREFIX@
exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
+libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDEDIR@
Name: @PC_NAME@
diff --git a/haptic.pc.in b/haptic.pc.in
index 58f59cb..477601d 100644
--- a/haptic.pc.in
+++ b/haptic.pc.in
@@ -3,7 +3,7 @@
prefix=@PREFIX@
exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
+libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDEDIR@
Name: @PC_NAME@
diff --git a/packaging/libhaptic.spec b/packaging/libhaptic.spec
index 41722e6..58f83cc 100644
--- a/packaging/libhaptic.spec
+++ b/packaging/libhaptic.spec
@@ -1,14 +1,11 @@
-#sbs-git:slp/pkgs/d/devman devman 0.1.6 5bf2e95e0bb15c43ff928f7375e1978b0accb0f8
Name: libhaptic
Summary: Haptic library
Version: 0.1.0
Release: 9
Group: System/Libraries
-License: Apache License, Version 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: libhaptic.manifest
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
@@ -38,11 +35,10 @@ Haptic plugin library for device control (devel)
%build
cp %{SOURCE1} .
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%cmake .
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_datadir}/license
@@ -70,25 +66,3 @@ mkdir -p %{buildroot}%{_datadir}/license
%{_includedir}/haptic/haptic_plugin_intf.h
%{_libdir}/pkgconfig/haptic-plugin.pc
-%changelog
-* Thu Feb 28 2013 - Jae-young Hwang <j-zero.hwang@samsung.com>
-- revise a member of effect element
-- replace stime with level of haptic
-- Tag - libhaptic_0.1.0-9
-
-* Fri Jan 18 2013 - Jae-young Hwang <j-zero.hwang@samsung.com>
-- revise value of haptic_state_e enum
-- Tag - libhaptic_0.1.0-8
-
-* Mon Jan 07 2013 - Jae-young Hwang <j-zero.hwang@samsung.com>
-- Change libhpatic-module.so file path
-- Tag - libhaptic_0.1.0-7
-
-* Tue Oct 23 2012 - Jiyoung Yun <jy910.yun@samsung.com>
-- remove capi-system-info pkg to fix build break error
-- Tag : libhaptic_0.1.0-1
-
-* Mon Oct 15 2012 - Jiyoung Yun <jy910.yun@samsung.com>
-- Seperate the haptic module from devman
-- Implement source code
-- Tag : libhaptic_0.1.0-0