From b3a886cd72ae8d8ad69489902710417279a2be84 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Tue, 18 Apr 2023 11:56:39 +0100 Subject: [PATCH] Update to 0.041 - New upstream release 0.041 - Manify .pod after .pm - Filter out script documentation from scripts - Don't manify podless modules/scripts - Use SPDX-format license tag - Standardize permissions of packaged files - Add fix for POD generation (GH#29) --- Module-Build-Tiny-0.041-pod.patch | 13 +++++++++++++ perl-Module-Build-Tiny.spec | 28 +++++++++++++++++++++------- sources | 2 +- 3 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 Module-Build-Tiny-0.041-pod.patch diff --git a/Module-Build-Tiny-0.041-pod.patch b/Module-Build-Tiny-0.041-pod.patch new file mode 100644 index 0000000..18069f7 --- /dev/null +++ b/Module-Build-Tiny-0.041-pod.patch @@ -0,0 +1,13 @@ +Fix for https://github.com/Perl-Toolchain-Gang/module-build-tiny + +--- lib/Module/Build/Tiny.pm ++++ lib/Module/Build/Tiny.pm +@@ -81,7 +81,7 @@ sub find { + sub contains_pod { + my ($file) = @_; + return unless -T $file; +- return read_file($file) =~ /^\=(?:head|pod|item)/; ++ return read_file($file) =~ /^\=(?:head|pod|item)/m; + } + + my %actions = ( diff --git a/perl-Module-Build-Tiny.spec b/perl-Module-Build-Tiny.spec index e2eb544..f679284 100644 --- a/perl-Module-Build-Tiny.spec +++ b/perl-Module-Build-Tiny.spec @@ -1,12 +1,14 @@ Summary: A tiny replacement for Module::Build Name: perl-Module-Build-Tiny -Version: 0.039 -Release: 25%{?dist} -License: GPL+ or Artistic +Version: 0.041 +Release: 1%{?dist} +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Module-Build-Tiny Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Build-Tiny-%{version}.tar.gz +Patch0: Module-Build-Tiny-0.041-pod.patch BuildArch: noarch # Module Build +BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter # Module @@ -34,13 +36,11 @@ BuildRequires: perl(File::ShareDir) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(IO::File) -BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open2) -BuildRequires: perl(IPC::Open3) -BuildRequires: perl(Test::More) +BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(XSLoader) -# Runtime +# Dependencies Requires: perl(DynaLoader) Requires: perl(ExtUtils::CBuilder) Requires: perl(ExtUtils::ParseXS) @@ -66,12 +66,17 @@ Whereas Module::Build has over 6,700 lines of code; this module has less than %prep %setup -q -n Module-Build-Tiny-%{version} +# Fix pod detection +# https://github.com/Perl-Toolchain-Gang/module-build-tiny/issues/29 +%patch -P 0 + %build perl Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 +%{_fixperms} -c %{buildroot} %check AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test @@ -83,6 +88,15 @@ AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test %{_mandir}/man3/Module::Build::Tiny.3* %changelog +* Tue Apr 18 2023 Paul Howarth - 0.041-1 +- Update to 0.041 + - Manify .pod after .pm + - Filter out script documentation from scripts + - Don't manify podless modules/scripts +- Use SPDX-format license tag +- Standardize permissions of packaged files +- Add fix for POD generation (GH#29) + * Fri Jan 20 2023 Fedora Release Engineering - 0.039-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 1afedc0..fc04fd5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2332c90c17454107fea3f2614e11a3a9 Module-Build-Tiny-0.039.tar.gz +SHA512 (Module-Build-Tiny-0.041.tar.gz) = b7503f7618071340d66f49975f82d70fc3c81d725b381cdb464ca67e0b1f537667b18f7b2668cc674f67f1055893315c20dc926a46fdc8fdf8334454d4b8faa9