2010-08-04 15:59:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Math-Random (Version 0.71)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Math-Random
|
|
|
|
%define cpan_name Math-Random
|
|
|
|
%define cpan_path Math
|
|
|
|
Summary: Random Number Generators
|
|
|
|
Version: 0.71
|
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Math-Random/
|
|
|
|
#Source: http://www.cpan.org/modules/by-module/Math/Math-Random-%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:42:21 +00:00
|
|
|
%{perl_requires}
|
2010-08-04 15:59:38 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
|
|
|
%description
|
|
|
|
Math::Random is a Perl port of the C version of randlib, which is a suite
|
|
|
|
of routines for generating random deviates. See "RANDLIB" for more
|
|
|
|
information.
|
|
|
|
Capabilities of wide interest include the generation of:
|
|
|
|
uniform numbers between 0 and 1 (or user chosen boundaries)
|
|
|
|
random integers between user specified bounds
|
|
|
|
random permutations of a list (shuffle a deck of cards)
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
John Venier and Barry W. Brown with help from SWIG
|
|
|
|
various cosmetic changes [0.61]
|
|
|
|
Geoffrey Rommel <grommel [at] cpan [dot] org>
|
|
|
|
randlib was compiled and written by
|
|
|
|
Barry W. Brown, James Lovato, Kathy Russell, and
|
|
|
|
John Venier <jvenier@mdanderson.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
# rpmlint
|
|
|
|
# script-without-shebang
|
|
|
|
%{__chmod} a-x Random.pm
|
|
|
|
# spurious-executable-perm
|
|
|
|
%{__chmod} a-x Changes README example.pl
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
# cleanup
|
|
|
|
%{__rm} $RPM_BUILD_ROOT%perl_vendorarch/%{cpan_path}/test*.pl
|
|
|
|
%{__rm} $RPM_BUILD_ROOT%perl_vendorarch/%{cpan_path}/example.pl
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README example.pl
|
|
|
|
|
|
|
|
%changelog
|