1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp nfc library
8 Group: System/Libraries
9 License: TO_BE/FILLED_IN
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(chromium)
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(capi-system-info)
15 BuildRequires: pkgconfig(capi-system-device)
16 BuildRequires: pkgconfig(capi-network-nfc)
17 BuildRequires: pkgconfig(osp-appfw)
18 BuildRequires: osp-appfw-internal-devel
19 BuildRequires: pkgconfig(osp-net)
20 BuildRequires: osp-net-internal-devel
30 Summary: osp nfc library (Development)
31 Group: TO_BE/FILLED_IN
32 Requires: %{name} = %{version}-%{release}
37 %package internal-devel
38 Summary: osp nfc library (Internal)
39 Group: TO_BE/FILLED_IN
40 Requires: %{name} = %{version}-%{release}
42 %description internal-devel
43 osp nfc library (Internal-DEV)
46 Summary: osp nfc library (Development)
47 Group: TO_BE/FILLED_IN
48 Requires: %{name} = %{version}-%{release}
57 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
59 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
61 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}
64 # Call make instruction with smp support
69 mkdir -p %{buildroot}/usr/share/license
70 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
71 cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 >> %{buildroot}/usr/share/license/%{name}
75 %post -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
80 %manifest osp-nfc.manifest
81 /usr/share/license/%{name}
85 %{_includedir}/osp/*.h
86 %{_libdir}/pkgconfig/osp-nfc.pc
89 %{_includedir}/osp/net/*.h
92 %{_libdir}/osp/debug/*.so*