diff --git a/0001-Fix-building-on-Perl-without-dot-in-INC.patch b/0001-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..f11e01a --- /dev/null +++ b/0001-Fix-building-on-Perl-without-dot-in-INC.patch @@ -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'); diff --git a/Module-Install-ExtraTests-0.008.tar.gz b/Module-Install-ExtraTests-0.008.tar.gz new file mode 100644 index 0000000..1087715 Binary files /dev/null and b/Module-Install-ExtraTests-0.008.tar.gz differ diff --git a/perl-Module-Install-ExtraTests.spec b/perl-Module-Install-ExtraTests.spec new file mode 100644 index 0000000..bf007ef --- /dev/null +++ b/perl-Module-Install-ExtraTests.spec @@ -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 - 0.008-1 +- Initial package