]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-LogRand.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Math-LogRand.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Math
6 %define         pnam    LogRand
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
10 Version:        0.04
11 Release:        1
12 License:        unknown
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
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
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.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make}
40
41 %{?with_tests:%{__make} test}
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/*
This page took 2.020181 seconds and 3 git commands to generate.