commit a069bd81cbbe7699cf28edaf6d51d1bd60f6445e Author: Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> Date: Sun Feb 27 14:02:32 2011 +0100 sources perl-Math-Random-ISAAC.spec | 56 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 2 files changed, 57 insertions(+), 0 deletions(-) --- diff --git a/perl-Math-Random-ISAAC.spec b/perl-Math-Random-ISAAC.spec new file mode 100644 index 0000000..ebacdfb --- /dev/null +++ b/perl-Math-Random-ISAAC.spec @@ -0,0 +1,56 @@ +Name: perl-Math-Random-ISAAC +Version: 1.004 +Release: 2%{?dist} +Summary: Perl interface to the ISAAC PRNG algorithm +License: MIT or GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Math-Random-ISAAC/ +Source0: http://www.cpan.org/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::LeakTrace) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::NoWarnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +As with other Pseudo-Random Number Generator (PRNG) algorithms like the +Mersenne Twister (see Math::Random::MT), this algorithm is designed to take +some seed information and produce seemingly random results as output. + +%prep +%setup -q -n Math-Random-ISAAC-%{version} +sed -i 's/\r//' examples/*.pl + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes examples LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Feb 25 2011 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> 1.004-2 +- Bump the release number. + +* Sun Feb 19 2011 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> 1.004-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..9ac0ac4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +46110b9a7bb96fe641bdfaf35bdafec5 Math-Random-ISAAC-1.004.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel