1 %define debug_package %{nil}
2 %define __strip /bin/true
4 Name: osp-secure-element
5 Summary: The Secure Element library of OSP
8 Group: System/Libraries
9 License: LICENSE.Apache-2.0
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(osp-appfw)
13 BuildRequires: osp-appfw-internal-devel
14 BuildRequires: pkgconfig(smartcard-service)
15 BuildRequires: pkgconfig(smartcard-service-common)
21 osp secure element library
24 Summary: osp secure element library (Development)
25 Group: TO_BE/FILLED_IN
26 Requires: %{name} = %{version}-%{release}
29 osp secure element library (DEV)
31 %package internal-devel
32 Summary: osp secure element library (Internal)
33 Group: TO_BE/FILLED_IN
34 Requires: %{name} = %{version}-%{release}
36 %description internal-devel
37 osp secure element library (Internal-DEV)
40 Summary: osp secure element library (Development)
41 Group: TO_BE/FILLED_IN
42 Requires: %{name} = %{version}-%{release}
45 osp secure element library (DEV)
51 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
54 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
56 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
59 CXXFLAGS="-O2 -g -pipe -Wall -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} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
62 # Call make instruction with smp support
67 mkdir -p %{buildroot}/usr/share/license
68 cp %{_builddir}/%{name}-%{version}/LICENSE.Apache-2.0 %{buildroot}/usr/share/license/%{name}
72 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 %manifest osp-secure-element.manifest
78 /usr/share/license/%{name}
82 %{_includedir}/osp/*.h
83 %{_libdir}/pkgconfig/osp-secure-element.pc
86 %{_libdir}/osp/debug/*.so*