merge with master tizen_2.1 2.1b_release accepted/tizen/20130520.100942 accepted/tizen_2.1/20130425.035422 submit/tizen/20130517.044827 submit/tizen_2.1/20130424.230925
authorJinkun Jang <jinkun.jang@samsung.com>
Fri, 15 Mar 2013 16:12:45 +0000 (01:12 +0900)
committerJinkun Jang <jinkun.jang@samsung.com>
Fri, 15 Mar 2013 16:12:45 +0000 (01:12 +0900)
CMakeLists.txt
packaging/status.spec

index 88c724f..6e0eedb 100644 (file)
@@ -46,13 +46,13 @@ FOREACH(lib_file ${SUBMODULES})
        TARGET_LINK_LIBRARIES(${lib_file} ${pkgs_LDFLAGS})
        SET_TARGET_PROPERTIES(${lib_file} PROPERTIES SOVERSION ${VERSION_MAJOR})
        SET_TARGET_PROPERTIES(${lib_file} PROPERTIES VERSION ${VERSION})
-       INSTALL(TARGETS ${lib_file} DESTINATION lib COMPONENT RuntimeLibraries)
+       INSTALL(TARGETS ${lib_file} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 ENDFOREACH(lib_file)
 
 FOREACH(pcfile ${SUBMODULES})
        CONFIGURE_FILE(${pcfile}.pc.in ${pcfile}.pc @ONLY)
        SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${pcfile}.pc")
-       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pcfile}.pc DESTINATION lib/pkgconfig)
+       INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pcfile}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 ENDFOREACH(pcfile)
 
 FOREACH(hfile ${INSTALL_HEADERS})
index df26f35..9233398 100755 (executable)
@@ -1,7 +1,7 @@
 Name:       status
 Summary:    status library
 Version:    0.0.1
-Release:    2
+Release:    1
 Group:      TBD
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
@@ -11,7 +11,8 @@ BuildRequires: pkgconfig(vconf)
 BuildRequires: pkgconfig(aul)
 BuildRequires: cmake
 Requires(post): /sbin/ldconfig
-requires(postun): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
 %description
 Status library.
 
@@ -27,8 +28,8 @@ Requires:   %{name} = %{version}-%{release}
 Status library (devel).
 
 %build
-export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
-LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed"
+%cmake .
 make %{?jobs:-j%jobs}
 
 %install