]> git.pld-linux.org Git - packages/perl-Math-Random.git/blame - perl-Math-Random.spec
perl 5.38.0 rebuild
[packages/perl-Math-Random.git] / perl-Math-Random.spec
CommitLineData
d6ccddd0 1#
2# Conditional build:
1d300ddb 3%bcond_without tests # do not perform "make test"
d6ccddd0 4#
946d958d 5%define pdir Math
6%define pnam Random
a169a0c4 7Summary: Math::Random - random number generators
c807e92b 8Summary(pl.UTF-8): Math::Random - generatory liczb losowych
d6ccddd0 9Name: perl-Math-Random
5a5c18e2 10Version: 0.71
3e176ab5 11Release: 16
6de8e3d6 12# same as perl except some C code
d6ccddd0 13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
c6ccc838 15Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
5a5c18e2 16# Source0-md5: 55d7579c670ecd180f71fd157a2d2070
c6ccc838 17URL: http://search.cpan.org/dist/Math-Random/
e2971d1c 18BuildRequires: perl-devel >= 1:5.8.0
d6ccddd0 19BuildRequires: rpm-perlprov >= 4.1-13
d6ccddd0 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
8c1e4039 23Math::Random is a Perl port of the C version of randlib, which is
24a suite of routines for generating random deviates.
d6ccddd0 25
df697964 26%description -l pl.UTF-8
8c1e4039 27Math::Random jest perlowym portem napisanej w C biblioteki randlib,
df697964 28będącej zbiorem procedur do generowania liczb losowych.
d6ccddd0 29
30%prep
31%setup -q -n %{pdir}-%{pnam}-%{version}
8c1e4039 32mkdir examples
33mv example.pl examples
d6ccddd0 34
35%build
8c1e4039 36%{__perl} Makefile.PL \
37 INSTALLDIRS=vendor
d6ccddd0 38%{__make}
39
1d300ddb 40%{?with_tests:%{__make} test}
d6ccddd0 41
42%install
43rm -rf $RPM_BUILD_ROOT
d6ccddd0 44
45%{__make} install \
c6ccc838
JB
46 DESTDIR=$RPM_BUILD_ROOT \
47 INSTALLDIRS=vendor
d6ccddd0 48
8c1e4039 49install -d $RPM_BUILD_ROOT%{_examplesdir}
50cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
d6ccddd0 51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README MANIFEST
c6ccc838
JB
58%{perl_vendorarch}/Math/*.pm
59%dir %{perl_vendorarch}/auto/Math/Random
60%attr(755,root,root) %{perl_vendorarch}/auto/Math/Random/*.so
61%{perl_vendorarch}/auto/Math/Random/*.ix
8c1e4039 62%dir %{_examplesdir}/%{name}-%{version}
63%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
d6ccddd0 64%{_mandir}/man3/*
This page took 0.121238 seconds and 4 git commands to generate.