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)
This commit is contained in:
Paul Howarth 2023-04-18 11:56:39 +01:00
parent bca5a4c44c
commit b3a886cd72
3 changed files with 35 additions and 8 deletions

View File

@ -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 = (

View File

@ -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 <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 0.039-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

View File

@ -1 +1 @@
2332c90c17454107fea3f2614e11a3a9 Module-Build-Tiny-0.039.tar.gz
SHA512 (Module-Build-Tiny-0.041.tar.gz) = b7503f7618071340d66f49975f82d70fc3c81d725b381cdb464ca67e0b1f537667b18f7b2668cc674f67f1055893315c20dc926a46fdc8fdf8334454d4b8faa9