2024-09-03 15:15:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package openrng
|
|
|
|
#
|
|
|
|
# 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: openrng
|
2024-11-05 16:28:58 +00:00
|
|
|
Version: 24.10
|
|
|
|
%define lname libopenrng1
|
2024-09-03 15:15:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Random Number Generator library
|
|
|
|
License: MIT
|
2024-09-03 15:19:17 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-09-03 15:15:01 +00:00
|
|
|
URL: https://gitlab.arm.com/libraries/openrng
|
|
|
|
Source0: https://gitlab.arm.com/libraries/openrng/-/archive/v%{version}/openrng-v%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
2024-11-05 16:28:58 +00:00
|
|
|
BuildRequires: gcc-c++ >= 11
|
|
|
|
BuildRequires: Catch2-devel
|
2024-09-03 15:15:01 +00:00
|
|
|
ExclusiveArch: aarch64 x86_64
|
|
|
|
|
|
|
|
%description
|
2024-09-03 17:16:50 +00:00
|
|
|
OpenRNG is a Random Number Generator library developed at ARM,
|
|
|
|
with VSL interfaces and oneMKL-like generators/initializations.
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Random Number Generator library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{lname}
|
2024-09-03 15:19:17 +00:00
|
|
|
OpenRNG is a Random Number Generator library developed at ARM. It
|
|
|
|
includes the interface to the random number generation part of the
|
|
|
|
Vector Statistics Library (VSL) developed by Intel and shipped for
|
|
|
|
x86 processors as part of oneMKL1.
|
2024-09-03 15:15:01 +00:00
|
|
|
|
2024-09-03 15:19:17 +00:00
|
|
|
The same generators and initializations are used as documented
|
|
|
|
for oneMKL. Functions which return bit sequences are bitwise
|
|
|
|
reproducible between ARM and x86. If an integer or floating point
|
|
|
|
answer is requested, answers may differ as the precision of
|
|
|
|
various operations is different between the two libraries.
|
2024-09-03 15:15:01 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers and libraries for openrng
|
|
|
|
Group: Development/Libraries/C and C++
|
2024-09-03 17:16:50 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2024-09-03 15:15:01 +00:00
|
|
|
|
|
|
|
%description devel
|
2024-09-03 15:19:17 +00:00
|
|
|
This package contains the development libraries and headers for openrng.
|
2024-09-03 15:15:01 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n openrng-v%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
2024-11-05 16:28:58 +00:00
|
|
|
-DBUILD_TESTING=ON \
|
|
|
|
-DOPENRNG_LOCAL_CATCH=On
|
2024-09-03 15:15:01 +00:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2024-11-05 16:28:58 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
2024-09-03 15:15:01 +00:00
|
|
|
|
2024-09-03 17:16:50 +00:00
|
|
|
%ldconfig_scriptlets -n %{lname}
|
|
|
|
|
|
|
|
%files -n %{lname}
|
2024-09-03 15:15:01 +00:00
|
|
|
%license LICENSE
|
2024-11-05 16:28:58 +00:00
|
|
|
%{_libdir}/libopenrng.so.*
|
2024-09-03 15:15:01 +00:00
|
|
|
|
|
|
|
%files devel
|
2024-09-03 17:16:50 +00:00
|
|
|
%doc README.md
|
2024-09-03 15:15:01 +00:00
|
|
|
%{_includedir}/openrng.h
|
|
|
|
%{_libdir}/libopenrng.so
|
|
|
|
|
2024-09-03 15:19:17 +00:00
|
|
|
%changelog
|