|
|
f58f2a |
Name: libzpc
|
|
|
f58f2a |
Version: 1.0.1
|
|
|
f58f2a |
Release: 1%{?dist}
|
|
|
f58f2a |
Summary: Open Source library for the IBM Z Protected-key crypto feature
|
|
|
f58f2a |
|
|
|
f58f2a |
License: MIT
|
|
|
f58f2a |
Url: https://github.com/opencryptoki/libzpc
|
|
|
f58f2a |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
f58f2a |
|
|
|
f58f2a |
ExclusiveArch: s390x
|
|
|
f58f2a |
BuildRequires: cmake
|
|
|
f58f2a |
BuildRequires: gcc
|
|
|
f58f2a |
BuildRequires: cpp
|
|
|
f58f2a |
BuildRequires: make
|
|
|
f58f2a |
BuildRequires: json-c-devel
|
|
|
f58f2a |
|
|
|
f58f2a |
#Additional prerequisites for building the test program: libjson-c devel
|
|
|
f58f2a |
#Additional prereqs for building the html and latex doc: doxygen >= 1.8.17, latex, bibtex
|
|
|
f58f2a |
|
|
|
f58f2a |
# Be explicit about the soversion in order to avoid unintentional changes.
|
|
|
f58f2a |
%global soversion 1
|
|
|
f58f2a |
|
|
|
f58f2a |
%description
|
|
|
f58f2a |
The IBM Z Protected-key Crypto library libzpc is an open-source library
|
|
|
f58f2a |
targeting the 64-bit Linux on IBM Z (s390x) platform. It provides interfaces
|
|
|
f58f2a |
for cryptographic primitives. The underlying implementations make use of
|
|
|
f58f2a |
z/Architecture's extensive performance-boosting hardware support and its
|
|
|
f58f2a |
protected-key feature which ensures that key material is never present in
|
|
|
f58f2a |
main memory at any time.
|
|
|
f58f2a |
|
|
|
f58f2a |
%package devel
|
|
|
f58f2a |
Summary: Development files for %{name}
|
|
|
f58f2a |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f58f2a |
|
|
|
f58f2a |
%description devel
|
|
|
f58f2a |
The %{name}-devel package contains libraries and header files for
|
|
|
f58f2a |
developing applications that use %{name}.
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%prep
|
|
|
f58f2a |
%autosetup %{name}-%{version}
|
|
|
f58f2a |
|
|
|
f58f2a |
# The following options can be passed to cmake:
|
|
|
f58f2a |
# -DCMAKE_INSTALL_PREFIX=<path> :
|
|
|
f58f2a |
# Change the install prefix from `/usr/local/` to `<path>`.
|
|
|
f58f2a |
# -DCMAKE_BUILD_TYPE=<type> : Choose predefined build options.
|
|
|
f58f2a |
# The choices for `<type>` are `Debug`, `Release`, `RelWithDebInfo`,
|
|
|
f58f2a |
# and `MinSizeRel`.
|
|
|
f58f2a |
# -DBUILD_SHARED_LIBS=ON : Build a shared object (instead of an archive).
|
|
|
f58f2a |
# -DBUILD_TEST=ON : Build the test program.
|
|
|
f58f2a |
# -DBUILD_DOC=ON : Build the html and latex doc.
|
|
|
f58f2a |
%build
|
|
|
f58f2a |
%cmake
|
|
|
f58f2a |
%cmake_build
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%install
|
|
|
f58f2a |
%cmake_install
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%check
|
|
|
f58f2a |
%ctest
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%files
|
|
|
f58f2a |
%doc README.md CHANGES.md
|
|
|
f58f2a |
%license LICENSE
|
|
|
f58f2a |
%{_libdir}/%{name}.so.%{soversion}*
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%files devel
|
|
|
f58f2a |
%{_includedir}/zpc/
|
|
|
f58f2a |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
f58f2a |
%{_libdir}/%{name}.so
|
|
|
f58f2a |
|
|
|
f58f2a |
|
|
|
f58f2a |
%changelog
|
|
|
f58f2a |
* Mon Nov 14 2022 Jakub Čajka <jcajka@redhat.com> - 1.0.1-1
|
|
|
f58f2a |
- Initial package import
|
|
|
f58f2a |
- Resolves: RHBZ#2131701, RHBZ#1922196
|
|
|
f58f2a |
|