From 8d3fe437d3f2fd2c38aa4fa71f92b928b0cb467ba5d71dba8c5c20d4ac45c6ed Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 29 Oct 2021 12:04:49 +0000 Subject: [PATCH] Accepting request 928009 from home:markkp:branches:security New package per IBM request, Jira # SLE-18746. Please make me maintainer/bugowner of the package. OBS-URL: https://build.opensuse.org/request/show/928009 OBS-URL: https://build.opensuse.org/package/show/security/libzpc?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + libzpc-1.0.0.tar.gz | 3 ++ libzpc-rpmlintrc | 2 ++ libzpc.changes | 4 +++ libzpc.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libzpc-1.0.0.tar.gz create mode 100644 libzpc-rpmlintrc create mode 100644 libzpc.changes create mode 100644 libzpc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libzpc-1.0.0.tar.gz b/libzpc-1.0.0.tar.gz new file mode 100644 index 0000000..675fbb0 --- /dev/null +++ b/libzpc-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b873f0d41406e7dbb3408f402ff3579c170f239318f9464f2486978704e4b1ab +size 81398 diff --git a/libzpc-rpmlintrc b/libzpc-rpmlintrc new file mode 100644 index 0000000..7060862 --- /dev/null +++ b/libzpc-rpmlintrc @@ -0,0 +1,2 @@ +addFilter("libzpc1.* executable-stack /usr/lib64/libzpc.so") + diff --git a/libzpc.changes b/libzpc.changes new file mode 100644 index 0000000..0274a3f --- /dev/null +++ b/libzpc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Oct 19 21:49:30 UTC 2021 - Mark Post + +- Initial version 1.0.0 (jsc#SLE-18746) diff --git a/libzpc.spec b/libzpc.spec new file mode 100644 index 0000000..53ddcfc --- /dev/null +++ b/libzpc.spec @@ -0,0 +1,86 @@ +# +# spec file for package libzpc +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libzpc +Version: 1.0.0 +Release: 0 +Summary: IBM Z Protected-key Crypto library +License: Apache-2.0 +Group: Productivity/Security +URL: https://github.com/opencryptoki/libzpc +Source: libzpc-1.0.0.tar.gz +BuildRequires: cmake >= 3.10 +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: libjson-c-devel +ExclusiveArch: s390x + +%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 -n libzpc1 +Summary: Library +Group: System/Libraries + +%description -n libzpc1 +This package contains the shared library to work with the +IBM protected-key cryptography hardware + +%package devel +Summary: Deep Learning Library development files +Requires: libzpc0 = %{version}-%{release} + +%description devel +This package provides the sole include file and symbolic link to the +shared library for the libzpc RPM. + +%prep +%setup -q + +%build +mkdir build && cd build +cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DBUILD_DOC=ON +%make_build + +%install +cd build +%make_install + +%post -n libzpc1 -p /sbin/ldconfig + +%postun -n libzpc1 -p /sbin/ldconfig + +%files -n libzpc1 +%doc README.md +%license LICENSE +%{_libdir}/libzpc.so.1 +%{_libdir}/libzpc.so.1.0.0 + +%files devel +%dir %{_includedir}/zpc +%{_includedir}/zpc/*.h +%{_libdir}/libzpc.so +%{_datadir}/pkgconfig/libzpc.pc + +%changelog