Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-Random?expand=0&rev=8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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)
|
||||
# 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
|
||||
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
|
||||
License: Artistic-1.0 or GPL-2.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Math-Random/
|
||||
Source0: http://www.cpan.org/authors/id/G/GR/GROMMEL/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/G/GR/GROMMEL/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Provides: perl(Math::Random) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{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 the "RANDLIB" manpage
|
||||
for more information.
|
||||
suite of routines for generating random deviates. See "RANDLIB" for more
|
||||
information.
|
||||
|
||||
This port supports all of the distributions from which the *Fortran* and
|
||||
*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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -63,7 +66,6 @@ find . -type f -print0 | xargs -0 chmod 644
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes Index README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user