Blame SPECS/libzpc.spec

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