2024-07-16 21:51:21 +00:00
committed by Git OBS Bridge
parent 4cd0d56c2d
commit 519fe7aa17

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Math-Random # spec file for package perl-Math-Random
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,30 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
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_name Math-Random
Name: perl-Math-Random
Version: 0.720.0
Release: 0
# 0.72 -> normalize -> 0.720.0
%define cpan_version 0.72
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
License: Artistic-1.0 OR GPL-2.0-or-later
Summary: Random Number Generators Summary: Random Number Generators
License: Artistic-1.0 or GPL-2.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/G/GR/GROMMEL/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Math-Random/
Source0: http://www.cpan.org/authors/id/G/GR/GROMMEL/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
Provides: perl(Math::Random) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
*Math::Random* is a *Perl* port of the *C* version of *randlib*, which is a *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 suite of routines for generating random deviates. See "RANDLIB" for more
for more information. information.
This port supports all of the distributions from which the *Fortran* and This port supports all of the distributions from which the *Fortran* and
*C* versions generate deviates. The major functionalities that are excluded *C* versions generate deviates. The major functionalities that are excluded
@@ -47,15 +49,16 @@ facilities will be included in a future release. The code to perform the
excluded facilities is available as *randlib* in *Fortran* and *C* source. excluded facilities is available as *randlib* in *Fortran* and *C* source.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -63,7 +66,6 @@ find . -type f -print0 | xargs -0 chmod 644
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes Index README %doc Changes Index README
%changelog %changelog