blob: 49551067ddb9a08555c0bc06b33fa48fcdafc4b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Name: libcryptsvc
Summary: Crypto Service Library
Version: 0.0.1
Release: 6
Group: Security/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: libcryptsvc.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(libtzplatform-config)
Requires: pkgconfig(libtzplatform-config)
%description
Crypto Service Library.
%package devel
Summary: Crypto Service Library (Development)
Group: Security/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Crypto Service Library (Development).
%prep
%setup -q
cp %{SOURCE1001} .
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %ix86 x86_64
%cmake . -DARCH=x86 \
%else
%cmake . -DARCH=arm \
%endif
-DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}" \
-DTZ_SYS_ETC=%TZ_SYS_ETC
make %{?jobs:-j%jobs}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%license LICENSE.APLv2
%{_libdir}/*.so*
%attr(755,root,root) %{TZ_SYS_ETC}/duid-gadget
%files devel
%manifest %{name}.manifest
%{_includedir}/*
%{_libdir}/pkgconfig/cryptsvc.pc
|