1 Name: osp-channel-service
2 Summary: osp channel service
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(glib-2.0)
10 BuildRequires: pkgconfig(osp-appfw)
11 BuildRequires: pkgconfig(bundle)
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(chromium)
14 BuildRequires: pkgconfig(libsoup-2.4)
15 BuildRequires: pkgconfig(libssl)
16 BuildRequires: pkgconfig(libsmack)
17 BuildRequires: pkgconfig(message-port)
18 BuildRequires: pkgconfig(openssl)
19 BuildRequires: osp-appfw-internal-devel
23 Requires: osp-installer
24 Requires: osp-app-service
26 Requires(post): coreutils
35 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
37 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
39 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}
42 # Call make instruction with smp support
47 mkdir -p %{buildroot}/usr/share/license
48 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
54 /bin/rm -fr /opt/apps/cp7ipabg4k
56 /usr/etc/package-manager/backend/tpk -i /usr/apps/cp7ipabg4k
57 if [ -f /usr/lib/rpm-plugins/msm.so ]
59 chsmack -a cp7ipabg4k /usr/apps/cp7ipabg4k/bin/osp-channel-service
60 chsmack -e cp7ipabg4k /usr/apps/cp7ipabg4k/bin/osp-channel-service
63 #%postun -p /sbin/ldconfig
66 %manifest osp-channel-service.manifest
67 /usr/share/license/%{name}