From e08b3e32fb7ef9d0406d484d3587a5baa06803d2 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Tue, 18 Jul 2023 17:14:01 +0200 Subject: [PATCH] Initial import (fedora#2223569). --- .gitignore | 1 + oqsprovider.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 52 insertions(+) create mode 100644 .gitignore create mode 100644 oqsprovider.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2fca94c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/0.5.0.tar.gz diff --git a/oqsprovider.spec b/oqsprovider.spec new file mode 100644 index 0000000..939aef8 --- /dev/null +++ b/oqsprovider.spec @@ -0,0 +1,50 @@ +%global oqs_version 0.5.0 +Name: oqsprovider +Version: %{oqs_version} +Release: 1%{?dist} +Summary: oqsprovider is an OpenSSL provider for quantum-safe algorithms based on liboqs + +License: Apache-2.0 AND MIT +URL: https://github.com/open-quantum-safe/oqs-provider.git +Source: https://github.com/open-quantum-safe/oqs-provider/archive/refs/tags/0.5.0.tar.gz + +Requires: liboqs +Requires: openssl +BuildRequires: ninja-build +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: liboqs-devel +BuildRequires: openssl-devel + +%description +oqs-provider fully enables quantum-safe cryptography for KEM key +establishment in TLS1.3 including management of such keys via the OpenSSL (3.0) +provider interface and hybrid KEM schemes. Also, QSC signatures including CMS +functionality are available via the OpenSSL EVP interface. Key persistence is +provided via the encode/decode mechanism and X.509 data structures. + +%prep +%setup -T -b 0 -q -n oqs-provider-%{oqs_version} + +%build +%cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -LAH .. +%cmake_build + +%check +cd "%{_vpath_builddir}" +ctest -V + +%install +mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ossl-modules +install %{_vpath_builddir}/lib/oqsprovider.so.%{oqs_version} $RPM_BUILD_ROOT/%{_libdir}/ossl-modules +(cd $RPM_BUILD_ROOT/%{_libdir}/ossl-modules/ && ln -s oqsprovider.so.%{oqs_version} oqsprovider.so) + +%files +%license LICENSE.txt +%{_libdir}/ossl-modules/oqsprovider.so.%{oqs_version} +%{_libdir}/ossl-modules/oqsprovider.so + +%changelog +* Tue Jul 18 2023 Dmitry Belyavskiy - 0.5.0-1 +- Initial build of oqsprovider for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..8bb5f24 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (0.5.0.tar.gz) = b2ba707de58f640b065d195cd930568ab8cd733a465d29ce2878b17e01e5357dc7737bf61ae890dc5936a754b952d13cafb1c9a65fa95f4fc0eadc6ba80e9df8