forked from pool/perl-Test-TCP
Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 10 21:26:10 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 08:24:52 UTC 2019 - <timueller+perl@suse.de>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user