2022-01-02 16:41:40 +01:00
|
|
|
#
|
2022-07-02 11:24:27 +02:00
|
|
|
# spec file for package liboqs
|
2022-01-02 16:41:40 +01:00
|
|
|
#
|
2023-03-29 12:56:36 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-01-02 16:41:40 +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.
|
|
|
|
|
2022-07-02 11:24:27 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2022-01-02 16:41:40 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: liboqs
|
2023-10-13 10:39:50 +02:00
|
|
|
Version: 0.9.0
|
2022-01-02 16:41:40 +01:00
|
|
|
Release: 0
|
2022-01-03 10:10:21 +01:00
|
|
|
Summary: C library for quantum-resistant cryptographic algorithms
|
2022-01-02 16:41:40 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Security
|
2022-07-02 11:24:27 +02:00
|
|
|
URL: https://github.com/open-quantum-safe/liboqs/
|
|
|
|
Source: https://github.com/open-quantum-safe/liboqs/archive/refs/tags/%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch0: liboqs-fix-build.patch
|
2023-06-13 13:10:59 +02:00
|
|
|
Patch1: liboqs-fix-prototypemismatch.patch
|
2022-07-02 11:24:27 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libopenssl-devel
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%description
|
2022-11-16 09:34:44 +01:00
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
2022-01-02 16:41:40 +01:00
|
|
|
|
2023-10-13 10:39:50 +02:00
|
|
|
%package -n liboqs4
|
2022-01-03 10:10:21 +01:00
|
|
|
Summary: C library for quantum-resistant cryptographic algorithms
|
2022-01-02 16:41:40 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2023-10-13 10:39:50 +02:00
|
|
|
%description -n liboqs4
|
2022-11-16 09:34:44 +01:00
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%package devel
|
2022-11-16 09:34:44 +01:00
|
|
|
Summary: Headers for liboqs, a library for quantum-resistant cryptography
|
2022-01-02 16:41:40 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2023-10-13 10:39:50 +02:00
|
|
|
Requires: liboqs4 = %{version}
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%description devel
|
2022-11-16 09:34:44 +01:00
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%prep
|
2022-01-03 10:10:21 +01:00
|
|
|
%autosetup -p1
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%build
|
2022-07-02 11:24:27 +02:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -std=gnu11"
|
|
|
|
|
|
|
|
# 20220702: The %%cmake macro can't be used because a 'CMakeLists.txt' folder
|
|
|
|
# exists
|
|
|
|
cmake -S . -B build -DBUILD_SHARED_LIBS:BOOL=ON -DOQS_DIST_BUILD:BOOL=ON
|
|
|
|
|
|
|
|
pushd build
|
|
|
|
%cmake_build
|
|
|
|
popd
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2022-07-02 11:24:27 +02:00
|
|
|
|
2022-01-02 16:41:40 +01:00
|
|
|
# need to find out what cmake option is needed
|
2022-07-02 11:24:27 +02:00
|
|
|
mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix}
|
|
|
|
|
2023-06-13 13:10:59 +02:00
|
|
|
#if [ "%{_lib}" != "lib" ]; then
|
|
|
|
# mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
|
|
|
|
#fi
|
2022-07-02 11:24:27 +02:00
|
|
|
|
|
|
|
rmdir %{buildroot}%{_prefix}/local/
|
2022-01-02 16:41:40 +01:00
|
|
|
|
2023-10-13 10:39:50 +02:00
|
|
|
%post -n liboqs4 -p /sbin/ldconfig
|
|
|
|
%postun -n liboqs4 -p /sbin/ldconfig
|
2022-01-02 16:41:40 +01:00
|
|
|
|
2023-10-13 10:39:50 +02:00
|
|
|
%files -n liboqs4
|
2022-07-02 11:24:27 +02:00
|
|
|
%license LICENSE.txt
|
2023-10-13 10:39:50 +02:00
|
|
|
%{_libdir}/liboqs.so.0.9.0
|
|
|
|
%{_libdir}/liboqs.so.4
|
2022-11-16 09:34:44 +01:00
|
|
|
%doc README.md
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%files devel
|
2022-07-02 11:24:27 +02:00
|
|
|
%license LICENSE.txt
|
2022-01-02 16:41:40 +01:00
|
|
|
%dir %{_includedir}/oqs
|
|
|
|
%{_includedir}/oqs/*
|
2022-07-02 11:24:27 +02:00
|
|
|
%{_libdir}/liboqs.so
|
2023-06-13 13:10:59 +02:00
|
|
|
%{_libdir}/pkgconfig/liboqs.pc
|
2022-07-02 11:24:27 +02:00
|
|
|
%dir %{_libdir}/cmake/
|
|
|
|
%dir %{_libdir}/cmake/liboqs/
|
2023-06-13 13:10:59 +02:00
|
|
|
%{_libdir}/cmake/liboqs/liboqsTargets-noconfig.cmake
|
|
|
|
%{_libdir}/cmake/liboqs/liboqsTargets.cmake
|
2022-07-02 11:24:27 +02:00
|
|
|
%{_libdir}/cmake/liboqs/liboqsConfig.cmake
|
2023-06-13 13:10:59 +02:00
|
|
|
%{_libdir}/cmake/liboqs/liboqsConfigVersion.cmake
|
2022-01-02 16:41:40 +01:00
|
|
|
|
|
|
|
%changelog
|