Fixed build on x86_64.
authorJunfeng Dong <junfeng.dong@intel.com>
Thu, 31 Jan 2013 09:59:39 +0000 (17:59 +0800)
committerlifang <fangx.li@intel.com>
Tue, 2 Apr 2013 15:17:55 +0000 (23:17 +0800)
Change-Id: I4f54765718ce507f526271a5806042866b94919d

packaging/syspopup.spec
syspopup-caller/CMakeLists.txt
syspopup/CMakeLists.txt

index 24de966..4b7f957 100755 (executable)
@@ -49,15 +49,14 @@ syspopup-caller development package for popup
 
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 %build
-CFLAGS=${_cflags} cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DEXTRA_CFLAGS=-fPIC
+%cmake . -DEXTRA_CFLAGS=-fPIC
 
 make %{?jobs:-j%jobs}
 
 %install
-rm -rf %{buildroot}
 %make_install
 
 mkdir -p %{buildroot}/opt/dbspace
@@ -105,4 +104,3 @@ touch %{buildroot}%{_datadir}/popup_noti_term
 %{_libdir}/libsyspopup_caller.so
 %{_includedir}/syspopup_caller.h
 %{_libdir}/pkgconfig/syspopup-caller.pc
-
index 47ffb1d..2fcc6ce 100644 (file)
@@ -61,7 +61,7 @@ SET_TARGET_PROPERTIES(syspopup_caller PROPERTIES SOVERSION 0.1.0)
 CONFIGURE_FILE(syspopup-caller.pc.in ${CMAKE_CURRENT_BINARY_DIR}/syspopup-caller.pc @ONLY)
 
 ### Install ###
-INSTALL(TARGETS syspopup_caller DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS syspopup_caller DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../include/syspopup_caller.h DESTINATION include)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/syspopup-caller.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/syspopup-caller.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
index f7862be..f9caa16 100644 (file)
@@ -61,7 +61,7 @@ SET_TARGET_PROPERTIES(syspopup PROPERTIES SOVERSION 0.1.0)
 CONFIGURE_FILE(syspopup.pc.in ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc @ONLY)
 
 ### Install ###
-INSTALL(TARGETS syspopup DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS syspopup DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../include/syspopup.h DESTINATION include)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/syspopup.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)