3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Test::TCP - testing TCP program
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 34a449920cff4a591d4a65a28b354d0a
18 # generic URL, check or change before uncommenting
19 #URL: http://search.cpan.org/dist/Test-TCP/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl(Test::SharedFork) >= 0.14
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Test::TCP is test utilities for TCP/IP programs.
31 # %description -l pl.UTF-8
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Test/*.pm