2024-05-03 15:25:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package liboqs
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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: liboqs
|
2025-01-08 16:29:07 +01:00
|
|
|
Version: 0.12.0
|
2024-05-03 15:25:37 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C library for quantum-resistant cryptographic algorithms
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Security
|
|
|
|
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
|
|
|
|
Patch1: liboqs-fix-prototypemismatch.patch
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
|
|
|
|
2025-01-08 16:29:07 +01:00
|
|
|
%package -n liboqs7
|
2024-05-03 15:25:37 +02:00
|
|
|
Summary: C library for quantum-resistant cryptographic algorithms
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2025-01-08 16:29:07 +01:00
|
|
|
%description -n liboqs7
|
2024-05-03 15:25:37 +02:00
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers for liboqs, a library for quantum-resistant cryptography
|
|
|
|
Group: Development/Languages/C and C++
|
2025-01-08 16:29:07 +01:00
|
|
|
Requires: liboqs7 = %{version}
|
2024-05-03 15:25:37 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
liboqs is a C library for quantum-resistant cryptographic algorithms.
|
|
|
|
See the bundled README.md for particular limitations on intended use.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
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
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
# need to find out what cmake option is needed
|
|
|
|
mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix}
|
|
|
|
|
|
|
|
#if [ "%{_lib}" != "lib" ]; then
|
|
|
|
# mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
|
|
|
|
#fi
|
|
|
|
|
|
|
|
rmdir %{buildroot}%{_prefix}/local/
|
|
|
|
|
2025-01-08 16:29:07 +01:00
|
|
|
%post -n liboqs7 -p /sbin/ldconfig
|
|
|
|
%postun -n liboqs7 -p /sbin/ldconfig
|
2024-05-03 15:25:37 +02:00
|
|
|
|
2025-01-08 16:29:07 +01:00
|
|
|
%files -n liboqs7
|
2024-05-03 15:25:37 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%{_libdir}/liboqs.so.%version
|
2025-01-08 16:29:07 +01:00
|
|
|
%{_libdir}/liboqs.so.7
|
2024-05-03 15:25:37 +02:00
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE.txt
|
|
|
|
%dir %{_includedir}/oqs
|
|
|
|
%{_includedir}/oqs/*
|
|
|
|
%{_libdir}/liboqs.so
|
|
|
|
%{_libdir}/pkgconfig/liboqs.pc
|
|
|
|
%dir %{_libdir}/cmake/
|
|
|
|
%dir %{_libdir}/cmake/liboqs/
|
|
|
|
%{_libdir}/cmake/liboqs/liboqsTargets-noconfig.cmake
|
|
|
|
%{_libdir}/cmake/liboqs/liboqsTargets.cmake
|
|
|
|
%{_libdir}/cmake/liboqs/liboqsConfig.cmake
|
|
|
|
%{_libdir}/cmake/liboqs/liboqsConfigVersion.cmake
|
|
|
|
|
|
|
|
%changelog
|