diff options
-rwxr-xr-x | CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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 |