1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp-compat library
9 License: Apache License, Version 2.0
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(osp-appfw)
13 BuildRequires: pkgconfig(osp-net)
14 BuildRequires: pkgconfig(osp-nfc)
15 BuildRequires: pkgconfig(osp-social)
16 BuildRequires: pkgconfig(osp-uifw)
18 Provides: libosp-compat.so.1
24 Summary: osp-compat (Development)
25 Group: TO_BE/FILLED_IN
26 Requires: %{name} = %{version}-%{release}
29 osp-compat library (DEV)
35 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
38 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DEMUL=1
40 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DEMUL=1
43 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTARGET=1
46 # Call make instruction with smp support
51 mkdir -p %{buildroot}/usr/share/license
52 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
56 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
61 %manifest osp-compat.manifest
62 %defattr(-,root,root,-)
63 /usr/share/license/%{name}
64 %{_libdir}/osp/libosp-compat.so*
67 %{_libdir}/osp/debug/*.so*