init commit
This commit is contained in:
parent
187827a0f1
commit
2c068687e6
52
Package-Generator-1.106-old-Test::More.patch
Normal file
52
Package-Generator-1.106-old-Test::More.patch
Normal file
@ -0,0 +1,52 @@
|
||||
--- t/000-report-versions-tiny.t
|
||||
+++ t/000-report-versions-tiny.t
|
||||
@@ -1,12 +1,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
-# This is a relatively nice way to avoid Test::NoWarnings breaking our
|
||||
-# expectations by adding extra tests, without using no_plan. It also helps
|
||||
-# avoid any other test module that feels introducing random tests, or even
|
||||
-# test plans, is a nice idea.
|
||||
-our $success = 0;
|
||||
-END { $success && done_testing; }
|
||||
+use Test::More tests => 1;
|
||||
|
||||
# List our own version used to generate this
|
||||
my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n";
|
||||
@@ -52,7 +46,7 @@ eval { $v .= pmver('Carp','any version')
|
||||
eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
|
||||
eval { $v .= pmver('Scalar::Util','any version') };
|
||||
eval { $v .= pmver('Symbol','any version') };
|
||||
-eval { $v .= pmver('Test::More','0.96') };
|
||||
+eval { $v .= pmver('Test::More','0.47') };
|
||||
eval { $v .= pmver('strict','any version') };
|
||||
eval { $v .= pmver('warnings','any version') };
|
||||
|
||||
@@ -68,7 +62,6 @@ EOT
|
||||
|
||||
diag($v);
|
||||
ok(1, "we really didn't test anything, just reporting data");
|
||||
-$success = 1;
|
||||
|
||||
# Work around another nasty module on CPAN. :/
|
||||
no warnings 'once';
|
||||
--- xt/release/changes_has_content.t
|
||||
+++ xt/release/changes_has_content.t
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
use Test::More tests => 2;
|
||||
|
||||
-note 'Checking Changes';
|
||||
my $changes_file = 'Changes';
|
||||
my $newver = '1.106';
|
||||
my $trial_token = '-TRIAL';
|
||||
@@ -14,8 +13,6 @@ SKIP: {
|
||||
ok(_get_changes($newver), "$changes_file has content for $newver");
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
|
||||
# by Jerome Quelin
|
||||
sub _get_changes
|
||||
BIN
Package-Generator-1.106.tar.gz
Normal file
BIN
Package-Generator-1.106.tar.gz
Normal file
Binary file not shown.
49
perl-Package-Generator.spec
Normal file
49
perl-Package-Generator.spec
Normal file
@ -0,0 +1,49 @@
|
||||
Name: perl-Package-Generator
|
||||
Version: 1.106
|
||||
Release: 1
|
||||
Summary: Generate new packages quickly and easily
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Package-Generator
|
||||
|
||||
Source0: Package-Generator-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-generators perl(ExtUtils::MakeMaker) >= 6.30 perl(Carp)
|
||||
BuildRequires: perl(Scalar::Util) perl(Params::Util) >= 0.11 perl(Test::More) >= 0.47 perl(Test::Pod)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module lets you quickly and easily construct new packages. It gives
|
||||
them unused names and sets up their package data, if provided.
|
||||
|
||||
%prep
|
||||
%setup -q -n Package-Generator-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
||||
|
||||
%package_help
|
||||
|
||||
%files
|
||||
%doc LICENSE
|
||||
%{perl_vendorlib}/Package/
|
||||
|
||||
%files help
|
||||
%doc Changes README
|
||||
%{_mandir}/man3/Package::Generator.3pm*
|
||||
%{_mandir}/man3/Package::Reaper.3pm*
|
||||
|
||||
%changelog
|
||||
* Sun Dec 1 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.106-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user