%define debug_package %{nil} %define __strip /bin/true Name: osp-compat Summary: osp-compat library Version: 1.2.2.0 Release: 1 Group: TO_BE/FILLED_IN License: Apache License, Version 2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(osp-appfw) BuildRequires: pkgconfig(osp-net) BuildRequires: pkgconfig(osp-nfc) BuildRequires: pkgconfig(osp-social) BuildRequires: pkgconfig(osp-uifw) Provides: libosp-compat.so.1 %description osp-compat library %package debug Summary: osp-compat (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description debug osp-compat library (DEV) %prep %setup -q %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} ARCH=x86 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_" %if 0%{?simulator} CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_" %endif %else ARCH=arm 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_" %endif %if 0%{?tizen_build_binary_release_type_eng} CXXFLAGS="$CXXFLAGS -D_SECURE_LOG" %endif cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH} # 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 %manifest osp-compat.manifest %defattr(-,root,root,-) /usr/share/license/%{name} %{_libdir}/osp/libosp-compat.so* %files debug %{_libdir}/osp/debug/*.so*