Blame SPECS/libzpc.spec

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