1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp social library
8 Group: System/Libraries
9 License: Apache License, Version 2.0
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(contacts-service2)
13 BuildRequires: pkgconfig(calendar-service2)
14 BuildRequires: pkgconfig(accounts-svc)
15 BuildRequires: pkgconfig(libwbxml2)
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(db-util)
18 BuildRequires: pkgconfig(osp-appfw)
19 BuildRequires: osp-appfw-internal-devel
20 BuildRequires: pkgconfig(osp-uifw)
21 BuildRequires: osp-uifw-internal-devel
22 BuildRequires: pkgconfig(osp-image)
23 BuildRequires: osp-image-internal-devel
24 BuildRequires: pkgconfig(osp-image-core)
25 BuildRequires: osp-image-core-internal-devel
35 Summary: osp social library (Development)
36 Group: TO_BE/FILLED_IN
37 Requires: %{name} = %{version}-%{release}
40 osp social library (DEV)
42 %package internal-devel
43 Summary: osp social library (Internal)
44 Group: TO_BE/FILLED_IN
45 Requires: %{name} = %{version}-%{release}
47 %description internal-devel
48 osp social library (Internal-DEV)
51 Summary: osp social library (Development)
52 Group: TO_BE/FILLED_IN
53 Requires: %{name} = %{version}-%{release}
56 osp social library (DEV)
62 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
66 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
68 CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
72 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_"
75 %if 0%{?tizen_build_binary_release_type_eng}
76 CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
79 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
81 # Call make instruction with smp support
86 mkdir -p %{buildroot}/usr/share/license
87 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
91 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %manifest osp-social.manifest
97 /usr/share/license/%{name}
99 /usr/etc/package-manager/parserlib/libaccount.so
102 %{_includedir}/osp/*.h
103 %{_libdir}/pkgconfig/osp-social.pc
105 %files internal-devel
106 %{_includedir}/osp/social/*.h
109 %{_libdir}/osp/debug/*.so*