1 Name: osp-secure-element
2 Summary: The Secure Element library of OSP
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: osp-secure-element.manifest
10 BuildRequires: pkgconfig(osp-appfw)
11 BuildRequires: osp-appfw-internal-devel
12 BuildRequires: pkgconfig(smartcard-service)
13 BuildRequires: pkgconfig(smartcard-service-common)
19 The Secure Element library of OSP
22 Summary: The Secure Element library of OSP (Development)
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
27 The Secure Element library of OSP (DEV)
29 %package internal-devel
30 Summary: The Secure Element library of OSP (Internal)
31 Group: TO_BE/FILLED_IN
32 Requires: %{name} = %{version}-%{release}
34 %description internal-devel
35 The Secure Element library of OSP (Internal-DEV)
42 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
45 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_"
47 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ "
50 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_"
53 %if 0%{?tizen_build_binary_release_type_eng}
54 CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
57 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
59 # Call make instruction with smp support
64 mkdir -p %{buildroot}/usr/share/license
65 cp LICENSE %{buildroot}/usr/share/license/%{name}
69 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
74 %manifest osp-secure-element.manifest
75 /usr/share/license/%{name}
79 %{_includedir}/osp/*.h
80 %{_libdir}/pkgconfig/osp-secure-element.pc