[packages/perl-Net-IRC] Up to 0.79
arekm
arekm at pld-linux.org
Thu Nov 19 12:12:00 CET 2026
commit e1798b1de6e9c5b34f4cac3c64e6bded6bbd3377
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 00:50:20 2026 +0100
Up to 0.79
perl-Net-IRC-no-prompt.patch | 34 ++++++++++++++++++++++++++++++++++
perl-Net-IRC.spec | 10 ++++++----
2 files changed, 40 insertions(+), 4 deletions(-)
---
diff --git a/perl-Net-IRC.spec b/perl-Net-IRC.spec
index 0eb4689..0d065a2 100644
--- a/perl-Net-IRC.spec
+++ b/perl-Net-IRC.spec
@@ -3,12 +3,13 @@
Summary: Net::IRC perl module
Summary(pl.UTF-8): Moduł Perla Net::IRC
Name: perl-Net-IRC
-Version: 0.75
-Release: 3
+Version: 0.79
+Release: 1
License: Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 57587a48ddece7a995c6b138003ee798
+# Source0-md5: 5849c6e482ade4367d783e04a4530ee6
+Patch0: %{name}-no-prompt.patch
URL: http://search.cpan.org/dist/Net-IRC/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -23,6 +24,7 @@ Net::IRC - interfejs Perla do IRC.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
@@ -40,7 +42,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README TODO
+%doc Changes README
%{perl_vendorlib}/Net/IRC.pm
%{perl_vendorlib}/Net/IRC
%{_mandir}/man3/*
diff --git a/perl-Net-IRC-no-prompt.patch b/perl-Net-IRC-no-prompt.patch
new file mode 100644
index 0000000..8dcda38
--- /dev/null
+++ b/perl-Net-IRC-no-prompt.patch
@@ -0,0 +1,34 @@
+# Makefile.PL demands a typed confirmation on a tty, impossible in a package build
+--- Net-IRC-0.79.orig/Makefile.PL 2026-11-19 00:50:01.389999999 +0100
++++ Net-IRC-0.79/Makefile.PL 2026-11-19 00:50:01.487064964 +0100
+@@ -3,30 +3,6 @@
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.
+
+-exit 0 if $ENV{AUTOMATED_TESTING};
+-my $ok = 'I acknowledge that Net::IRC is unsupported and I wish to proceed.';
+-my $warning = <<WILLROBINSON;
+---------------------------------------------------------------------------------
+-********************************************************************************
+-DANGER, WILL ROBINSON! DANGER!
+-
+-This module has been deprecated, abandoned, and is no longer supported. It has
+-not seen active development in five years, and its original author has moved on.
+-We *STRONGLY* recommend you port your code to either Bot::BasicBot or
+-POE::Component::IRC. Please feel free to stop by irc.freenode.net/#perl for help
+-making this transition. Or, if you insist on proceeding, please type the
+-following line exactly as is and then press Enter:
+-
+-$ok
+-********************************************************************************
+---------------------------------------------------------------------------------
+-WILLROBINSON
+-
+--t STDIN or die $warning;
+-warn $warning;
+-chomp(my $acceptance = <STDIN>);
+-die "Refusing to install due to lack of confirmation" unless $acceptance eq $ok;
+-
+
+ WriteMakefile(
+ 'NAME' => 'Net::IRC',
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-IRC.git/commitdiff/e1798b1de6e9c5b34f4cac3c64e6bded6bbd3377
More information about the pld-cvs-commit
mailing list