105 lines
2.7 KiB
RPMSpec
105 lines
2.7 KiB
RPMSpec
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.6.5)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 2;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
Name: libzpc2
|
|
Version: 2.0.1
|
|
Release: %autorelease
|
|
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}/libzpc-%{version}.tar.gz
|
|
|
|
# post GA fixes
|
|
Patch0: libzpc-2.0.1-fixes.patch
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc
|
|
BuildRequires: g++
|
|
BuildRequires: make
|
|
BuildRequires: clang-tools-extra
|
|
BuildRequires: json-c-devel
|
|
BuildRequires: openssl-devel
|
|
|
|
|
|
%description
|
|
The IBM Z Protected-key Crypto library %{name} is an open-source project
|
|
targeting the 64-bit Linux on IBM Z (s390x) platform. It provides access
|
|
to 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.
|
|
|
|
|
|
%ifarch s390x
|
|
%package -n libzpc-provider
|
|
Summary: OpenSSL provider module for %{name}
|
|
Provides: libzpc2-provider = %{version}-%{release}
|
|
|
|
%description -n libzpc-provider
|
|
The %{name}-provider package contains a provider module for OpenSSL v3.0 (and
|
|
later), interfacing to the protected key feature of z/Architecture.
|
|
%endif
|
|
|
|
|
|
%package -n libzpc-tools
|
|
Summary: Key management tool for %{name} keys
|
|
Provides: libzpc2-tools = %{version}-%{release}
|
|
|
|
%description -n libzpc-tools
|
|
The %{name}-tools package contains a key management tool for key origins.
|
|
As the protected keys itself are volatile, the tooling can be used to manage
|
|
persistent protected key origins, from which protected keys can be (re-)derived.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n libzpc-%{version}
|
|
%global modulesdir %(pkg-config --variable=modulesdir libcrypto)
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
%ifarch s390x
|
|
install -m644 %_vpath_builddir/hbkzpcprovider.conf \
|
|
-D -t $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/openssl.d/
|
|
%endif
|
|
|
|
%check
|
|
%ctest
|
|
|
|
|
|
%ifarch s390x
|
|
%files -n libzpc-provider
|
|
%doc README.md CHANGES.md
|
|
%license LICENSE
|
|
%{modulesdir}/zpcprovider.so
|
|
%{_mandir}/man5/hbkzpcprovider.conf.5*
|
|
%{_mandir}/man7/hbkzpcprovider.7*
|
|
%config(noreplace) %{_sysconfdir}/pki/tls/openssl.d/hbkzpcprovider.conf
|
|
%endif
|
|
|
|
%files -n libzpc-tools
|
|
%doc README.md CHANGES.md
|
|
%license LICENSE
|
|
%{_bindir}/zpckey
|
|
%{_mandir}/man1/zpckey.1*
|
|
|
|
|
|
%changelog
|
|
## START: Generated by rpmautospec
|
|
* Fri Aug 07 2026 Dan Horák <dhorak@redhat.com> - 2.0.1-2
|
|
- enable gating
|
|
|
|
* Fri Aug 07 2026 Dan Horák <dhorak@redhat.com> - 2.0.1-1
|
|
- Initial commit on c9s
|
|
## END: Generated by rpmautospec
|