2022-11-15 16:21:09 +01:00
|
|
|
#
|
|
|
|
# spec file for package oqs-provider
|
|
|
|
#
|
2024-06-11 11:01:53 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-11-15 16:21:09 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: oqs-provider
|
2024-06-11 11:01:53 +02:00
|
|
|
Version: 0.6.0
|
2022-11-15 16:21:09 +01:00
|
|
|
Release: 0
|
2022-11-16 09:27:15 +01:00
|
|
|
Summary: Quantum-safe crypto provider for OpenSSL
|
2022-11-15 16:21:09 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Security
|
|
|
|
URL: https://github.com/open-quantum-safe/oqs-provider/
|
|
|
|
Source: https://github.com/open-quantum-safe/oqs-provider/archive/refs/tags/%{version}.tar.gz#/%name-%version.tar.gz
|
|
|
|
# currently would need libtestutil.a from openssl-3, so basically a copy of openssl-3 to test.
|
2023-06-13 13:11:09 +02:00
|
|
|
Patch1: oqs-provider-disable-test.patch
|
2022-11-15 16:21:09 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libopenssl-3-devel
|
2023-06-13 13:11:09 +02:00
|
|
|
BuildRequires: pkgconfig(liboqs)
|
2022-11-15 16:21:09 +01:00
|
|
|
|
|
|
|
%description
|
2022-11-16 09:27:15 +01:00
|
|
|
This is a plugin/shared library making available quantum-safe cryptography
|
|
|
|
(QSC) to OpenSSL 3.x installations via the Provider API.
|
2022-11-15 16:21:09 +01:00
|
|
|
|
|
|
|
Sample call:
|
|
|
|
|
|
|
|
openssl-3 ciphers -provider oqsprovider
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir build
|
2022-11-16 09:27:15 +01:00
|
|
|
export RPM_OPT_FLAGS="%optflags -std=gnu11"
|
2022-11-15 16:21:09 +01:00
|
|
|
cd build
|
|
|
|
cmake -DBUILD_SHARED_LIBS=ON ..
|
2023-06-13 13:11:09 +02:00
|
|
|
%cmake_build
|
2022-11-15 16:21:09 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %buildroot/%{_libdir}/ossl-modules/
|
|
|
|
|
2023-06-13 13:11:09 +02:00
|
|
|
install -m 755 -c build/lib/oqsprovider.so %buildroot/%{_libdir}/ossl-modules/
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
2022-11-15 16:21:09 +01:00
|
|
|
%dir /%{_libdir}/ossl-modules
|
|
|
|
/%{_libdir}/ossl-modules/oqsprovider.so
|
|
|
|
|
|
|
|
%changelog
|