-
Notifications
You must be signed in to change notification settings - Fork 3
/
libzpc.spec
108 lines (77 loc) · 2.94 KB
/
libzpc.spec
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Name: libzpc
Version: 1.2.0
Release: 1%{?dist}
Summary: Open Source library for the IBM Z Protected-key crypto feature
License: MIT
Url: https://github.com/opencryptoki/libzpc
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
ExclusiveArch: s390x
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: g++
BuildRequires: make
BuildRequires: json-c-devel
#Additional prerequisites for building the test program: libjson-c devel
#Additional prereqs for building the html and latex doc: doxygen >= 1.8.17, latex, bibtex
# Be explicit about the soversion in order to avoid unintentional changes.
%global soversion 1
%description
The IBM Z Protected-key Crypto library libzpc is an open-source library
targeting the 64-bit Linux on IBM Z (s390x) platform. It provides interfaces
for cryptographic primitives. The underlying implementations make use of
z/Architecture's extensive performance-boosting hardware support and its
protected-key feature which ensures that key material is never present in
main memory at any time.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package static
Summary: Static library version %{name}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
The %{name}-static package contains the static library of %{name}.
%prep
%autosetup %{name}-%{version}
# The following options can be passed to cmake:
# -DCMAKE_INSTALL_PREFIX=<path> :
# Change the install prefix from `/usr/local/` to `<path>`.
# -DCMAKE_BUILD_TYPE=<type> : Choose predefined build options.
# The choices for `<type>` are `Debug`, `Release`, `RelWithDebInfo`,
# and `MinSizeRel`.
# -DBUILD_SHARED_LIBS=ON : Build a shared object (instead of an archive).
# -DBUILD_TEST=ON : Build the test program.
# -DBUILD_DOC=ON : Build the html and latex doc.
%build
%cmake
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%doc README.md CHANGES.md
%license LICENSE
%{_libdir}/%{name}.so.%{soversion}*
%files devel
%{_includedir}/zpc/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so
%files static
%{_libdir}/%{name}.a
%changelog
* Thu Dec 07 2023 Joerg Schmidbauer <[email protected]> - 1.2.0
- Support for get/set intermediate iv for CBC and XTS.
- Support for internal iv for GCM.
* Fri Sep 15 2023 Joerg Schmidbauer <[email protected]> - 1.1.1
- Exploit PKEY_KBLOB2PROTK2 for AES EP11 version 6 keys.
* Thu Feb 02 2023 Joerg Schmidbauer <[email protected]> - 1.1.0
- Support for ECC keys and ECDSA signatures.
* Wed Jun 22 2022 Joerg Schmidbauer <[email protected]> - 1.0.1
- Updated spec file for rpm build and changed location
of pkgconfig file to libdir.
* Mon Feb 21 2022 Joerg Schmidbauer <[email protected]> - 1.0.0
- Initial version based on libzpc provided by Patrick Steuer,