1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp telephony library
8 Group: System/Libraries
9 License: Apache License, Version 2.0
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(chromium)
13 BuildRequires: pkgconfig(capi-telephony-sim)
14 BuildRequires: pkgconfig(capi-telephony-network-info)
15 BuildRequires: pkgconfig(capi-network-connection)
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(tapi)
18 BuildRequires: pkgconfig(osp-appfw)
19 BuildRequires: osp-appfw-internal-devel
20 BuildRequires: pkgconfig(osp-net)
21 BuildRequires: osp-net-internal-devel
31 Summary: osp telephony library (Development)
32 Group: TO_BE/FILLED_IN
33 Requires: %{name} = %{version}-%{release}
36 osp telephony library (DEV)
38 %package internal-devel
39 Summary: osp telephony library (Internal)
40 Group: TO_BE/FILLED_IN
41 Requires: %{name} = %{version}-%{release}
43 %description internal-devel
44 osp telephony library (Internal-DEV)
47 Summary: osp telephony library (Development)
48 Group: TO_BE/FILLED_IN
49 Requires: %{name} = %{version}-%{release}
52 osp telephony library (DEV)
58 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
60 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
62 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_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
65 # Call make instruction with smp support
70 mkdir -p %{buildroot}/usr/share/license
71 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
75 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
80 %manifest osp-telephony.manifest
81 /usr/share/license/%{name}
85 %{_includedir}/osp/*.h
86 %{_libdir}/pkgconfig/osp-telephony.pc
89 %{_includedir}/osp/telephony/*.h
92 %{_libdir}/osp/debug/*.so*