From f931dccaaafdcbbe93b3e509ab48827f6437349e7d81cf6b2557a18b984894cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 10 Oct 2025 23:26:23 +0200 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details --- perl-Test-TCP.changes | 6 ++++++ perl-Test-TCP.spec | 32 ++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/perl-Test-TCP.changes b/perl-Test-TCP.changes index 858541c..72b47f0 100644 --- a/perl-Test-TCP.changes +++ b/perl-Test-TCP.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 10 21:26:10 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Wed Oct 9 08:24:52 UTC 2019 - diff --git a/perl-Test-TCP.spec b/perl-Test-TCP.spec index 9b59f3d..fd16535 100644 --- a/perl-Test-TCP.spec +++ b/perl-Test-TCP.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Test-TCP # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,37 +16,42 @@ # -Name: perl-Test-TCP -Version: 2.22 -Release: 0 %define cpan_name Test-TCP -Summary: Testing TCP program +Name: perl-Test-TCP +Version: 2.220.0 +Release: 0 +# 2.22 -> normalize -> 2.220.0 +%define cpan_version 2.22 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz +Summary: Testing TCP program +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 BuildRequires: perl(IO::Socket::IP) BuildRequires: perl(Test::More) >= 0.98 -BuildRequires: perl(Test::SharedFork) >= 0.29 +BuildRequires: perl(Test::SharedFork) >= 0.290 Requires: perl(IO::Socket::IP) -Requires: perl(Test::SharedFork) >= 0.29 +Requires: perl(Test::SharedFork) >= 0.290 +Provides: perl(Net::EmptyPort) +Provides: perl(Test::TCP) = %{version} +Provides: perl(Test::TCP::CheckPort) +%undefine __perllib_provides %{perl_requires} %description Test::TCP is a test utility to test TCP/IP-based server programs. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -57,7 +62,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README.md %license LICENSE