Install into %_libdir, support 64bit and cleanup spec tizen_2.1 2.1b_release accepted/tizen/20130520.100645 accepted/tizen_2.1/20130425.040701 submit/tizen/20130517.044625 submit/tizen_2.1/20130424.230302
authorAnas Nashif <anas.nashif@intel.com>
Wed, 30 Jan 2013 06:21:12 +0000 (22:21 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Fri, 5 Apr 2013 20:05:22 +0000 (13:05 -0700)
Change-Id: I924bdc85f9ad4feec1bc707994331d9d9490a09f

CMakeLists.txt
packaging/capi-base-common.spec

index 360f921..5bd1126 100755 (executable)
@@ -10,7 +10,7 @@ INSTALL(FILES include/tizen.h DESTINATION include)
 INSTALL(FILES include/tizen_error.h DESTINATION include)
 INSTALL(FILES include/tizen_type.h DESTINATION include)
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/capi-base-common.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/capi-base-common.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 IF(UNIX)
 
index c36fa70..b1ba39d 100644 (file)
@@ -1,44 +1,38 @@
-Name:       capi-base-common
-Summary:    Common header files of Tizen Native API
-Version: 0.1.0
-Release:    8
-Group:      TO_BE/FILLED_IN
-License:    Apache-2.0
-Source0:    %{name}-%{version}.tar.gz
+Name:           capi-base-common
+Version:        0.1.0
+Release:        8
+License:        Apache-2.0
+Summary:        Common header files of Tizen Native API
+Group:          API/C API
+Source0:        %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 
 %description
 Common header files of Tizen Native API
 
-  
-%package devel  
-Summary:  Common header files of Tizen Native API (Development)  
-Group:    TO_BE/FILLED_IN  
-Requires: %{name} = %{version}-%{release}  
-  
+
+%package devel
+Summary:        Common header files of Tizen Native API (Development)
+Group:          API/C API
+Requires:       %{name} = %{version}
+
 %description devel
 Common header files of Tizen Native API
 
 %prep
 %setup -q
 
-
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=/usr
-
-
-make %{?jobs:-j%jobs}
+%cmake .
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 %make_install
 
-
-
 %files
 
 %files devel
-/usr/include/*.h
-/usr/lib/pkgconfig/capi-base-common.pc
+%{_includedir}/*.h
+%{_libdir}/pkgconfig/capi-base-common.pc