%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
-%define pdir Math
-%define pnam Random
+%define pdir Math
+%define pnam Random
Summary: Math::Random - random number generators
-Summary(pl): Math::Random - generatory liczb losowych
+Summary(pl.UTF-8): Math::Random - generatory liczb losowych
Name: perl-Math-Random
-Version: 0.67
-Release: 2
+Version: 0.71
+Release: 1
# same as perl except some C code
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 021006f39529940ae318c7c105d01a44
-BuildRequires: perl-devel >= 5.8.0
+Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 55d7579c670ecd180f71fd157a2d2070
+URL: http://search.cpan.org/dist/Math-Random/
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Math::Random is a Perl port of the C version of randlib, which is
a suite of routines for generating random deviates.
-%description -l pl
+%description -l pl.UTF-8
Math::Random jest perlowym portem napisanej w C biblioteki randlib,
-bêd±cej zbiorem procedur do generowania liczb losowych.
+będącej zbiorem procedur do generowania liczb losowych.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ INSTALLDIRS=vendor
install -d $RPM_BUILD_ROOT%{_examplesdir}
cp -r examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%files
%defattr(644,root,root,755)
%doc Changes README MANIFEST
+%{perl_vendorarch}/Math/*.pm
+%dir %{perl_vendorarch}/auto/Math/Random
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Random/*.so
+%{perl_vendorarch}/auto/Math/Random/*.ix
+%{perl_vendorarch}/auto/Math/Random/*.bs
%dir %{_examplesdir}/%{name}-%{version}
%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
-%{perl_vendorarch}/%{pdir}/*.pm
-%dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
-%attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.so
-%{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.ix
-%{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.bs
%{_mandir}/man3/*