From 59008382bdb85071b164784d65e431f7c6b7934f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 30 Jan 2013 09:19:00 -0800 Subject: [PATCH] fixed build on x86_64 Change-Id: Ia3fdc5be3636d6b82e9b5c9d7ba0a9f5efdb8eed --- CMakeLists.txt | 8 ++++---- packaging/app-checker.spec | 31 ++++++++++++------------------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 546bcc7..2de8706 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/packaging/app-checker.spec b/packaging/app-checker.spec index 68de8b4..e1037c2 100644 --- a/packaging/app-checker.spec +++ b/packaging/app-checker.spec @@ -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 -- 2.7.4