2 Summary: osp-compat library
5 Group: Application Framwork/Libraries
6 License: Apache-2.0 or BSD-2-Clause or BSD-like
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(osp-appfw)
10 BuildRequires: pkgconfig(osp-net)
11 BuildRequires: pkgconfig(osp-nfc)
12 BuildRequires: pkgconfig(osp-social)
13 BuildRequires: pkgconfig(osp-uifw)
15 Provides: libosp-compat.so.1
24 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
28 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
30 CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
35 CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv8-a+fp+simd -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_"
37 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_"
41 %if 0%{?tizen_build_binary_release_type_eng}
42 CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
45 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
47 # Call make instruction with smp support
53 %post -p /sbin/ldconfig
55 %postun -p /sbin/ldconfig
58 %manifest osp-compat.manifest
59 %license LICENSE.Apache-2.0 LICENSE.NEWLIB
60 %defattr(-,root,root,-)
61 %{_libdir}/osp/libosp-compat.so*