blob: a35d3c5650faba54f690c2d8c3552ed3c9bf93c4 (
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
|
Name: libcryptsvc
Summary: Crypto Service Library
Version: 0.0.1
Release: 6
Group: Security/Libraries
License: Apache-2.0 and Flora
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(openssl)
%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
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %ix86 x86_64
%cmake . -DARCH=x86 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}"
%else
%cmake . -DARCH=arm -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}"
%endif
make %{?jobs:-j%jobs}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE.APLv2 LICENSE.Flora
%{_libdir}/*.so*
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/cryptsvc.pc
|