Name: osp-locations Version: 1.2.2.1 Release: 2 License: Apache-2.0 Summary: The Locations library of OSP Group: Location/Libraries Source0: %{name}-%{version}.tar.gz Source1001: %{name}.manifest BuildRequires: cmake BuildRequires: osp-appfw-internal-devel BuildRequires: osp-uifw-internal-devel BuildRequires: pkgconfig(alarm-service) BuildRequires: pkgconfig(capi-location-manager) BuildRequires: pkgconfig(osp-appfw) BuildRequires: pkgconfig(osp-uifw) # runtime requires Requires: osp-appfw Requires: osp-uifw %description The Locations library of OSP %package devel Summary: The Locations library of OSP (Development) Requires: %{name} = %{version} %description devel The Locations library of OSP (DEV) %package internal-devel Summary: The Locations library of OSP (Internal Development) Requires: %{name} = %{version} %description internal-devel The Locations library of OSP (Internal-DEV) %prep %setup -q cp %{SOURCE1001} . %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" %cmake . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86 %else CXXFLAGS="-D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" %cmake . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm %endif make %{?_smp_mflags} %install %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest osp-location.manifest %license LICENSE.APLv2 %{_libdir}/osp/*.so* %files devel %{_includedir}/osp/*.h %{_libdir}/pkgconfig/osp-locations.pc