]>
Commit | Line | Data |
---|---|---|
747209ad JB |
1 | # |
2 | # Conditional build: | |
e9243564 | 3 | %bcond_without tests # do not perform "make test" |
747209ad JB |
4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
caa6cfda | 6 | %define pdir Math |
7 | %define pnam LogRand | |
747209ad | 8 | Summary: Math::LogRand - returns a random number with log weighting |
aae2f575 | 9 | Summary(pl.UTF-8): Math::LogRand - liczby losowe z rozkładem logarytmicznym |
747209ad | 10 | Name: perl-Math-LogRand |
daf2fd5c | 11 | Version: 0.02 |
747209ad JB |
12 | Release: 1 |
13 | License: unknown | |
14 | Group: Development/Languages/Perl | |
69391640 | 15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
daf2fd5c | 16 | # Source0-md5: 595104d1cbb3c4ae865fbbc1f956b97f |
69391640 | 17 | URL: http://search.cpan.org/dist/Math-LogRand/ |
edec7420 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
747209ad JB |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Accepts arguments: the floor of distribution, and the ceilling of | |
25 | distribution. Returns a 'random' integer produced by the Perl rand() | |
26 | function, between input parameters, with weighting to low integers by | |
27 | log distribution. | |
28 | ||
06efb7ef JR |
29 | %description -l pl.UTF-8 |
30 | Funkcja LogRand jako argumenty przyjmuje początek i koniec przedziału. | |
31 | Zwraca całkowitą liczbę "losową" wyprodukowaną przez perlową funkcję | |
32 | rand() z podanego przedziału o rozkładzie logarytmicznym. | |
747209ad JB |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
747209ad JB |
40 | %{__make} |
41 | ||
e9243564 | 42 | %{?with_tests:%{__make} test} |
747209ad JB |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc Changes | |
56 | %{perl_vendorlib}/Math/LogRand.pm | |
57 | %{_mandir}/man3/* |