%global pkg_name Math-Random %global pkg_version 0.70 %global rpm_pkg_version 0.70 %global rpm_pkg_release 1.n0i.2 Summary: Random Number Generators Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/G/GR/GROMMEL/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) %description Math::Random is a Perl port of the C version of randlib, which is a suite of routines for generating random deviates. See "RANDLIB" for more information. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install -- INSTALLDIRS=vendor} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %exclude %{perl_vendorarch}/Math/*.pl %doc Changes README example.pl %changelog * Sat Oct 13 2007 Marius Feraru - 0.70-1.n0i.2 - version 0.70 * Wed Jun 13 2007 Marius Feraru - 0.69-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - version 0.69