8
0
forked from pool/perl-Test-TCP
Files
perl-Test-TCP/perl-Test-TCP.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Test-TCP
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Test-TCP
Version: 1.15
Release: 0
%define cpan_name Test-TCP
Summary: Testing TCP program
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-TCP/
Source: %{cpan_name}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch0: test-no-note.patch
BuildRequires: perl
BuildRequires: perl >= 5.8.0
BuildRequires: perl-macros
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(Test::SharedFork) >= 0.19
Requires: perl >= 5.8.0
Requires: perl(IO::Socket::INET)
Requires: perl(Test::SharedFork) >= 0.19
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
Test::TCP is test utilities for TCP/IP program.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf %{buildroot}%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf %{buildroot}%perl_archlib
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%changelog