Compare commits

..

No commits in common. "rawhide" and "f24" have entirely different histories.
rawhide ... f24

4 changed files with 48 additions and 101 deletions

2
.gitignore vendored
View File

@ -1,4 +1,2 @@
/Random123-1.08.tar.gz
/Random123-1.09.tar.gz
/Random123-1.13.2.tar.gz
/Random123-1.14.0.tar.gz

View File

@ -1,11 +0,0 @@
diff -ur Random123-1.13.2.orig/include/Random123/uniform.hpp Random123-1.13.2/include/Random123/uniform.hpp
--- Random123-1.13.2.orig/include/Random123/uniform.hpp 2020-02-23 13:48:36.738627640 +0000
+++ Random123-1.13.2/include/Random123/uniform.hpp 2020-02-23 13:48:59.490040126 +0000
@@ -87,6 +87,7 @@
#include <Random123/features/compilerfeatures.h>
#include <limits>
+#include <cstddef>
#if R123_USE_CXX11_TYPE_TRAITS
#include <type_traits>
#endif

View File

@ -1,24 +1,18 @@
%global debug_package %{nil}
Name: Random123
Version: 1.14.0
Release: 5%{?dist}
Version: 1.09
Release: 1%{?dist}
Summary: Library of random number generators
License: BSD
URL: https://github.com/DEShawResearch/random123/
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-add-missing-headers.patch
URL: http://www.deshawresearch.com/resources_random123.html
Source0: http://www.deshawresearch.com/downloads/download_random123.cgi/%{name}-%{version}.tar.gz
# gccfeatures.h has a check that only permits building on x86 x86_64 and ppc
# I'd rather not remove the check
ExcludeArch: %{arm} mips64r2 mips32r2 s390 s390x
# gccfeatures.h mentions what arches are supported
# these aren't on the list
ExcludeArch: mips64r2 mips32r2 s390
BuildRequires: make
BuildRequires: doxygen
# For tests
BuildRequires: gcc gcc-c++
BuildRequires: patch
%description
Random123 is a library of "counter-based" random number generators (CBRNGs), in
@ -43,16 +37,48 @@ Summary: Development files for %{name}
Provides: %{name} = %{version}-%{release}
%description devel
Development files for %{name}.
Random123 is a library of "counter-based" random number generators (CBRNGs), in
which the Nth random number can be obtained by applying a stateless mixing
function to N instead of the conventional approach of using N iterations of a
stateful transformation. CBRNGs were originally developed for use in MD
applications on Anton, but they are ideal for a wide range of applications on
modern multi-core CPUs, GPUs, clusters, and special-purpose hardware. Three
families of non-cryptographic CBRNGs are described in a paper presented at the
SC11 conference: ARS (based on the Advanced Encryption System (AES)), Threefry
(based on the Threefish encryption function), and Philox (based on integer
multiplication). They all satisfy rigorous statistical testing (passing
BigCrush in TestU01), vectorize and parallelize well (each generator can
produce at least 264 independent streams), have long periods (the period of
each stream is at least 2128), require little or no memory or state, and have
excellent performance (a few clock cycles per byte of random output). The
Random123 library can be used with CPU (C and C++) and GPU (CUDA and OpenCL)
applications.
%package doc
Summary: Documentation for %{name}
Summary: Documentation for %{name}.
%description doc
Documentation for %{name}.
Documentation for %{name}
Random123 is a library of "counter-based" random number generators (CBRNGs), in
which the Nth random number can be obtained by applying a stateless mixing
function to N instead of the conventional approach of using N iterations of a
stateful transformation. CBRNGs were originally developed for use in MD
applications on Anton, but they are ideal for a wide range of applications on
modern multi-core CPUs, GPUs, clusters, and special-purpose hardware. Three
families of non-cryptographic CBRNGs are described in a paper presented at the
SC11 conference: ARS (based on the Advanced Encryption System (AES)), Threefry
(based on the Threefish encryption function), and Philox (based on integer
multiplication). They all satisfy rigorous statistical testing (passing
BigCrush in TestU01), vectorize and parallelize well (each generator can
produce at least 264 independent streams), have long periods (the period of
each stream is at least 2128), require little or no memory or state, and have
excellent performance (a few clock cycles per byte of random output). The
Random123 library can be used with CPU (C and C++) and GPU (CUDA and OpenCL)
applications.
%prep
%autosetup -n random123-%{version} -S patch -p1
%setup -q
%build
@ -61,17 +87,14 @@ pushd docs
doxygen Doxyfile
popd
# Wrong file end of line encoding
sed -i 's/\r$//' examples/BUILDVC11.BAT
sed -i 's/\r$//' examples/BUILDVC.BAT
%install
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_includedir}/%{name}/
cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/
%check
pushd tests
cp GNUmakefile Makefile
%set_build_flags
make
popd
%files devel
%license LICENSE
%{_includedir}/%{name}/
@ -80,69 +103,6 @@ popd
%doc examples
%changelog
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sun Jul 04 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.14.0-1
- Update to latest release
- Drop no longer needed s390x patch (merged upstream)
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Mar 08 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.13.2-2
- Include patch to support s390x (sent and accepted upstream)
- Enable s390x build
* Sun Feb 23 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.13.2-1
- Update to latest release
- Run new tests
- Update arches supported
- Drop unneeded patch
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Dec 28 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.09-7
- Add aarch64 patch
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Apr 06 2016 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.09-1
- Update to new release
- Remove noarch

View File

@ -1 +1 @@
SHA512 (Random123-1.14.0.tar.gz) = 1c7d139193f5404e5d14d229f55e0a14b11de596a4cfbf0a39c1419f5ae146055dccc61e9430f724a2d7c1efb8bd01edb72866d4f4705508fcc6ebda6e90e91e
67ae45ff94b12acea590a6aa04ed1123 Random123-1.09.tar.gz