Replace hmaccalc by default in Fedora 28+

The aim is to allow HMAC checking the kernel without depending on
userspace crypto implementations.
This commit is contained in:
Ondrej Mosnacek 2018-04-27 12:54:11 +02:00
parent c667bd0117
commit 2f15384a80

View File

@ -6,7 +6,12 @@
# Do we build the replacements packages?
%bcond_with replace_coreutils
%bcond_with replace_fipscheck
# Replace hmaccalc by default in Fedora 28+:
%if 0%{?fedora} <= 27 && 0%{?rhel} <= 7
%bcond_with replace_hmaccalc
%else
%bcond_without replace_hmaccalc
%endif
# This package needs at least Linux Kernel v4.10.0.
%global min_kernel_ver 4.10.0
@ -52,7 +57,6 @@
# Do we replace hmaccalc?
%if %{with replace_hmaccalc}
# TODO: Adapt this when replacing hmaccalc initially.
%global hmaccalc_evr 0.9.14-10%{?dist}
%endif
@ -87,7 +91,7 @@ done \
Name: libkcapi
Version: %{vmajor}.%{vminor}.%{vpatch}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: User space interface to the Linux Kernel Crypto API
License: BSD or GPLv2
@ -416,6 +420,9 @@ popd
%changelog
* Mon Apr 16 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-2
- Enable hmaccalc replacements in Fedora 28+
* Thu Apr 12 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-1
- Update to upstream version 1.1.0