File xmss.spec of Package xmss
#
# spec file for package xmss
#
# Copyright (c) 2025 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/
#
%define sover 2
Name: xmss
Version: 2.0.0
Release: 0
Summary: Extended Merkle Signature Scheme library (post quantum safe)
License: MIT
Group: Development/Languages/C and C++
URL: https://github.com/FoxCryptoNL/xmss-library/
Source0: https://github.com/FoxCryptoNL/xmss-library/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: xmss-pkgconfig.patch
BuildRequires: cmake
BuildRequires: gcc-c++
%description
Extended Merkle Signature Scheme is a post-quantum safe signature algorithm.
This library is a pure C99 implementation of the XMSS algorithm.
%package -n libxmss2
Summary: Extended Merkle Signature Scheme library
Group: System/Libraries
%description -n libxmss2
Extended Merkle Signature Scheme is a post-quantum safe signature algorithm.
This library is a pure C99 implementation of the XMSS algorithm.
%package devel
Summary: Headers for the Extended Merkle Signature Scheme library
Group: Development/Languages/C and C++
%description devel
Development files for xmss-library, a post-quantum safe signature algorithm library.
%prep
%autosetup -n xmss-library-%{version} -p1
%build
export CXXFLAGS="%{optflags} -DBUILD_BENCHMARKS=OFF -DBUILD_SHARED_LIBS=ON"
%cmake
%cmake_build
%install
%cmake_install
%check
cd build
%make_build test
%ldconfig_scriptlets -n libxmss2
%files -n libxmss2
%doc LICENSE.txt README.md
%{_libdir}/libxmss.so.%{sover}*
%files devel
%{_libdir}/libxmss.so
%doc LICENSE.txt README.md
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%changelog