From 973d669b834b360194b307078404ef6794ddad4a Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 29 Mar 2024 15:59:05 +0300 Subject: [PATCH] import libzpc-1.2.0-1.el8 --- .gitignore | 1 + .libzpc.metadata | 1 + SPECS/libzpc.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 .gitignore create mode 100644 .libzpc.metadata create mode 100644 SPECS/libzpc.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72083b9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libzpc-1.2.0.tar.gz diff --git a/.libzpc.metadata b/.libzpc.metadata new file mode 100644 index 0000000..a4d2a13 --- /dev/null +++ b/.libzpc.metadata @@ -0,0 +1 @@ +5acf42a9922f3d7115183b77372d271ef4196e23 SOURCES/libzpc-1.2.0.tar.gz diff --git a/SPECS/libzpc.spec b/SPECS/libzpc.spec new file mode 100644 index 0000000..4f6a759 --- /dev/null +++ b/SPECS/libzpc.spec @@ -0,0 +1,95 @@ +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: 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= : +# Change the install prefix from `/usr/local/` to ``. +# -DCMAKE_BUILD_TYPE= : Choose predefined build options. +# The choices for `` 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 +* Fri Jan 12 2024 Jakub Čajka - 1.2.0-1 +- Update to version 1.2.0 +- Resolves: RHEL-11419 + +* Fri Nov 10 2023 Jakub Čajka - 1.1.1-1 +- Update to version 1.1.1 +- Resolves: RHEL-11419 + +* Tue May 09 2023 Jakub Čajka - 1.1.0-1 +- Update to version 1.1.0 +- Support for ECC +- Resolves: RHBZ#2110910, RHBZ#2174733 + +* Mon Nov 14 2022 Jakub Čajka - 1.0.1-1 +- Initial package import +- Resolves: RHBZ#2131701, RHBZ#1922196 +