summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-01-30 09:19:00 -0800
committerlifang <fangx.li@intel.com>2013-04-02 19:39:31 +0800
commit59008382bdb85071b164784d65e431f7c6b7934f (patch)
tree0dd613c0bddf9f7fac93e2f11d30f3c342238801
parentfda21f63a59000660c5a9d052800fc7b887fb141 (diff)
downloadapp-checker-submit/tizen_2.1/20130425.000137.tar.gz
app-checker-submit/tizen_2.1/20130425.000137.tar.bz2
app-checker-submit/tizen_2.1/20130425.000137.zip
Change-Id: Ia3fdc5be3636d6b82e9b5c9d7ba0a9f5efdb8eed
-rwxr-xr-xCMakeLists.txt8
-rw-r--r--packaging/app-checker.spec31
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