From 107af7bfcfdfe6bc43aa018210adf7d88baa05f2 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Sun, 23 May 2021 02:20:01 +0200 Subject: [PATCH 01/27] Perl 5.34 rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 71592a2..a6afa09 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.90 -Release: 11%{?dist} +Release: 12%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -142,6 +142,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Sun May 23 2021 Jitka Plesnikova - 6.90-12 +- Perl 5.34 rebuild + * Wed Jan 27 2021 Fedora Release Engineering - 6.90-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From beef5011945ebea654f445aa0fededdb0bd3d7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 7 Jun 2021 12:30:25 +0200 Subject: [PATCH 02/27] 6.91 bump --- .gitignore | 1 + perl-POE-Component-IRC.spec | 16 +++++++++------- sources | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 79552dc..51c9c4e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ POE-Component-IRC-6.14.tar.gz /POE-Component-IRC-6.68.tar.gz /POE-Component-IRC-6.88.tar.gz /POE-Component-IRC-6.90.tar.gz +/POE-Component-IRC-6.91.tar.gz diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index a6afa09..52a9a96 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -9,8 +9,8 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients -Version: 6.90 -Release: 12%{?dist} +Version: 6.91 +Release: 1%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -23,7 +23,6 @@ BuildRequires: perl(:VERSION) >= 5.8.1 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) -BuildRequires: sed # Run-time: BuildRequires: perl(base) BuildRequires: perl(Carp) @@ -122,14 +121,14 @@ is to it. Cool, no? chmod -c -x examples/* # Remove bundled modules rm -r t/inc/Crypt -sed -i -e '/^t\/inc\/Crypt/d' MANIFEST +perl -i -e 'print $_ unless m{\At/inc/Crypt\b}' MANIFEST %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} +%{make_install} %{_fixperms} %{buildroot}/* %check @@ -142,6 +141,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Mon Jun 07 2021 Petr Pisar - 6.91-1 +- 6.91 bump + * Sun May 23 2021 Jitka Plesnikova - 6.90-12 - Perl 5.34 rebuild diff --git a/sources b/sources index 8b124d4..7a00b5e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (POE-Component-IRC-6.90.tar.gz) = c8106bf740a60dc075f99df40c96f30232f69f1369ea5f68ce10636ab0640536ef2c806d73e721f21c21043ab7c386a1e54e099241bd52070648ffc9fd010750 +SHA512 (POE-Component-IRC-6.91.tar.gz) = 1dc8e4756a18777c1414e7f1b236922de0a8fb4a38e058a3f8e316de86a94ad9ab0ef4135c212f746484ec11ba7cb6cb48fc7526259619da5b6e03d2daa5f9cd From c3b888521afb1babafcd435a888d2788c0629b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 7 Jun 2021 12:32:48 +0200 Subject: [PATCH 03/27] Package the tests --- perl-POE-Component-IRC.rpmlintrc | 1 + perl-POE-Component-IRC.spec | 64 +++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 perl-POE-Component-IRC.rpmlintrc diff --git a/perl-POE-Component-IRC.rpmlintrc b/perl-POE-Component-IRC.rpmlintrc new file mode 100644 index 0000000..a5d5f5e --- /dev/null +++ b/perl-POE-Component-IRC.rpmlintrc @@ -0,0 +1 @@ +addFilter('-tests\.noarch: W: no-documentation') diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 52a9a96..281bd78 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -20,6 +20,7 @@ BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -66,7 +67,6 @@ BuildRequires: perl(Socket6) # Tests: BuildRequires: perl(Crypt::PasswdMD5) BuildRequires: perl(Data::Dumper) -BuildRequires: perl(Digest::MD5) BuildRequires: perl(File::Temp) BuildRequires: perl(lib) # TODO: Unbundle Net::Netmask @@ -106,7 +106,10 @@ Requires: perl(Socket6) %{?perl_default_filter} # Remove under-specified dependencies -%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((IRC::Utils|List::Util|POE|POE::Filter::IRCD)\\)$ +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((IRC::Utils|List::Util|POE|POE::Filter::IRCD|Test::Differences|Test::More)\\)$ +# Remove private modules +%global __requires_exclude %{__requires_exclude}|^perl\\((Net::Netmask|POE::Component::Server::IRC.*)\\)$ +%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\((Net::Netmask|POE::Component::IRC::Test::Plugin|POE::Component::Server::IRC.*)\\) %description POE::Component::IRC is a POE component (who'd have guessed?) which acts as an @@ -116,12 +119,49 @@ where to connect to, and it sends back interesting IRC events when they happen. You make the client do things by sending it events. That's all there is to it. Cool, no? +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: coreutils +Requires: perl-Test-Harness +Requires: perl(IRC::Utils) >= 0.12 +Requires: perl(List::Util) >= 1.33 +Requires: perl(POE) >= 1.311 +%if %{with perl_POE_Component_IRC_enables_dns} +Requires: perl(POE::Component::Client::DNS) >= 0.99 +%endif +Requires: perl(POE::Filter::IRCD) >= 2.42 +Requires: perl(POE::Filter::Line) +%if %{with perl_POE_Component_IRC_enables_zlib} +Requires: perl(POE::Filter::Zlib::Stream) >= 1.96 +%endif +Requires: perl(POE::Wheel::ReadWrite) +Requires: perl(POE::Wheel::SocketFactory) +%if %{with perl_POE_Component_IRC_enables_ipv6} +Requires: perl(Socket::GetAddrInfo) +%endif +%if %{with perl_POE_Component_IRC_enables_ipv6} +Requires: perl(Socket6) +%endif +Requires: perl(Test::Differences) >= 0.61 +Requires: perl(Test::More) >= 0.47 +Provides: bundled(POE-Component-Server-IRC) = 1.52 + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n POE-Component-IRC-%{version} chmod -c -x examples/* # Remove bundled modules rm -r t/inc/Crypt perl -i -e 'print $_ unless m{\At/inc/Crypt\b}' MANIFEST +# Help generators to recognize Perl scripts +for F in $(find t -type f -name '*.t'); do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" + chmod +x "$F" +done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 @@ -130,8 +170,24 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %install %{make_install} %{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a Changes t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/bash +set -e +# t/04_plugins/17_dcc/04_send_spaces.t writes to CWD +DIR=$(mktemp -d) +cp -a %{_libexecdir}/%{name}/* "$DIR" +pushd "$DIR" +prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -r "$DIR" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files @@ -140,9 +196,13 @@ make test %{perl_vendorlib}/* %{_mandir}/man3/*.3* +%files tests +%{_libexecdir}/%{name} + %changelog * Mon Jun 07 2021 Petr Pisar - 6.91-1 - 6.91 bump +- Package the tests * Sun May 23 2021 Jitka Plesnikova - 6.90-12 - Perl 5.34 rebuild From 24b75b7a70f9d786f9f0dfc0a2976be0ae3fc0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 7 Jun 2021 13:43:49 +0200 Subject: [PATCH 04/27] Unbundle Net::Netmask --- perl-POE-Component-IRC.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 281bd78..62cd65f 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -69,7 +69,7 @@ BuildRequires: perl(Crypt::PasswdMD5) BuildRequires: perl(Data::Dumper) BuildRequires: perl(File::Temp) BuildRequires: perl(lib) -# TODO: Unbundle Net::Netmask +BuildRequires: perl(Net::Netmask) BuildRequires: perl(POE::Component::Client::Ident::Agent) # TODO: Unbundle POE::Component::Server::IRC %if %{with perl_POE_Component_IRC_enables_ipv6} @@ -108,8 +108,8 @@ Requires: perl(Socket6) # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((IRC::Utils|List::Util|POE|POE::Filter::IRCD|Test::Differences|Test::More)\\)$ # Remove private modules -%global __requires_exclude %{__requires_exclude}|^perl\\((Net::Netmask|POE::Component::Server::IRC.*)\\)$ -%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\((Net::Netmask|POE::Component::IRC::Test::Plugin|POE::Component::Server::IRC.*)\\) +%global __requires_exclude %{__requires_exclude}|^perl\\(POE::Component::Server::IRC.*\\)$ +%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\((POE::Component::IRC::Test::Plugin|POE::Component::Server::IRC.*)\\) %description POE::Component::IRC is a POE component (who'd have guessed?) which acts as an @@ -155,8 +155,10 @@ with "%{_libexecdir}/%{name}/test". %setup -q -n POE-Component-IRC-%{version} chmod -c -x examples/* # Remove bundled modules -rm -r t/inc/Crypt -perl -i -e 'print $_ unless m{\At/inc/Crypt\b}' MANIFEST +for D in t/inc/Crypt t/inc/Net; do + rm -r "$D" + perl -i -ne 'print $_ unless m{\A\Q'"$D"'\E/}' MANIFEST +done # Help generators to recognize Perl scripts for F in $(find t -type f -name '*.t'); do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" @@ -203,6 +205,7 @@ make test * Mon Jun 07 2021 Petr Pisar - 6.91-1 - 6.91 bump - Package the tests +- Unbundle Net::Netmask * Sun May 23 2021 Jitka Plesnikova - 6.90-12 - Perl 5.34 rebuild From 8fb1f414869bf8938f394d87b4d2ff33a8968630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 7 Jun 2021 13:58:26 +0200 Subject: [PATCH 05/27] Add FMF tests and gating --- .fmf/version | 1 + gating.yaml | 7 +++++++ plans/sanity.fmf | 5 +++++ tests/upstream-tests.fmf | 4 ++++ 4 files changed, 17 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/sanity.fmf create mode 100644 tests/upstream-tests.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..282e16b --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plans/sanity.fmf b/plans/sanity.fmf new file mode 100644 index 0000000..a72ded4 --- /dev/null +++ b/plans/sanity.fmf @@ -0,0 +1,5 @@ +summary: Sanity tests +discover: + how: fmf +execute: + how: tmt diff --git a/tests/upstream-tests.fmf b/tests/upstream-tests.fmf new file mode 100644 index 0000000..e67e129 --- /dev/null +++ b/tests/upstream-tests.fmf @@ -0,0 +1,4 @@ +summary: Upstream tests +component: perl-POE-Component-IRC +require: perl-POE-Component-IRC-tests +test: /usr/libexec/perl-POE-Component-IRC/test From 5c66b157e56227b67fb4a8172aa68db0a216c0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 8 Jun 2021 16:21:48 +0200 Subject: [PATCH 06/27] 6.92 bump --- .gitignore | 1 + perl-POE-Component-IRC.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 51c9c4e..e21b75b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ POE-Component-IRC-6.14.tar.gz /POE-Component-IRC-6.88.tar.gz /POE-Component-IRC-6.90.tar.gz /POE-Component-IRC-6.91.tar.gz +/POE-Component-IRC-6.92.tar.gz diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 62cd65f..64cd29b 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -9,7 +9,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients -Version: 6.91 +Version: 6.92 Release: 1%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz @@ -202,6 +202,9 @@ make test %{_libexecdir}/%{name} %changelog +* Tue Jun 08 2021 Petr Pisar - 6.92-1 +- 6.92 bump + * Mon Jun 07 2021 Petr Pisar - 6.91-1 - 6.91 bump - Package the tests diff --git a/sources b/sources index 7a00b5e..f5b48a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (POE-Component-IRC-6.91.tar.gz) = 1dc8e4756a18777c1414e7f1b236922de0a8fb4a38e058a3f8e316de86a94ad9ab0ef4135c212f746484ec11ba7cb6cb48fc7526259619da5b6e03d2daa5f9cd +SHA512 (POE-Component-IRC-6.92.tar.gz) = ac5889ab0b00a41444693e44e0155ea9ec793b9b19ea0745ab1d6d9aa33c985dfbd28d1edb5b7b25e700e107e7771e611650a4cff298ea6eb116dd1225981210 From 6b449bf8121c4ebfb36984fc11521954a7e0d6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 16 Jun 2021 07:52:38 +0200 Subject: [PATCH 07/27] 6.93 bump --- .gitignore | 1 + perl-POE-Component-IRC.spec | 10 +++++++++- sources | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e21b75b..3631050 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ POE-Component-IRC-6.14.tar.gz /POE-Component-IRC-6.90.tar.gz /POE-Component-IRC-6.91.tar.gz /POE-Component-IRC-6.92.tar.gz +/POE-Component-IRC-6.93.tar.gz diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 64cd29b..6e57b56 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -9,7 +9,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients -Version: 6.92 +Version: 6.93 Release: 1%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz @@ -159,6 +159,11 @@ for D in t/inc/Crypt t/inc/Net; do rm -r "$D" perl -i -ne 'print $_ unless m{\A\Q'"$D"'\E/}' MANIFEST done +# Remove online tests +for T in t/02_behavior/06_online.t; do + rm "$T" + perl -i -ne 'print $_ unless m{\A\Q'"$T"'\E\b}' MANIFEST +done # Help generators to recognize Perl scripts for F in $(find t -type f -name '*.t'); do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" @@ -202,6 +207,9 @@ make test %{_libexecdir}/%{name} %changelog +* Wed Jun 16 2021 Petr Pisar - 6.93-1 +- 6.93 bump + * Tue Jun 08 2021 Petr Pisar - 6.92-1 - 6.92 bump diff --git a/sources b/sources index f5b48a1..86a5ac1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (POE-Component-IRC-6.92.tar.gz) = ac5889ab0b00a41444693e44e0155ea9ec793b9b19ea0745ab1d6d9aa33c985dfbd28d1edb5b7b25e700e107e7771e611650a4cff298ea6eb116dd1225981210 +SHA512 (POE-Component-IRC-6.93.tar.gz) = 334535cb4f02c63fbc8b457b9e5c6d8cb96ef0ac159ac6f810d7cda337f55a729b73115a65dfca11c44ca286d355667500b021cd5408943a1afd2d325ece7be0 From c1e8cbbba5f1bf7ab02c65b089980a44529cc102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= Date: Thu, 8 Jul 2021 01:21:25 +0200 Subject: [PATCH 08/27] Remove obsolete require for Socket6 We can remove Socket6 usage because before Socket6->import is Socket->import with same subroutines. And perl-Socket in Fedora is with ipv6 support. --- perl-POE-Component-IRC.spec | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 6e57b56..39ec353 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -61,9 +61,6 @@ BuildRequires: perl(POE::Wheel::SocketFactory) BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Socket) -%if %{with perl_POE_Component_IRC_enables_ipv6} -BuildRequires: perl(Socket6) -%endif # Tests: BuildRequires: perl(Crypt::PasswdMD5) BuildRequires: perl(Data::Dumper) @@ -99,9 +96,6 @@ Recommends: perl(POE::Filter::Zlib::Stream) >= 1.96 Requires: perl(POE::Wheel::FollowTail) Requires: perl(POE::Wheel::ReadWrite) Requires: perl(POE::Wheel::SocketFactory) -%if %{with perl_POE_Component_IRC_enables_ipv6} -Requires: perl(Socket6) -%endif %{?perl_default_filter} @@ -140,9 +134,6 @@ Requires: perl(POE::Wheel::SocketFactory) %if %{with perl_POE_Component_IRC_enables_ipv6} Requires: perl(Socket::GetAddrInfo) %endif -%if %{with perl_POE_Component_IRC_enables_ipv6} -Requires: perl(Socket6) -%endif Requires: perl(Test::Differences) >= 0.61 Requires: perl(Test::More) >= 0.47 Provides: bundled(POE-Component-Server-IRC) = 1.52 @@ -207,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Wed Jul 07 2021 Michal Josef Špaček - 6.93-2 +- Remove obsolete require for Socket6 + * Wed Jun 16 2021 Petr Pisar - 6.93-1 - 6.93 bump From a2c392ef0d6e8633e579455e118bb7558c8dff72 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 22:51:18 +0000 Subject: [PATCH 09/27] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 39ec353..2560e4e 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -198,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 6.93-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Wed Jul 07 2021 Michal Josef Špaček - 6.93-2 - Remove obsolete require for Socket6 From 9c916009a5b1bd97de3c23328db25733463caed3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 04:16:52 +0000 Subject: [PATCH 10/27] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 2560e4e..04abc55 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -198,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 6.93-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 6.93-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 46f6cc1645106e585138c4c3d889f560e70ab7a9 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 1 Jun 2022 09:55:19 +0200 Subject: [PATCH 11/27] Perl 5.36 rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 04abc55..5c1eb8e 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -198,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Wed Jun 01 2022 Jitka Plesnikova - 6.93-5 +- Perl 5.36 rebuild + * Fri Jan 21 2022 Fedora Release Engineering - 6.93-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From af818897c3cca54c6da00606c83c4d96e5d0a897 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 09:57:23 +0000 Subject: [PATCH 12/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 5c1eb8e..e7dd069 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -198,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 6.93-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Wed Jun 01 2022 Jitka Plesnikova - 6.93-5 - Perl 5.36 rebuild From fba0f339f76b842a55c8f697b26f5e1a1671b0ab Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Fri, 13 Jan 2023 17:47:18 +0100 Subject: [PATCH 13/27] Remove perl(MODULE_COMPAT), it will be replaced by generators --- perl-POE-Component-IRC.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index e7dd069..db28034 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -75,7 +75,6 @@ BuildRequires: perl(Socket::GetAddrInfo) BuildRequires: perl(Test::Differences) >= 0.61 BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(vars) -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(IRC::Utils) >= 0.12 Requires: perl(List::Util) >= 1.33 Requires: perl(overload) From 66c13a963d723f74d814f423d4d2bcfff85e74ba Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 05:03:25 +0000 Subject: [PATCH 14/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index db28034..a6ffb31 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -197,6 +197,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 6.93-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 6.93-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 5ce002acf34b8e83ea9a99a7b20f8187b42ae0ff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 00:41:17 +0000 Subject: [PATCH 15/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index a6ffb31..4c17f86 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 7%{?dist} +Release: 8%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -197,6 +197,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 6.93-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Fri Jan 20 2023 Fedora Release Engineering - 6.93-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 6fe997017733744b879aad70d385761a8f3eff7c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 17:40:14 +0000 Subject: [PATCH 16/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 4c17f86..9e10032 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 8%{?dist} +Release: 9%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -197,6 +197,9 @@ make test %{_libexecdir}/%{name} %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 6.93-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 6.93-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From b8259adac72e6a74d834805c903715080c7bb6ca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 19:18:53 +0000 Subject: [PATCH 17/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 9e10032..5e47c69 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 9%{?dist} +Release: 10%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -197,6 +197,9 @@ make test %{_libexecdir}/%{name} %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 6.93-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 6.93-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 9d553738021ad885482183ace18107562f5deb7c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 03:21:17 +0000 Subject: [PATCH 18/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 5e47c69..53ad880 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 10%{?dist} +Release: 11%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC @@ -197,6 +197,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 6.93-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Thu Jan 25 2024 Fedora Release Engineering - 6.93-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From b005c4a2ba03f781abbab32608a745b8bec8953d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 6 Aug 2024 01:30:21 +0200 Subject: [PATCH 19/27] convert GPL+ or Artistic license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- perl-POE-Component-IRC.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 53ad880..c13bc52 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,8 +10,9 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 11%{?dist} -License: GPL+ or Artistic +Release: 12%{?dist} +# Automatically converted from old format: GPL+ or Artistic - review is highly recommended. +License: GPL-1.0-or-later OR Artistic-1.0-Perl Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz URL: https://metacpan.org/release/POE-Component-IRC BuildArch: noarch @@ -197,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Tue Aug 06 2024 Miroslav Suchý - 6.93-12 +- convert license to SPDX + * Fri Jul 19 2024 Fedora Release Engineering - 6.93-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 6d6163c613f26a0e539b64871a94ed142d0349e9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 05:11:26 +0000 Subject: [PATCH 20/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index c13bc52..19a2f78 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 12%{?dist} +Release: 13%{?dist} # Automatically converted from old format: GPL+ or Artistic - review is highly recommended. License: GPL-1.0-or-later OR Artistic-1.0-Perl Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz @@ -198,6 +198,9 @@ make test %{_libexecdir}/%{name} %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 6.93-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Tue Aug 06 2024 Miroslav Suchý - 6.93-12 - convert license to SPDX From c5cec879c28a6e5de396a4b95ccc226223d92f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 15 May 2025 10:19:11 +0200 Subject: [PATCH 21/27] Fix webirc check in connection configuration --- ...mponent-IRC-6.93-Fix-for-Perl-5.42.0.patch | 36 +++++++++++++++++++ perl-POE-Component-IRC.spec | 10 ++++-- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch diff --git a/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch b/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch new file mode 100644 index 0000000..e63f20e --- /dev/null +++ b/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch @@ -0,0 +1,36 @@ +From: Jitka Plesnikova +CPAN RT#157738 + +diff -up POE-Component-IRC-6.93/lib/POE/Component/IRC.pm.orig POE-Component-IRC-6.93/lib/POE/Component/IRC.pm +--- POE-Component-IRC-6.93/lib/POE/Component/IRC.pm.orig 2021-06-15 20:28:38.000000000 +0200 ++++ POE-Component-IRC-6.93/lib/POE/Component/IRC.pm 2025-04-30 13:15:29.049768752 +0200 +@@ -215,7 +215,7 @@ sub _configure { + } + + if (defined $self->{webirc}) { +- if (!ref $self->{webirc} ne 'HASH') { ++ if (!(ref $self->{webirc} ne 'HASH')) { + die "webirc param expects a hashref"; + } + for my $expect_key (qw(pass user host ip)) { +diff -up POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm.orig POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm +--- POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm.orig 2025-04-30 13:15:58.883615954 +0200 ++++ POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm 2025-04-30 13:18:06.375778420 +0200 +@@ -7135,7 +7135,7 @@ sub _state_peer_route { + sub _state_connected_peers { + my $self = shift; + my $server = uc $self->server_name(); +- return if !keys %{ $self->{state}{peers} } > 1; ++ return if !(keys %{ $self->{state}{peers} } > 1); + my $record = $self->{state}{peers}{$server}; + return map { $record->{peers}{$_}{route_id} } + keys %{ $record->{peers} }; +@@ -7500,7 +7500,7 @@ sub configure { + + if (!defined $self->{config}{INFO} + || ref $self->{config}{INFO} ne 'ARRAY' +- || !@{ $self->{config}{INFO} } == 1) { ++ || !(@{ $self->{config}{INFO} } == 1)) { + $self->{config}{INFO} = [split /\n/, <<'EOF']; + # POE::Component::Server::IRC + # diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 19a2f78..136ce13 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,10 +10,13 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 -Release: 13%{?dist} +Release: 14%{?dist} # Automatically converted from old format: GPL+ or Artistic - review is highly recommended. License: GPL-1.0-or-later OR Artistic-1.0-Perl Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz +# Fix webirc check in connection configuration, CPAN RT#157738, +# proposed to upstream +Patch0: POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch URL: https://metacpan.org/release/POE-Component-IRC BuildArch: noarch BuildRequires: coreutils @@ -143,7 +146,7 @@ Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep -%setup -q -n POE-Component-IRC-%{version} +%autosetup -p1 -n POE-Component-IRC-%{version} chmod -c -x examples/* # Remove bundled modules for D in t/inc/Crypt t/inc/Net; do @@ -198,6 +201,9 @@ make test %{_libexecdir}/%{name} %changelog +* Thu May 15 2025 Petr Pisar - 6.93-14 +- Fix webirc check in connection configuration (CPAN RT#157738) + * Sat Jan 18 2025 Fedora Release Engineering - 6.93-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 15493488afebd3e2a02edc094e63e16ff95229a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 15 May 2025 10:30:42 +0200 Subject: [PATCH 22/27] Modernize a spec file --- perl-POE-Component-IRC.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 136ce13..1cecb2c 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -194,8 +194,13 @@ make test %files %license LICENSE %doc Changes docs/ examples/ -%{perl_vendorlib}/* -%{_mandir}/man3/*.3* +%dir %{perl_vendorlib}/POE +%dir %{perl_vendorlib}/POE/Component +%{perl_vendorlib}/POE/Component/IRC{,.pm} +%dir %{perl_vendorlib}/POE/Filter +%{perl_vendorlib}/POE/Filter/IRC{,.pm} +%{_mandir}/man3/POE::Component::IRC{.,::}* +%{_mandir}/man3/POE::Filter::IRC{.,::}* %files tests %{_libexecdir}/%{name} From b96a16e943863a752b1429ae0c9435cc954c08e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 15 May 2025 10:31:08 +0200 Subject: [PATCH 23/27] Enable more gating tests --- gating.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gating.yaml b/gating.yaml index 282e16b..c778f75 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,7 +1,16 @@ --- !Policy +product_versions: + - fedora-rawhide +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} +--- !Policy product_versions: - fedora-* decision_context: bodhi_update_push_stable subject_type: koji_build rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} From e15da3e060243761164a695f96de992b23730ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 15 May 2025 12:13:56 +0200 Subject: [PATCH 24/27] Remove non-free IETF documents from the package A license of the documents allowed redistribution but did not allow modification. --- .gitignore | 1 + perl-POE-Component-IRC.rpmlintrc | 1 + perl-POE-Component-IRC.spec | 23 ++++++++++- repackage.sh | 66 ++++++++++++++++++++++++++++++++ sources | 2 +- 5 files changed, 90 insertions(+), 3 deletions(-) create mode 100755 repackage.sh diff --git a/.gitignore b/.gitignore index 3631050..5ceaeba 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ POE-Component-IRC-6.14.tar.gz /POE-Component-IRC-6.91.tar.gz /POE-Component-IRC-6.92.tar.gz /POE-Component-IRC-6.93.tar.gz +/POE-Component-IRC-6.93_repackaged.tar.gz diff --git a/perl-POE-Component-IRC.rpmlintrc b/perl-POE-Component-IRC.rpmlintrc index a5d5f5e..9d95585 100644 --- a/perl-POE-Component-IRC.rpmlintrc +++ b/perl-POE-Component-IRC.rpmlintrc @@ -1 +1,2 @@ addFilter('-tests\.noarch: W: no-documentation') +addFilter('invalid-url Source0: POE-Component-IRC-[\d\.]*_repackaged\.tar\.gz') diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 1cecb2c..398c44a 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -11,9 +11,26 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.93 Release: 14%{?dist} -# Automatically converted from old format: GPL+ or Artistic - review is highly recommended. +# LICENSE: (GPL-1.0-or-later OR Artistic-1.0-Perl) declaration, +# GPL-1.0 text and Artistic-1.0 text +# other files: GPL-1.0-or-later OR Artistic-1.0-Perl +# t/inc/Crypt/PasswdMD5.pm: Beerware AND (GPL-1.0-or-later OR Artistic-1.0-Perl) +## Not used at build or in any binary package +# repackage.sh: GPL-2.0-or-later +## Stripped from source archive +# docs/draft-brocklesby-irc-isupport-03.txt: non-free +# docs/draft-mitchell-irc-capabilities-02.html: non-free +# docs/rfc2810.html: non-free +# docs/rfc2811.html: non-free +# docs/rfc2812.html: non-free +# docs/rfc2813.html: non-free License: GPL-1.0-or-later OR Artistic-1.0-Perl -Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%{version}.tar.gz +SourceLicense: (%{license}) AND Beerware AND GPL-2.0-or-later +# Origin Source0 URL: +# https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%%{version}.tar.gz +# stripped from non-free IETF documents with repackage.sh script. +Source0: POE-Component-IRC-%{version}_repackaged.tar.gz +Source1: repackage.sh # Fix webirc check in connection configuration, CPAN RT#157738, # proposed to upstream Patch0: POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch @@ -118,6 +135,7 @@ is to it. Cool, no? %package tests Summary: Tests for %{name} +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Beerware Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness @@ -208,6 +226,7 @@ make test %changelog * Thu May 15 2025 Petr Pisar - 6.93-14 - Fix webirc check in connection configuration (CPAN RT#157738) +- Remove non-free IETF documents from the package * Sat Jan 18 2025 Fedora Release Engineering - 6.93-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/repackage.sh b/repackage.sh new file mode 100755 index 0000000..47ba045 --- /dev/null +++ b/repackage.sh @@ -0,0 +1,66 @@ +#!/bin/bash +# +# Copyright (C) 2010, 2021 Red Hat, Inc. +# Authors: +# Thomas Woerner +# Petr Pisar +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +version=$1 +[ -z "$version" ] && { echo "Usage: $0 "; exit 1; } + +# files to be removed without the main SDL-/ prefix +declare -a REMOVE +REMOVE[${#REMOVE[*]}]="docs/draft-brocklesby-irc-isupport-03.txt" +REMOVE[${#REMOVE[*]}]="docs/draft-mitchell-irc-capabilities-02.html" +REMOVE[${#REMOVE[*]}]="docs/rfc2810.html" +REMOVE[${#REMOVE[*]}]="docs/rfc2811.html" +REMOVE[${#REMOVE[*]}]="docs/rfc2812.html" +REMOVE[${#REMOVE[*]}]="docs/rfc2813.html" + +# no changes below this line should be needed + +orig="POE-Component-IRC-${version}" +orig_tgz="${orig}.tar.gz" +repackaged="${orig}_repackaged" +repackaged_tar="${repackaged}.tar" +repackaged_tgz="${repackaged_tar}.gz" + +# pre checks +[ ! -f "${orig_tgz}" ] && { echo "ERROR: ${orig_tgz} does not exist"; exit 1; } +[ -d "${orig}" ] && { echo "ERROR: ${orig} directory already exist"; exit 1; } +[ -f "${repackaged_tgz}" ] && { echo "ERROR: ${repackaged_tgz} already exist"; exit 1; } + +# repackage +failure=0 +tar -xzf "${orig_tgz}" +for file in "${REMOVE[@]}"; do + rm "${orig}/${file}" 2>> repackage.log + [ $? != 0 ] && { echo "ERROR: Could not remove ${orig}/${file} file."; failure=1; } || echo "${orig}/${file} removed." +done +[ $failure != 0 ] && { echo "See repackage.log for the details."; exit 1; } +tar -czf "${repackaged_tgz}" "${orig}" + +# post checks +RET=0 +for file in "${REMOVE[@]}"; do + found=$(tar -ztvf "${repackaged_tgz}" | grep "${file}") + [ -n "$found" ] && { echo "ERROR: file ${file} is still in the repackaged archive."; RET=1; } +done + +[ $RET == 0 ] && echo "Sucessfully repackaged ${orig}: ${repackaged_tgz}" + +exit $RET diff --git a/sources b/sources index 86a5ac1..820fb6a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (POE-Component-IRC-6.93.tar.gz) = 334535cb4f02c63fbc8b457b9e5c6d8cb96ef0ac159ac6f810d7cda337f55a729b73115a65dfca11c44ca286d355667500b021cd5408943a1afd2d325ece7be0 +SHA512 (POE-Component-IRC-6.93_repackaged.tar.gz) = 329b507ee089d4b03847f197360ffd44dc7a1e2aa70bcfa2e48d16514655359e29fd1f2810b71fbc4c1cb2a67020f024af1624e640a32abd44e85671d104d244 From be2bda08c3a32f0c0c4d46b7123b642fad873a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 15 May 2025 12:20:14 +0200 Subject: [PATCH 25/27] Remove an unused patch The patch has already been merged into upstream release code. --- 0001-apply-fixes-for-rhbz-591215.patch | 146 ------------------------- 1 file changed, 146 deletions(-) delete mode 100644 0001-apply-fixes-for-rhbz-591215.patch diff --git a/0001-apply-fixes-for-rhbz-591215.patch b/0001-apply-fixes-for-rhbz-591215.patch deleted file mode 100644 index 9bf92ab..0000000 --- a/0001-apply-fixes-for-rhbz-591215.patch +++ /dev/null @@ -1,146 +0,0 @@ -From 8fec0161383143419d4cc957e001b0b2fc9fa304 Mon Sep 17 00:00:00 2001 -From: Iain Arnell -Date: Thu, 20 May 2010 19:22:35 +0200 -Subject: [PATCH] apply fixes for rhbz#591215 - -cherry-picked 4f46c29376359b3d7c5b5cd400115103fdef9ca8 -cherry-picked 675f55cd40ceebbc1bd2f309311a066bed41d869 -cherry-picked 9e2a01af6a908f9c1c97431bcbc5f483a7a99e2f ---- - lib/POE/Component/IRC.pm | 19 +++++++------------ - t/02_behavior/14_newline.t | 16 +++++++++------- - xt/perlcriticrc_t | 1 + - 3 files changed, 17 insertions(+), 19 deletions(-) - -diff --git a/lib/POE/Component/IRC.pm b/lib/POE/Component/IRC.pm -index 4fe23da..ecaa50c 100644 ---- a/lib/POE/Component/IRC.pm -+++ b/lib/POE/Component/IRC.pm -@@ -1038,9 +1038,7 @@ sub onlytwoargs { - - # Handler for privmsg or notice events. - sub privandnotice { -- my ($kernel, $state, $to) = @_[KERNEL, STATE, ARG0]; -- my $message = join ' ', @_[ARG1 .. $#_]; -- my @messages = split /\n/, $message; -+ my ($kernel, $state, $to, $msg) = @_[KERNEL, STATE, ARG0, ARG1]; - my $pri = $_[OBJECT]->{IRC_CMDS}->{$state}->[CMD_PRI]; - - $state =~ s/privmsglo/privmsg/; -@@ -1048,7 +1046,7 @@ sub privandnotice { - $state =~ s/noticelo/notice/; - $state =~ s/noticehi/notice/; - -- if (!defined $to || !defined $message) { -+ if (!defined $to || !defined $msg) { - warn "The '$state' event requires two arguments\n"; - return; - } -@@ -1056,9 +1054,7 @@ sub privandnotice { - $to = join ',', @$to if ref $to eq 'ARRAY'; - $state = uc $state; - -- for my $msg (@messages) { -- $kernel->yield(sl_prioritized => $pri, "$state $to :$msg"); -- } -+ $kernel->yield(sl_prioritized => $pri, "$state $to :$msg"); - return; - } - -@@ -1214,14 +1210,14 @@ sub sl_prioritized { - - my $now = time(); - $self->{send_time} = $now if $self->{send_time} < $now; -+ -+ # if we find a newline in the message, take that to be the end of it -+ $msg =~ s/[\015\012].*//s; - - if (bytes::length($msg) > $self->{msg_length} - bytes::length($self->nick_name())) { - $msg = bytes::substr($msg, 0, $self->{msg_length} - bytes::length($self->nick_name())); - } - -- # if we find a newline in the message, take that to be the end of it -- $msg =~ s/\n.*//gm; -- - if (@{ $self->{send_queue} }) { - my $i = @{ $self->{send_queue} }; - $i-- while ($i && $priority < $self->{send_queue}->[$i-1]->[MSG_PRI]); -@@ -2188,8 +2184,7 @@ it will be treated as a PART message and dealt with accordingly. - Sends a public or private message to the nick(s) or channel(s) which - you specify. Takes 2 arguments: the nick or channel to send a message - to (use an array reference here to specify multiple recipients), and --the text of the message to send. If the message contains newlines, it --will be split up into multiple messages. -+the text of the message to send. - - Have a look at the constants in - L if you would -diff --git a/t/02_behavior/14_newline.t b/t/02_behavior/14_newline.t -index efad9f3..e59998d 100644 ---- a/t/02_behavior/14_newline.t -+++ b/t/02_behavior/14_newline.t -@@ -3,16 +3,15 @@ use warnings; - use lib 't/inc'; - use POE qw(Wheel::SocketFactory); - use Socket; --use POE::Component::IRC::State; --use POE::Component::IRC::Plugin::AutoJoin; -+use POE::Component::IRC; - use POE::Component::Server::IRC; - use Test::More tests => 9; - --my $bot1 = POE::Component::IRC::State->spawn( -+my $bot1 = POE::Component::IRC->spawn( - Flood => 1, - plugin_debug => 1, - ); --my $bot2 = POE::Component::IRC::State->spawn( -+my $bot2 = POE::Component::IRC->spawn( - Flood => 1, - plugin_debug => 1, - ); -@@ -89,7 +88,7 @@ sub irc_join { - my ($sender, $heap, $who, $where) = @_[SENDER, HEAP, ARG0, ARG1]; - my $nick = ( split /!/, $who )[0]; - my $irc = $sender->get_heap(); -- -+ - return if $nick ne $irc->nick_name(); - is($where, '#testchannel', 'Joined Channel Test'); - -@@ -98,10 +97,13 @@ sub irc_join { - - $irc->yield(quote => "PRIVMSG $where :one\nPRIVMSG $where :two"); - $irc->yield(privmsg => $where, "foo\nbar"); -+ $irc->yield(privmsg => $where, "baz\rquux"); - } - - sub irc_public { -- my ($heap, $msg) = @_[HEAP, ARG2]; -+ my ($sender, $heap, $where, $msg) = @_[SENDER, HEAP, ARG1, ARG2]; -+ my $irc = $sender->get_heap(); -+ my $chan = $where->[0]; - - $heap->{got_msg}++; - if ($heap->{got_msg} == 1) { -@@ -111,7 +113,7 @@ sub irc_public { - is($msg, 'foo', 'Second message'); - } - elsif ($heap->{got_msg} == 3) { -- is($msg, 'bar', 'Third message'); -+ is($msg, 'baz', 'Third message'); - $bot1->yield('quit'); - $bot2->yield('quit'); - } -diff --git a/xt/perlcriticrc_t b/xt/perlcriticrc_t -index 3bd1ed9..9b1b549 100644 ---- a/xt/perlcriticrc_t -+++ b/xt/perlcriticrc_t -@@ -25,3 +25,4 @@ verbose = 3 - [-Modules::RequireExplicitPackage] - [-Modules::RequireFilenameMatchesPackage] - [-Subroutines::RequireFinalReturn] -+[-ControlStructures::ProhibitCascadingIfElse] --- -1.7.0.1 - From 3e93c4400d1cb2bab89def86edf449fbdbaf208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 8 Jul 2025 09:22:49 +0200 Subject: [PATCH 26/27] 6.95 bump --- .gitignore | 1 + ...mponent-IRC-6.93-Fix-for-Perl-5.42.0.patch | 36 ------------------- perl-POE-Component-IRC.spec | 12 +++---- sources | 2 +- 4 files changed, 8 insertions(+), 43 deletions(-) delete mode 100644 POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch diff --git a/.gitignore b/.gitignore index 5ceaeba..ad0e30e 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ POE-Component-IRC-6.14.tar.gz /POE-Component-IRC-6.92.tar.gz /POE-Component-IRC-6.93.tar.gz /POE-Component-IRC-6.93_repackaged.tar.gz +/POE-Component-IRC-6.95_repackaged.tar.gz diff --git a/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch b/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch deleted file mode 100644 index e63f20e..0000000 --- a/POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch +++ /dev/null @@ -1,36 +0,0 @@ -From: Jitka Plesnikova -CPAN RT#157738 - -diff -up POE-Component-IRC-6.93/lib/POE/Component/IRC.pm.orig POE-Component-IRC-6.93/lib/POE/Component/IRC.pm ---- POE-Component-IRC-6.93/lib/POE/Component/IRC.pm.orig 2021-06-15 20:28:38.000000000 +0200 -+++ POE-Component-IRC-6.93/lib/POE/Component/IRC.pm 2025-04-30 13:15:29.049768752 +0200 -@@ -215,7 +215,7 @@ sub _configure { - } - - if (defined $self->{webirc}) { -- if (!ref $self->{webirc} ne 'HASH') { -+ if (!(ref $self->{webirc} ne 'HASH')) { - die "webirc param expects a hashref"; - } - for my $expect_key (qw(pass user host ip)) { -diff -up POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm.orig POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm ---- POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm.orig 2025-04-30 13:15:58.883615954 +0200 -+++ POE-Component-IRC-6.93/t/inc/POE/Component/Server/IRC.pm 2025-04-30 13:18:06.375778420 +0200 -@@ -7135,7 +7135,7 @@ sub _state_peer_route { - sub _state_connected_peers { - my $self = shift; - my $server = uc $self->server_name(); -- return if !keys %{ $self->{state}{peers} } > 1; -+ return if !(keys %{ $self->{state}{peers} } > 1); - my $record = $self->{state}{peers}{$server}; - return map { $record->{peers}{$_}{route_id} } - keys %{ $record->{peers} }; -@@ -7500,7 +7500,7 @@ sub configure { - - if (!defined $self->{config}{INFO} - || ref $self->{config}{INFO} ne 'ARRAY' -- || !@{ $self->{config}{INFO} } == 1) { -+ || !(@{ $self->{config}{INFO} } == 1)) { - $self->{config}{INFO} = [split /\n/, <<'EOF']; - # POE::Component::Server::IRC - # diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 398c44a..7aed276 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -9,8 +9,8 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients -Version: 6.93 -Release: 14%{?dist} +Version: 6.95 +Release: 1%{?dist} # LICENSE: (GPL-1.0-or-later OR Artistic-1.0-Perl) declaration, # GPL-1.0 text and Artistic-1.0 text # other files: GPL-1.0-or-later OR Artistic-1.0-Perl @@ -26,15 +26,12 @@ Release: 14%{?dist} # docs/rfc2813.html: non-free License: GPL-1.0-or-later OR Artistic-1.0-Perl SourceLicense: (%{license}) AND Beerware AND GPL-2.0-or-later +URL: https://metacpan.org/release/POE-Component-IRC # Origin Source0 URL: # https://cpan.metacpan.org/authors/id/B/BI/BINGOS/POE-Component-IRC-%%{version}.tar.gz # stripped from non-free IETF documents with repackage.sh script. Source0: POE-Component-IRC-%{version}_repackaged.tar.gz Source1: repackage.sh -# Fix webirc check in connection configuration, CPAN RT#157738, -# proposed to upstream -Patch0: POE-Component-IRC-6.93-Fix-for-Perl-5.42.0.patch -URL: https://metacpan.org/release/POE-Component-IRC BuildArch: noarch BuildRequires: coreutils BuildRequires: make @@ -224,6 +221,9 @@ make test %{_libexecdir}/%{name} %changelog +* Tue Jul 08 2025 Petr Pisar - 6.95-1 +- 6.95 bump + * Thu May 15 2025 Petr Pisar - 6.93-14 - Fix webirc check in connection configuration (CPAN RT#157738) - Remove non-free IETF documents from the package diff --git a/sources b/sources index 820fb6a..fe1c15f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (POE-Component-IRC-6.93_repackaged.tar.gz) = 329b507ee089d4b03847f197360ffd44dc7a1e2aa70bcfa2e48d16514655359e29fd1f2810b71fbc4c1cb2a67020f024af1624e640a32abd44e85671d104d244 +SHA512 (POE-Component-IRC-6.95_repackaged.tar.gz) = dc480db56d2eb9aeff51778f2fed488f7310f12e78013e13976c6ca0357d609dfcc0f0844ccbb0d2f8db3c2f5685cf164b07e5040f5be35018d952e2d41f291b From dda9da99912a50b53e064d00ee145b1942a5f76c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 03:15:35 +0000 Subject: [PATCH 27/27] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- perl-POE-Component-IRC.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-POE-Component-IRC.spec b/perl-POE-Component-IRC.spec index 7aed276..836513d 100644 --- a/perl-POE-Component-IRC.spec +++ b/perl-POE-Component-IRC.spec @@ -10,7 +10,7 @@ Name: perl-POE-Component-IRC Summary: A POE component for building IRC clients Version: 6.95 -Release: 1%{?dist} +Release: 2%{?dist} # LICENSE: (GPL-1.0-or-later OR Artistic-1.0-Perl) declaration, # GPL-1.0 text and Artistic-1.0 text # other files: GPL-1.0-or-later OR Artistic-1.0-Perl @@ -221,6 +221,9 @@ make test %{_libexecdir}/%{name} %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 6.95-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Tue Jul 08 2025 Petr Pisar - 6.95-1 - 6.95 bump