TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
-INSTALL(TARGETS ${fw_name} DESTINATION lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/location
FILES_MATCHING
${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
@ONLY
)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
ADD_SUBDIRECTORY(test)
-Name: capi-location-route
-Summary: A Location Route library in Tizen Native API
-Version: 0.1.4
-Release: 1
-Group: System/Libraries
-License: Apache Licensc, Version 2.0
-Source0: %{name}-%{version}.tar.gz
-BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(location)
-BuildRequires: pkgconfig(capi-base-common)
-BuildRequires: pkgconfig(capi-location-manager)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
+Name: capi-location-route
+Version: 0.1.4
+Release: 1
+License: Apache-2.0
+Summary: A Location Route library in Tizen Native API
+Group: API/C API
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(capi-base-common)
+BuildRequires: pkgconfig(capi-location-manager)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(location)
%description
+%{summary}.
%package devel
-Summary: A Location Route library in Tizen Native API (Development)
-Group: TO_BE/FILLED_IN
-Requires: %{name} = %{version}-%{release}
+Summary: A Location Route library in Tizen Native API (Development)
+Group: Development/API
+Requires: %{name} = %{version}
%description devel
+%{summary}.
+
+Development Package
%prep
%setup -q
-
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%make_install
%post -p /sbin/ldconfig