diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:50:45 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:50:45 +0900 |
commit | 5bc4343a34f8058b6555c1e40dd9fa0200b6a805 (patch) | |
tree | 3dcc50119fd81620ef470dc0b1b6b5649bd57b1e /packaging/osp-locations.spec | |
parent | d43d1058907b37db2a6e976d4ef46b8a2d8f0122 (diff) | |
download | locations-5bc4343a34f8058b6555c1e40dd9fa0200b6a805.tar.gz locations-5bc4343a34f8058b6555c1e40dd9fa0200b6a805.tar.bz2 locations-5bc4343a34f8058b6555c1e40dd9fa0200b6a805.zip |
Tizen 2.1 base
Diffstat (limited to 'packaging/osp-locations.spec')
-rwxr-xr-x | packaging/osp-locations.spec | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/packaging/osp-locations.spec b/packaging/osp-locations.spec new file mode 100755 index 0000000..29333a0 --- /dev/null +++ b/packaging/osp-locations.spec @@ -0,0 +1,85 @@ +%define debug_package %{nil} +%define __strip /bin/true + +Name: osp-locations +Summary: osp locations library +Version: 1.2.0.0 +Release: 2 +Group: System/Libraries +License: TO_BE/FILLED_IN +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: pkgconfig(capi-location-manager) +BuildRequires: pkgconfig(osp-appfw) +BuildRequires: pkgconfig(osp-uifw) +BuildRequires: osp-appfw-internal-devel +BuildRequires: osp-uifw-internal-devel + +# runtime requires +Requires: osp-appfw +Requires: osp-uifw + +%description +osp locations library + +%package devel +Summary: osp locations library (Development) +Group: TO_BE/FILLED_IN +Requires: %{name} = %{version}-%{release} + +%description devel +osp locations library (DEV) + +%package internal-devel +Summary: osp locations library (Internal) +Group: TO_BE/FILLED_IN +Requires: %{name} = %{version}-%{release} + +%description internal-devel +osp locations library (Internal-DEV) + +%package debug +Summary: osp locations library (Development) +Group: TO_BE/FILLED_IN +Requires: %{name} = %{version}-%{release} + +%description debug +osp locations library (DEV) + +%prep +%setup -q + +%build +MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` +%ifarch %{ix86} +CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} +%else +CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} +%endif + +# Call make instruction with smp support +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/license +cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} + +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +/usr/share/license/%{name} +%{_libdir}/osp/*.so* + +%files devel +%{_includedir}/osp/*.h +%{_libdir}/pkgconfig/osp-locations.pc + +%files internal-devel + +%files debug +%{_libdir}/osp/debug/*.so* |