public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Module-Starter-Plugin-CGIApp] rawhide: Adapt to Module::Starter 1.80+ changes and spec file update
@ 2026-07-12 15:54 Emmanuel Seyman
0 siblings, 0 replies; only message in thread
From: Emmanuel Seyman @ 2026-07-12 15:54 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Module-Starter-Plugin-CGIApp
Branch : rawhide
Commit : 79d4ee2817547597afe5bae0d0ea163bd9ad5a2c
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date : 2026-07-12T17:54:23+02:00
Stats : +66/-22 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Module-Starter-Plugin-CGIApp/c/79d4ee2817547597afe5bae0d0ea163bd9ad5a2c?branch=rawhide
Log:
Adapt to Module::Starter 1.80+ changes and spec file update
---
diff --git a/Module-Starter-Plugin-CGIApp-0.44-author.patch b/Module-Starter-Plugin-CGIApp-0.44-author.patch
new file mode 100644
index 0000000..6602e81
--- /dev/null
+++ b/Module-Starter-Plugin-CGIApp-0.44-author.patch
@@ -0,0 +1,38 @@
+From 5f5954d7c592bc4d59374f83df89e92b24c67265 Mon Sep 17 00:00:00 2001
+From: Filipe Rosset <rosset.filipe@gmail.com>
+Date: Jul 02 2026 04:36:48 +0000
+Subject: spec cleanup and modernization
+
+
+ Fix compatibility with Module::Starter 1.80+ author arrayref rhbz#2436252
+
+Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
+
+---
+
+diff --git a/lib/Module/Starter/Plugin/CGIApp.pm b/lib/Module/Starter/Plugin/CGIApp.pm
+index 29a102c..315a6e8 100644
+--- a/lib/Module/Starter/Plugin/CGIApp.pm
++++ b/lib/Module/Starter/Plugin/CGIApp.pm
+@@ -87,6 +87,10 @@ sub create_distro {
+ $self->{builder} = $self->{builder}->[0];
+ }
+
++ if ( $self->{author} && ref $self->{author} ne 'ARRAY' ) {
++ $self->{author} = [ $self->{author} ];
++ }
++
+ my @modules;
+ foreach my $arg ( @{ $self->{modules} } ) {
+ push @modules, ( split /[,]/msx, $arg );
+@@ -365,6 +369,10 @@ sub render {
+ $opts{$key} = $self->{$key};
+ }
+
++ if ( ref $opts{author} eq 'ARRAY' ) {
++ $opts{author} = join( ', ', @{ $opts{author} } );
++ }
++
+ # [1] HTML::Templates wants loops to be arrays of hashes not plain arrays
+ foreach my $key ( keys %opts ) {
+ if ( ref $opts{$key} eq 'ARRAY' ) {
diff --git a/perl-Module-Starter-Plugin-CGIApp.spec b/perl-Module-Starter-Plugin-CGIApp.spec
index 80eddc5..d488edd 100644
--- a/perl-Module-Starter-Plugin-CGIApp.spec
+++ b/perl-Module-Starter-Plugin-CGIApp.spec
@@ -1,47 +1,48 @@
Name: perl-Module-Starter-Plugin-CGIApp
Version: 0.44
-Release: 32%{?dist}
+Release: 33%{?dist}
Summary: Template based module starter for CGI apps
-# Automatically converted from old format: GPL+ or Artistic - review is highly recommended.
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Module-Starter-Plugin-CGIApp
Source0: https://cpan.metacpan.org/authors/id/J/JA/JALDHAR/Module-Starter-Plugin-CGIApp-%{version}.tar.gz
# https://github.com/jaldhar/Module-Starter-Plugin-CGIApp/pull/3
Patch0: Module-Starter-Plugin-CGIApp-0.44-starter.patch
+Patch1: Module-Starter-Plugin-CGIApp-0.44-author.patch
BuildArch: noarch
+# build requirements
buildrequires: findutils
buildrequires: perl-generators
buildrequires: perl-interpreter
-BuildRequires: perl(base)
-BuildRequires: perl(blib)
+BuildRequires: perl(File::Find)
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# runtime requirements
BuildRequires: perl(Carp)
-BuildRequires: perl(Cwd)
BuildRequires: perl(English)
-BuildRequires: perl(File::Copy::Recursive)
-BuildRequires: perl(File::DirCompare)
-BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTML::Template)
-BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Signature)
-BuildRequires: perl(Module::Starter) >= 1.71
+BuildRequires: perl(Module::Starter) >= 1.80
BuildRequires: perl(Module::Starter::App)
+BuildRequires: perl(base)
+BuildRequires: perl(lib)
+# testing requirements
+BuildRequires: perl(Cwd)
+BuildRequires: perl(File::Copy::Recursive)
+BuildRequires: perl(File::DirCompare)
BuildRequires: perl(Pod::Coverage) >= 0.18
-BuildRequires: perl(strict)
-BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::MockTime)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.22
-BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::WWW::Mechanize::CGIApp)
BuildRequires: perl(Time::Piece)
-BuildRequires: perl(Titanium)
+BuildRequires: perl(blib)
BuildRequires: perl(vars)
-BuildRequires: perl(warnings)
-Requires: perl(Module::Starter) >= 1.71
+Requires: perl(Module::Starter) >= 1.80
%{?perl_default_filter}
# Remove under-specified dependencies:
@@ -55,17 +56,17 @@ CPAN. You can customize the output using HTML::Template.
%prep
%setup -q -n Module-Starter-Plugin-CGIApp-%{version}
%patch -P0 -p1
-
+%patch -P1 -p1
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
-./Build install --destdir $RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+./Build install --destdir %{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} %{buildroot}/*
%check
%{?!_with_signature_test:rm t/00-signature.t}
@@ -73,7 +74,8 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%files
%doc Changes README
-%{perl_vendorlib}/*
+%{perl_vendorlib}/Module/Starter/Plugin/CGIApp.pm
+%{perl_vendorlib}/auto/share/dist/Module-Starter-Plugin-CGIApp/
%{_bindir}/cgiapp-starter
%{_bindir}/titanium-starter
%{_mandir}/man1/cgiapp-starter.1.gz
@@ -81,6 +83,10 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_mandir}/man3/*
%changelog
+* Sun Jul 12 2026 Emmanuel Seyman <emmanuel@seyman.fr> - 0.44-33
+- Fix compatibility with Module::Starter 1.80+ author arrayref rhbz#2436252 (Filipe Rosset)
+- Update spec file
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-12 15:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-12 15:54 [rpms/perl-Module-Starter-Plugin-CGIApp] rawhide: Adapt to Module::Starter 1.80+ changes and spec file update Emmanuel Seyman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox