forked from perl/perl-Math-Random
Accepting request 328285 from devel:languages:perl:autoupdate
- updated to 0.72 see /usr/share/doc/packages/perl-Math-Random/Changes 0.72 Sat Aug 29 21:51:19 2015 - The random seed was based on time of day and was a bit too predictable. Applying patch provided by Jonathan Yu: https://rt.cpan.org/Public/Bug/Display.html?id=48080 OBS-URL: https://build.opensuse.org/request/show/328285 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-Random?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
2149b3285f
commit
4cd0d56c2d
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Math-Random
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,53 +15,43 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Math-Random
|
||||
Version: 0.72
|
||||
Release: 0
|
||||
#Upstream: CHECK(GPL-1.0+ or Artistic-1.0)
|
||||
%define cpan_name Math-Random
|
||||
%define cpan_path Math
|
||||
Summary: Random Number Generators
|
||||
Version: 0.71
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
License: Artistic-1.0 or GPL-2.0+
|
||||
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.gz
|
||||
Source0: http://www.cpan.org/authors/id/G/GR/GROMMEL/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%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)
|
||||
*Math::Random* is a *Perl* port of the *C* version of *randlib*, which is a
|
||||
suite of routines for generating random deviates. See the "RANDLIB" manpage
|
||||
for more information.
|
||||
|
||||
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>
|
||||
This port supports all of the distributions from which the *Fortran* and
|
||||
*C* versions generate deviates. The major functionalities that are excluded
|
||||
are the multiple generators/splitting facility and antithetic random number
|
||||
generation. These facilities, along with some of the distributions which
|
||||
_are_ included, are probably not of interest except to the very
|
||||
sophisticated user. If there is sufficient interest, the excluded
|
||||
facilities will be included in a future release. The code to perform the
|
||||
excluded facilities is available as *randlib* in *Fortran* and *C* source.
|
||||
|
||||
%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
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
@@ -70,16 +60,10 @@ Authors:
|
||||
%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
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes Index README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user