From 8f0fb336eb720cf1f4a4a16d38a9c4d5abb27746 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 29 Jan 2013 22:21:12 -0800 Subject: [PATCH] Install into %_libdir, support 64bit and cleanup spec Change-Id: I924bdc85f9ad4feec1bc707994331d9d9490a09f --- CMakeLists.txt | 2 +- packaging/capi-base-common.spec | 40 +++++++++++++++++----------------------- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 360f921..5bd1126 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index c36fa70..b1ba39d 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -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 -- 2.7.4