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(chromium)
12 BuildRequires: osp-appfw-internal-devel
16 Requires: osp-installer
17 Requires: osp-app-service
19 Requires(post): coreutils
28 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
30 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
32 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}
35 # Call make instruction with smp support
40 mkdir -p %{buildroot}/usr/share/license
41 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
47 /bin/rm -fr /opt/apps/cp7ipabg4k
49 /usr/etc/package-manager/backend/tpk -i /usr/apps/cp7ipabg4k
50 cp -f %{_libdir}/osp/osp-system-service-loader /usr/apps/cp7ipabg4k/bin/osp-channel-service
51 if [ -f /usr/lib/rpm-plugins/msm.so ]
53 chsmack -a osp-channel-service /usr/apps/cp7ipabg4k/bin/osp-channel-service
54 chsmack -e osp-channel-service /usr/apps/cp7ipabg4k/bin/osp-channel-service
57 #%postun -p /sbin/ldconfig
60 %manifest osp-channel-service.manifest
61 /usr/share/license/%{name}