ADD_DEFINITIONS("-DEXPORT_API=__attribute__((visibility(\"default\")))")
ADD_DEFINITIONS("-DTIZEN_DEBUG")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
aux_source_directory(src SOURCES)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
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)
Version: 0.1.2
Release: 1
Group: System/Libraries
-License: Apache License, Version 2.0
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(location)
BuildRequires: pkgconfig(capi-base-common)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
%description
+A Geocoder library in Tizen Native API.
%package devel
Summary: A Geocoder library in Tizen Native API (Development)
-Group: TO_BE/FILLED_IN
-Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+Requires: %{name} = %{version}
%description devel
-
+A Geocoder library in Tizen Native API (Development).
%prep
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
-
-
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
%post -p /sbin/ldconfig
%files
+%license LICENSE
%manifest capi-location-geocoder.manifest
%{_libdir}/libcapi-location-geocoder.so*