!1 Init package with version 0.008
From: @desert-sailor Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
7691c6344d
9
0001-Fix-building-on-Perl-without-dot-in-INC.patch
Normal file
9
0001-Fix-building-on-Perl-without-dot-in-INC.patch
Normal file
@ -0,0 +1,9 @@
|
||||
diff -up Module-Install-ExtraTests-0.008/Makefile.PL.orig Module-Install-ExtraTests-0.008/Makefile.PL
|
||||
--- Module-Install-ExtraTests-0.008/Makefile.PL.orig 2017-05-17 09:10:47.882555187 +0200
|
||||
+++ Module-Install-ExtraTests-0.008/Makefile.PL 2017-05-17 09:10:30.546634860 +0200
|
||||
@@ -1,3 +1,5 @@
|
||||
+BEGIN { push @INC, '.'; }
|
||||
+
|
||||
use inc::Module::Install;
|
||||
name('Module-Install-ExtraTests');
|
||||
all_from('lib/Module/Install/ExtraTests.pm');
|
||||
BIN
Module-Install-ExtraTests-0.008.tar.gz
Normal file
BIN
Module-Install-ExtraTests-0.008.tar.gz
Normal file
Binary file not shown.
67
perl-Module-Install-ExtraTests.spec
Normal file
67
perl-Module-Install-ExtraTests.spec
Normal file
@ -0,0 +1,67 @@
|
||||
Name: perl-Module-Install-ExtraTests
|
||||
Version: 0.008
|
||||
Release: 1
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
Summary: Ignorable, contextual test support for Module::Install
|
||||
Url: https://metacpan.org/release/Module-Install-ExtraTests
|
||||
Source: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Module-Install-ExtraTests-%{version}.tar.gz
|
||||
Patch0: 0001-Fix-building-on-Perl-without-dot-in-INC.patch
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MM_Unix)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(strict)
|
||||
# Run-time
|
||||
BuildRequires: perl(ExtUtils::Command)
|
||||
BuildRequires: perl(File::Spec)
|
||||
# Tests
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(ExtUtils::Command)
|
||||
Requires: perl(File::Find)
|
||||
Requires: perl(File::Spec)
|
||||
|
||||
%description
|
||||
This allows extra_tests; to be declared in Makefile.PL, indicating that the
|
||||
test files found in the directory ./xt should be run only in certain
|
||||
instances:
|
||||
|
||||
./xt/author - run when the tests are being run in an author's working copy
|
||||
./xt/smoke - run when the dist is being smoked (AUTOMATED_TESTING=1)
|
||||
./xt/release - run during "make disttest"
|
||||
|
||||
%prep
|
||||
%setup -q -n Module-Install-ExtraTests-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes LICENSE README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 21 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.008-1
|
||||
- Initial package
|
||||
Loading…
x
Reference in New Issue
Block a user