3 %bcond_without tests # do not perform "make test"
7 Summary: Math::LogRand - returns a random number with log weighting
8 Summary(pl.UTF-8): Math::LogRand - liczby losowe z rozkładem logarytmicznym
9 Name: perl-Math-LogRand
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 06868e51f4c0b58d1903102cfd8ef02f
16 URL: http://search.cpan.org/dist/Math-LogRand/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Accepts arguments: the floor of distribution, and the ceilling of
24 distribution. Returns a 'random' integer produced by the Perl rand()
25 function, between input parameters, with weighting to low integers by
28 %description -l pl.UTF-8
29 Funkcja LogRand jako argumenty przyjmuje początek i koniec przedziału.
30 Zwraca całkowitą liczbę "losową" wyprodukowaną przez perlową funkcję
31 rand() z podanego przedziału o rozkładzie logarytmicznym.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Math/LogRand.pm