forked from pool/perl-Data-Random
		
	Accepting request 1312568 from devel:languages:perl
- updated to 0.140.0 (0.14)
   see /usr/share/doc/packages/perl-Data-Random/Changes
  0.14      2025-10-11 03:23:58-07:00 America/Los_Angeles
            - work around new warning in perl-5.43.2 about escaping whitespace
            - fix repository URL typo in dist.ini that caused broken MetaCPAN links
            Thanks to JKEENAN (James E Keenan) for both fixes
OBS-URL: https://build.opensuse.org/request/show/1312568
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Data-Random?expand=0&rev=4
			
			
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package perl-Data-Random | ||||
| # | ||||
| # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. | ||||
| # Copyright (c) 2025 SUSE LLC and contributors | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -12,29 +12,33 @@ | ||||
| # 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-Data-Random | ||||
| Version:        0.13 | ||||
| Release:        0 | ||||
| %define cpan_name Data-Random | ||||
| Summary:        Perl module to generate random data | ||||
| Name:           perl-Data-Random | ||||
| Version:        0.140.0 | ||||
| Release:        0 | ||||
| # 0.14 -> normalize -> 0.140.0 | ||||
| %define cpan_version 0.14 | ||||
| License:        Artistic-1.0 OR GPL-1.0-or-later | ||||
| Group:          Development/Libraries/Perl | ||||
| Url:            http://search.cpan.org/dist/Data-Random/ | ||||
| Source0:        https://cpan.metacpan.org/authors/id/B/BA/BAREFOOT/%{cpan_name}-%{version}.tar.gz | ||||
| Summary:        Perl module to generate random data | ||||
| URL:            https://metacpan.org/release/%{cpan_name} | ||||
| Source0:        https://cpan.metacpan.org/authors/id/B/BA/BAREFOOT/%{cpan_name}-%{cpan_version}.tar.gz | ||||
| Source1:        cpanspec.yml | ||||
| Source100:      README.md | ||||
| BuildArch:      noarch | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| BuildRequires:  perl | ||||
| BuildRequires:  perl-macros | ||||
| BuildRequires:  perl(File::ShareDir::Install) >= 0.06 | ||||
| BuildRequires:  perl(File::ShareDir::Install) >= 0.60 | ||||
| BuildRequires:  perl(Test::MockTime) | ||||
| BuildRequires:  perl(Test::More) >= 0.88 | ||||
| BuildRequires:  perl(Time::Piece) >= 1.16 | ||||
| Requires:       perl(Time::Piece) >= 1.16 | ||||
| Provides:       perl(Data::Random) = %{version} | ||||
| Provides:       perl(Data::Random::WordList) = %{version} | ||||
| %undefine       __perllib_provides | ||||
| Recommends:     perl(GD) | ||||
| %{perl_requires} | ||||
|  | ||||
| @@ -42,18 +46,19 @@ Recommends:     perl(GD) | ||||
| A module used to generate random data. Useful mostly for test programs. | ||||
|  | ||||
| %prep | ||||
| %setup -q -n %{cpan_name}-%{version} | ||||
| find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 | ||||
| %autosetup -n %{cpan_name}-%{cpan_version} -p1 | ||||
|  | ||||
| find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 | ||||
| # MANUAL BEGIN | ||||
| sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL | ||||
| # MANUAL END | ||||
|  | ||||
| %build | ||||
| %{__perl} Makefile.PL INSTALLDIRS=vendor | ||||
| %{__make} %{?_smp_mflags} | ||||
| perl Makefile.PL INSTALLDIRS=vendor | ||||
| %make_build | ||||
|  | ||||
| %check | ||||
| %{__make} test | ||||
| make test | ||||
|  | ||||
| %install | ||||
| %perl_make_install | ||||
| @@ -61,7 +66,6 @@ sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/ | ||||
| %perl_gen_filelist | ||||
|  | ||||
| %files -f %{name}.files | ||||
| %defattr(-,root,root,755) | ||||
| %doc Changes README | ||||
| %license LICENSE | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user