Blame SPECS/libzpc.spec

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