From 6cf404d4f214205ad00801ec7e1af72f6ccfc213 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sun, 23 Feb 2020 14:07:06 +0000 Subject: [PATCH] Update to 1.13.2 --- .gitignore | 1 + 0001-add-missing-headers.patch | 11 +++++ Random123.spec | 73 ++++++++++++---------------------- sources | 2 +- 4 files changed, 39 insertions(+), 48 deletions(-) create mode 100644 0001-add-missing-headers.patch diff --git a/.gitignore b/.gitignore index efe45c2..45b435b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /Random123-1.08.tar.gz /Random123-1.09.tar.gz +/Random123-1.13.2.tar.gz diff --git a/0001-add-missing-headers.patch b/0001-add-missing-headers.patch new file mode 100644 index 0000000..03539c8 --- /dev/null +++ b/0001-add-missing-headers.patch @@ -0,0 +1,11 @@ +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 + #include ++#include + #if R123_USE_CXX11_TYPE_TRAITS + #include + #endif diff --git a/Random123.spec b/Random123.spec index b2e1d5e..e3ab757 100644 --- a/Random123.spec +++ b/Random123.spec @@ -1,21 +1,23 @@ %global debug_package %{nil} Name: Random123 -Version: 1.09 -Release: 10%{?dist} +Version: 1.13.2 +Release: 1%{?dist} Summary: Library of random number generators License: BSD URL: http://www.deshawresearch.com/resources_random123.html Source0: http://www.deshawresearch.com/downloads/download_random123.cgi/%{name}-%{version}.tar.gz -# works on aarch64 -# https://github.com/neuronsimulator/nrn/pull/115/files -Patch0: 0001-enable-arrch64.patch -# 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 +Patch0: 0001-add-missing-headers.patch + +# gccfeatures.h mentions what arches are supported +# these aren't on the list +ExcludeArch: mips64r2 mips32r2 s390 s390x BuildRequires: doxygen +# For tests +BuildRequires: gcc gcc-c++ +BuildRequires: patch %description Random123 is a library of "counter-based" random number generators (CBRNGs), in @@ -40,48 +42,16 @@ Summary: Development files for %{name} Provides: %{name} = %{version}-%{release} %description devel -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. +Development files for %{name}. %package doc Summary: Documentation for %{name}. %description doc -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. +Documentation for %{name}. %prep -%autosetup -p1 -S patch +%autosetup -S patch -p1 %build @@ -90,14 +60,17 @@ 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}/ @@ -106,6 +79,12 @@ cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/ %doc examples %changelog +* Sun Feb 23 2020 Ankur Sinha - 1.13.2-1 +- Update to latest release +- Run new tests +- Update arches supported +- Drop unneeded patch + * Tue Jan 28 2020 Fedora Release Engineering - 1.09-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 21fe081..e8970c1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -67ae45ff94b12acea590a6aa04ed1123 Random123-1.09.tar.gz +SHA512 (Random123-1.13.2.tar.gz) = 543ed679911177c2da00b920c376abc8c5f4496c9a6a4ed823c295f5222e370bc2b8c9c5b63e93ae507252999eecfc112ae3203a2a82f9deb8747a9f9d387b18