3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::Random - random number generators
9 Summary(pl.UTF-8): Math::Random - generatory liczb losowych
10 Name: perl-Math-Random
13 # same as perl except some C code
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 55d7579c670ecd180f71fd157a2d2070
18 URL: http://search.cpan.org/dist/Math-Random/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Math::Random is a Perl port of the C version of randlib, which is
25 a suite of routines for generating random deviates.
27 %description -l pl.UTF-8
28 Math::Random jest perlowym portem napisanej w C biblioteki randlib,
29 będącej zbiorem procedur do generowania liczb losowych.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
34 mv example.pl examples
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT \
50 install -d $RPM_BUILD_ROOT%{_examplesdir}
51 cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc Changes README MANIFEST
59 %{perl_vendorarch}/Math/*.pm
60 %dir %{perl_vendorarch}/auto/Math/Random
61 %attr(755,root,root) %{perl_vendorarch}/auto/Math/Random/*.so
62 %{perl_vendorarch}/auto/Math/Random/*.ix
63 %dir %{_examplesdir}/%{name}-%{version}
64 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl