fixed build on x86_64 tizen_2.1 2.1b_release 2.2_release accepted/tizen_2.1/20130425.020430 submit/tizen_2.1/20130425.000137 submit/tizen_2.2/20130714.131747 submit/tizen_2.2/20130714.134217 submit/tizen_2.2/20130714.142829
authorAnas Nashif <anas.nashif@intel.com>
Wed, 30 Jan 2013 17:19:00 +0000 (09:19 -0800)
committerlifang <fangx.li@intel.com>
Tue, 2 Apr 2013 11:39:31 +0000 (19:39 +0800)
Change-Id: Ia3fdc5be3636d6b82e9b5c9d7ba0a9f5efdb8eed

CMakeLists.txt
packaging/app-checker.spec

index 546bcc7..2de8706 100755 (executable)
@@ -91,13 +91,13 @@ CONFIGURE_FILE(app-checker-server.pc.in app-checker-server.pc @ONLY)
 
 MESSAGE("LIBDIR ${LIB_INSTALL_DIR}")
 ### Install ###
-INSTALL(TARGETS app-checker DESTINATION lib COMPONENT RuntimeLibraries)
-INSTALL(TARGETS ${DAEMON_NAME} DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS app-checker DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${DAEMON_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/app-checker.h DESTINATION include/app-checker)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/app-checker.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/app-checker.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/app-checker-server.h DESTINATION include/app-checker)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/app-checker-server.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/app-checker-server.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 
 
index 68de8b4..e1037c2 100644 (file)
@@ -5,13 +5,7 @@ Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
 Source0:    %{name}-%{version}.tar.gz
-
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-
-
 BuildRequires: cmake
-
 BuildRequires: pkgconfig(dlog)
 BuildRequires: pkgconfig(glib-2.0)
 
@@ -51,19 +45,17 @@ libapp-checker server (developement files)
 
 %build
 
-CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=/usr
+%cmake . 
 
 make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
 %make_install
+mkdir -p %{buildroot}/usr/lib/ac-plugins
 
 
-%post
-
-/sbin/ldconfig
-mkdir -p /usr/lib/ac-plugins
+%post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
@@ -71,24 +63,25 @@ mkdir -p /usr/lib/ac-plugins
 %files
 %manifest app-checker.manifest
 %defattr(-,root,root,-)
-/usr/lib/libapp-checker.so.0
-/usr/lib/libapp-checker.so.0.1.0
+%{_libdir}/libapp-checker.so.0
+%{_libdir}/libapp-checker.so.0.1.0
+/usr/lib/ac-plugins
 
 %files devel
 %defattr(-,root,root,-)
-/usr/lib/libapp-checker.so
-/usr/lib/pkgconfig/app-checker.pc
+%{_libdir}/libapp-checker.so
+%{_libdir}/pkgconfig/app-checker.pc
 /usr/include/app-checker/app-checker.h
 
 %files server
 %manifest app-checker.manifest
 %defattr(-,root,root,-)
-/usr/lib/libapp-checker-server.so.0
-/usr/lib/libapp-checker-server.so.0.1.0
+%{_libdir}/libapp-checker-server.so.0
+%{_libdir}/libapp-checker-server.so.0.1.0
 
 %files server-devel
 %defattr(-,root,root,-)
-/usr/lib/libapp-checker-server.so
-/usr/lib/pkgconfig/app-checker-server.pc
+%{_libdir}/libapp-checker-server.so
+%{_libdir}/pkgconfig/app-checker-server.pc
 /usr/include/app-checker/app-checker-server.h