%define debug_package %{nil} %define __strip /bin/true Name: osp-social Summary: osp social library Version: 1.2.1.7 Release: 6 Group: System/Libraries License: Apache License, Version 2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: pkgconfig(contacts-service2) BuildRequires: pkgconfig(calendar-service2) BuildRequires: pkgconfig(accounts-svc) BuildRequires: pkgconfig(libwbxml2) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(osp-appfw) BuildRequires: osp-appfw-internal-devel BuildRequires: pkgconfig(osp-uifw) BuildRequires: osp-uifw-internal-devel BuildRequires: pkgconfig(osp-image) BuildRequires: osp-image-internal-devel BuildRequires: pkgconfig(osp-image-core) BuildRequires: osp-image-core-internal-devel # runtime requires Requires: osp-appfw Requires: osp-image %description osp social library %package devel Summary: osp social library (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description devel osp social library (DEV) %package internal-devel Summary: osp social library (Internal) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description internal-devel osp social library (Internal-DEV) %package debug Summary: osp social library (Development) Group: TO_BE/FILLED_IN Requires: %{name} = %{version}-%{release} %description debug osp social 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} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm %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 %manifest osp-social.manifest /usr/share/license/%{name} %{_libdir}/osp/*.so* /usr/etc/package-manager/parserlib/libaccount.so %files devel %{_includedir}/osp/*.h %{_libdir}/pkgconfig/osp-social.pc %files internal-devel %{_includedir}/osp/social/*.h %files debug %{_libdir}/osp/debug/*.so*