]>
Commit | Line | Data |
---|---|---|
747209ad JB |
1 | # |
2 | # Conditional build: | |
e9243564 | 3 | %bcond_without tests # do not perform "make test" |
747209ad | 4 | # |
caa6cfda | 5 | %define pdir Math |
6 | %define pnam LogRand | |
747209ad | 7 | Summary: Math::LogRand - returns a random number with log weighting |
aae2f575 | 8 | Summary(pl.UTF-8): Math::LogRand - liczby losowe z rozkładem logarytmicznym |
747209ad | 9 | Name: perl-Math-LogRand |
5ca5fbf8 | 10 | Version: 0.04 |
747209ad JB |
11 | Release: 1 |
12 | License: unknown | |
13 | Group: Development/Languages/Perl | |
69391640 | 14 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
5ca5fbf8 | 15 | # Source0-md5: 06868e51f4c0b58d1903102cfd8ef02f |
69391640 | 16 | URL: http://search.cpan.org/dist/Math-LogRand/ |
edec7420 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
747209ad JB |
18 | BuildRequires: rpm-perlprov >= 4.1-13 |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
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 | |
26 | log distribution. | |
27 | ||
06efb7ef JR |
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. | |
747209ad JB |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
747209ad JB |
39 | %{__make} |
40 | ||
e9243564 | 41 | %{?with_tests:%{__make} test} |
747209ad JB |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes | |
55 | %{perl_vendorlib}/Math/LogRand.pm | |
56 | %{_mandir}/man3/* |