Name: ent Version: 20080128 Release: 1%{?dist} Summary: a pseudorandom number sequence test program License: GPLv2+ URL: http://www.fourmilab.ch/random/ Source0: http://www.fourmilab.ch/random/random.zip #Patch adds possibility to install with current user and not only root #Patch0: %{name}-install.patch BuildRequires: unzip BuildRequires: make BuildRequires: gcc %description Utility ent (as entropy) applies various tests to sequences of bytes stored in files and reports the results of those tests. The program is useful for evaluating pseudorandom number generators for encryption and statistical sampling applications, compression algorithms, and other applications, where the information density of a file is of interest. %prep %autosetup -c -n %{name}-%{version} -p 1 rm -f ent.exe # Cut the license text from documetation to separate license file sed '/
/!d; s//&\n/; s/.*\n//; :a; /<\/blockquote>/bb; $!{n;ba}; :b; s//\n&/; P;D' ent.html > license.txt %build make %{?_smp_mflags} CFLAGS="%{optflags}" %install install -d %{buildroot}%{_bindir} install -m 755 ent %{buildroot}%{_bindir} %check make check %files %doc ent.html entitle.gif %license license.txt %{_bindir}/%{name} %changelog * Fri Jun 15 2018 Michal Ambroz - 20080128-1 - initial build for Fedora 28