import libzpc-1.0.1-1.el8

This commit is contained in:
CentOS Sources 2023-05-16 06:07:02 +00:00 committed by root
commit 3ac8b44ecd
3 changed files with 83 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/libzpc-1.0.1.tar.gz

1
.libzpc.metadata Normal file
View File

@ -0,0 +1 @@
c7be71b5f4139b724ba6a8e058898056c9a7b09e SOURCES/libzpc-1.0.1.tar.gz

81
SPECS/libzpc.spec Normal file
View File

@ -0,0 +1,81 @@
Name: libzpc
Version: 1.0.1
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: cpp
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}.
%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
%changelog
* Mon Nov 14 2022 Jakub Čajka <jcajka@redhat.com> - 1.0.1-1
- Initial package import
- Resolves: RHBZ#2131701, RHBZ#1922196