Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trng for openSUSE:Factory checked in at 2023-10-24 20:08:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trng (Old) and /work/SRC/openSUSE:Factory/.trng.new.24901 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trng" Tue Oct 24 20:08:53 2023 rev:5 rq:1119900 version:4.25 Changes: -------- --- /work/SRC/openSUSE:Factory/trng/trng.changes 2022-01-16 23:19:26.074382484 +0100 +++ /work/SRC/openSUSE:Factory/.trng.new.24901/trng.changes 2023-10-24 20:09:01.529982355 +0200 @@ -1,0 +2,18 @@ +Fri Oct 20 13:43:52 UTC 2023 - Atri Bhattacharya <badshah...@gmail.com> + +- Update to version 4.25: + * All unit tests have been converted to Catch2 unit test + framework. + * TRNG can be consumed as a third-party component in CMake-based + projects supporting CMakeâs find_package. + * Support building static or shared libraries depending on the + BUILD_SHARED_LIBS CMake variable. + * Cuda support has been revised to work with Cuda 12.2. + * Experimental support for AMDâs Heterogeneous-compute Interface + for Portabilit (HIP). + * Several minor fixes and improvements. +- Add trng-external-catch.patch -- Allow using external Catch2 for + building and running tests (gh#rabauke/trng4#30). +- Drop trng-drop-findtbb-cmake-module.patch: fixed upstream. + +------------------------------------------------------------------- Old: ---- trng-4.24.tar.gz trng-drop-findtbb-cmake-module.patch New: ---- trng-4.25.tar.gz trng-external-catch.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trng.spec ++++++ --- /var/tmp/diff_new_pack.NFkDVw/_old 2023-10-24 20:09:02.118003733 +0200 +++ /var/tmp/diff_new_pack.NFkDVw/_new 2023-10-24 20:09:02.118003733 +0200 @@ -1,7 +1,7 @@ # # spec file for package trng # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,22 @@ # -%global shlib libtrng4-24 +%global shlib libtrng4-25 Name: trng -Version: 4.24 +Version: 4.25 Release: 0 Summary: A Random Number Generator Library License: BSD-3-Clause URL: https://www.numbercrunch.de/trng/ Source: https://github.com/rabauke/trng4/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM trng-drop-findtbb-cmake-module.patch gh#rabauke/trng4#26 badshah...@gmail.com -- Drop outdated FindTBB.cmake module and depend on TBB's bundled cmake module -Patch0: trng-drop-findtbb-cmake-module.patch +# PATCH-FIX-UPSTREAM trng-external-catch.patch gh#rabauke/trng4#30 badshah...@gmail.com -- Allow using external Catch2 for building and running tests +Patch0: trng-external-catch.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libboost_headers-devel BuildRequires: libboost_test-devel BuildRequires: tbb-devel +BuildRequires: cmake(Catch2) < 3.0 %description TRNG is a pseudo random number generator C++ library. @@ -69,11 +70,9 @@ %install %cmake_install -find %{buildroot}%{_libdir} -name *.a -delete -print %check -export LD_LIBRARY_PATH="%{buildroot}%{_libdir}" -./%{__builddir}/tests/test_all --no_color_output -l test_suite -r short +%ctest %post -n %{shlib} -p /sbin/ldconfig %postun -n %{shlib} -p /sbin/ldconfig @@ -86,5 +85,6 @@ %license COPYING %doc AUTHORS NEWS README.md doc/trng.pdf examples/ %{_libdir}/libtrng4.so +%{_libdir}/cmake/trng4/ %{_includedir}/trng/ ++++++ trng-4.24.tar.gz -> trng-4.25.tar.gz ++++++ ++++ 7478 lines of diff (skipped) ++++++ trng-external-catch.patch ++++++ Index: trng4-4.25/CMakeLists.txt =================================================================== --- trng4-4.25.orig/CMakeLists.txt +++ trng4-4.25/CMakeLists.txt @@ -14,6 +14,7 @@ endif() option(TRNG_ENABLE_TESTS "Enable/Disable the compilation of the TRNG tests" ON) option(TRNG_ENABLE_EXAMPLES "Enable/Disable the compilation of the TRNG examples" ON) +option(USE_EXTERNAL_CATCH "Use system installed Catch2" ON) if(CMAKE_CXX_COMPILER_ID MATCHES GNU) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wmaybe-uninitialized") @@ -42,7 +43,11 @@ configure_package_config_file("cmake/Con add_subdirectory(trng) if(TRNG_ENABLE_TESTS) - add_subdirectory(external/Catch2) + if(USE_EXTERNAL_CATCH) + find_package(Catch2 2 REQUIRED) + else(USE_EXTERNAL_CATCH) + add_subdirectory(external/Catch2) + endif() add_subdirectory(tests) endif() if(TRNG_ENABLE_EXAMPLES)