Init package with version 0.008

This commit is contained in:
desert-sailor 2024-02-21 11:40:43 +08:00
parent 9081fde3fc
commit 5b1971f9e2
3 changed files with 76 additions and 0 deletions

View 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');

Binary file not shown.

View 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