Name: perl-Crypt-SysRandom Version: 0.007 Release: 1%{?dist} Summary: Perl interface to system randomness License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Crypt-SysRandom Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-SysRandom-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6.0 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(Carp) BuildRequires: perl(Crypt::SysRandom::XS) BuildRequires: perl(Errno) BuildRequires: perl(Exporter) # Tests BuildRequires: perl(blib) BuildRequires: perl(File::Spec) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) Requires: perl(Crypt::SysRandom::XS) %description This module uses whatever interface is available to procure cryptographically random data from the system. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Crypt-SysRandom-%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 NO_PACKLIST=1 %{make_build} %install %{make_install} %{_fixperms} $RPM_BUILD_ROOT/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %doc Changes README %license LICENSE %{perl_vendorlib}/Crypt* %{_mandir}/man3/Crypt::SysRandom* %files tests %{_libexecdir}/%{name} %changelog * Mon Aug 11 2025 Jitka Plesnikova - 0.007-1 - Specfile autogenerated by cpanspec 1.78. - Package tests