CBL-Mariner/SPECS/libacvp/libacvp.spec

69 lines
1.8 KiB
Plaintext

Summary: A library that implements the client-side of the ACVP protocol
Name: libacvp
Version: 1.3.0
Release: 3%{?dist}
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Libraries
URL: https://github.com/cisco/libacvp
Source0: https://github.com/cisco/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: openssl.patch
Patch1: non-static-configure.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: make
%description
A library that implements the client-side of the ACVP protocol.
%package app
Summary: LibACVP application for OpenSSL
Group: Applications/System
BuildRequires: openssl-devel
Requires: openssl-libs
%description app
This app provides the glue between the OpenSSL module under test
and the library itself.
%prep
%autosetup -p1
%build
./configure \
--prefix=%{_prefix} \
--enable-offline \
CFLAGS="-pthread -DACVP_NO_RUNTIME -DOPENSSL_KWP -DOPENSSL_KDF_SUPPORT -O2 -g -fcommon" \
LIBS="-ldl"
make clean
make CC=gcc
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -delete -print
%files
%license LICENSE
%{_datadir}/README.md
%{_libdir}/libacvp.a
%{_includedir}/acvp/*
%files app
%{_bindir}/acvp_app
%changelog
* Wed Oct 05 2022 Andy Caldwell <andycaldwell@microsoft.com> - 1.3.0-3
- Enable building without `glibc-static`
* Wed Nov 17 2021 Andrew Phelps <anphel@microsoft.com> - 1.3.0-2
- Set -fcommon to compile with gcc11
* Fri Jul 30 2021 Nicolas Ontiveros <niontive@microsoft.com> - 1.3.0-1
- Update to version 1.3.0
- Add patch to support OpenSSL ACVP testing.
* Mon Feb 08 2021 Nicolas Ontiveros <niontive@microsoft.com> - 1.2.0-1
- Original version for CBL-Mariner. License verified.