]> git.pld-linux.org Git - packages/perl-Test-RequiresInternet.git/blame - perl-Test-RequiresInternet.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Test-RequiresInternet.git] / perl-Test-RequiresInternet.spec
CommitLineData
d74213f5
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Test
6%define pnam RequiresInternet
d74213f5
JB
7Summary: Test::RequiresInternet - Easily test network connectivity
8Summary(pl.UTF-8): Test::RequiresInternet - łatwe sprawdzanie połączenia z siecią
9Name: perl-Test-RequiresInternet
10Version: 0.05
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 0ba9f1cff4cf90ed2618c2eddfd525d8
17URL: https://metacpan.org/release/Test-RequiresInternet/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Test-Simple
22%endif
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module is intended to easily test network connectivity before
28functional tests begin to non-local Internet resources. It does not
29require any modules beyond those supplied in core Perl.
30
31%description -l pl.UTF-8
32Ten moduł służy do łatwego sprawdzania połączenia z siecią przed
33testami funkcjonalnymi sięgającymi do zasobów internetowych. Moduł
34nie wymaga żadnych modułów nie dostarczanych wraz z dystrybucją Perla.
35
36%prep
37%setup -q -n %{pdir}-%{pnam}-%{version}
38
39%build
40%{__perl} Makefile.PL \
41 INSTALLDIRS=vendor
42%{__make}
43
44%{?with_tests:%{__make} test}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README
58%{perl_vendorlib}/Test/RequiresInternet.pm
59%{_mandir}/man3/Test::RequiresInternet.3pm*
This page took 0.110625 seconds and 4 git commands to generate.