Blame SPECS/libzpc.spec

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