The package rpms/practrand.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/practrand.git/commit/?id=26e37f39....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit 26e37f391ff728f07ff6b14136a7deec4b5e1393
Author: Jirka Hladky <jhladky(a)redhat.com>
Date: Thu Apr 15 03:32:27 2021 +0200
Initial package version
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8b2e530
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/PractRand-0.951.tar.gz
diff --git a/practrand.spec b/practrand.spec
new file mode 100644
index 0000000..e8b2314
--- /dev/null
+++ b/practrand.spec
@@ -0,0 +1,77 @@
+Summary: Software package for the Randon number generation & testing
+Name: practrand
+Version: 0.951
+Release: 2%{?dist}
+License: CC0
+URL:
https://sourceforge.net/projects/pracrand/
+# Temporary fork with minor modifications, mainly regarding the documentation and man
pages
+# We wil switch to official version once it's released:
https://sourceforge.net/projects/pracrand/files/
+Source0:
https://github.com/jirka-h/PractRand/archive/%{version}/PractRand-%{versi...
+BuildRequires: gcc-c++, help2man, valgrind, dos2unix, sed
+
+%description
+Software package for the Random number generation & testing.
+A suite of statistical tests for fast PRNGs. Multithreaded for speed,
+command-line tools for automation, no upper limit on data size.
+A variety of C++ pseudo-random number generators with well-designed
+interfaces aimed at practical uses, not just research.
+
+Features:
+ * A convenient & powerful interface to RNG algorithms
+ * A variety of fast high quality RNG algorithms
+ * Fast & effective statistical tests for RNGs
+
+%prep
+#Create %%{name}-%%{version} directory and unpack Source0
+%setup -q -n PractRand-%{version}
+dos2unix doc/*
+
+%ifarch s390x
+sed -i.bak --regexp-extended -e 's&^(#define PRACTRAND_TARGET_IS_LITTLE_ENDIAN
1)&//\1&g' -e 's&^/+(#define PRACTRAND_TARGET_IS_BIG_ENDIAN
1)&\1&g' include/PractRand/config.h
+%endif
+
+%build
+%set_build_flags
+
+#Make sure to use -g to get debuginfo
+#Upstream sources don't contain working Makefile at the moment. It's planned for
the next release.
+g++ %{build_cxxflags} -c src/*.cpp src/RNGs/*.cpp src/RNGs/other/*.cpp -I include
-std=c++11 -O3 -g
+g++ %{build_cxxflags} -o practrand-RNG_test tools/RNG_test.cpp *o -I include -I tools
-pthread -std=c++11 -O3 -g
+g++ %{build_cxxflags} -o practrand-RNG_output tools/RNG_output.cpp *o -I include -I tools
-pthread -std=c++11 -O3 -g
+g++ %{build_cxxflags} -o practrand-RNG_benchmark tools/RNG_benchmark.cpp *o -I include -I
tools -pthread -std=c++11 -O3 -g
+
+help2man --no-discard-stderr --include=doc/practrand-RNG_test.examples
./practrand-RNG_test > practrand-RNG_test.1
+help2man --no-discard-stderr ./practrand-RNG_output > practrand-RNG_output.1
+help2man --no-discard-stderr ./practrand-RNG_benchmark > practrand-RNG_benchmark.1
+
+%check
+./practrand-RNG_test jsf64 -tlmax 512M
+./practrand-RNG_output jsf64 536870912 | ./practrand-RNG_test stdin32 -tlmax 512M
+./practrand-RNG_benchmark
+
+%install
+mkdir -p %{buildroot}%{_docdir}/%{name}
+mv doc/license.txt .
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -Dp -m0644 practrand-RNG_*1 %{buildroot}%{_mandir}/man1
+
+mkdir -p %{buildroot}%{_bindir}
+install -Dp -m0755 practrand-RNG_test practrand-RNG_output practrand-RNG_benchmark
%{buildroot}%{_bindir}
+
+
+%files
+%license license.txt
+%doc doc/
+%{_mandir}/man1/*
+%{_bindir}/*
+
+%changelog
+* Fri Apr 02 2021 Jirka Hladky <hladky.jiri(a)gmail.com> - 0.951-2
+- Use recommended CXXFLAGS
+
+* Tue Feb 23 2021 Jirka Hladky <hladky.jiri(a)gmail.com> - 0.951-1
+- Improved documentation
+
+* Sun Jan 19 2020 Jirka Hladky <hladky.jiri(a)gmail.com> - 0.95-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..1b234bb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (PractRand-0.951.tar.gz) =
d167fc3abed559b6b41db95b523c44e1c8a0c15a774b3712d83399159fabe614f3e6d86d1ef99342217799f77c4e31c0b35c4fe3fd477868f6a9f776f668efec