summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-01-29 22:21:12 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-04-05 13:05:22 -0700
commit8f0fb336eb720cf1f4a4a16d38a9c4d5abb27746 (patch)
tree461ca76eb73d816c823e061bbb3f5555637acfd3
parent65017dc84fd233dc1401896c9970ccd00b40f6a9 (diff)
downloadcommon-tizen_2.1.tar.gz
common-tizen_2.1.tar.bz2
common-tizen_2.1.zip
Change-Id: I924bdc85f9ad4feec1bc707994331d9d9490a09f
-rwxr-xr-xCMakeLists.txt2
-rw-r--r--packaging/capi-base-common.spec40
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