]> git.pld-linux.org Git - packages/perl-Math-LogRand.git/blame - perl-Math-LogRand.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Math-LogRand.git] / perl-Math-LogRand.spec
CommitLineData
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 7Summary: Math::LogRand - returns a random number with log weighting
aae2f575 8Summary(pl.UTF-8): Math::LogRand - liczby losowe z rozkładem logarytmicznym
747209ad 9Name: perl-Math-LogRand
5ca5fbf8 10Version: 0.04
747209ad
JB
11Release: 1
12License: unknown
13Group: Development/Languages/Perl
69391640 14Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
5ca5fbf8 15# Source0-md5: 06868e51f4c0b58d1903102cfd8ef02f
69391640 16URL: http://search.cpan.org/dist/Math-LogRand/
edec7420 17BuildRequires: perl-devel >= 1:5.8.0
747209ad
JB
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Accepts arguments: the floor of distribution, and the ceilling of
24distribution. Returns a 'random' integer produced by the Perl rand()
25function, between input parameters, with weighting to low integers by
26log distribution.
27
06efb7ef
JR
28%description -l pl.UTF-8
29Funkcja LogRand jako argumenty przyjmuje początek i koniec przedziału.
30Zwraca całkowitą liczbę "losową" wyprodukowaną przez perlową funkcję
31rand() 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
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49%clean
50rm -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 0.069085 seconds and 4 git commands to generate.