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