]> git.pld-linux.org Git - packages/perl-WWW-Mechanize-Sleepy.git/blob - perl-WWW-Mechanize-Sleepy.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-WWW-Mechanize-Sleepy.git] / perl-WWW-Mechanize-Sleepy.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires Internet connection)
4 #
5 %define         pdir    WWW
6 %define         pnam    Mechanize-Sleepy
7 Summary:        WWW::Mechanize::Sleepy - provide pauses to WWW::Mechanize
8 Summary(pl.UTF-8):      WWW::Mechanize::Sleepy - dodanie przerw do WWW::Mechanize
9 Name:           perl-WWW-Mechanize-Sleepy
10 Version:        0.7
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  8ae1eead3981821c28eab12c640edb8c
16 URL:            http://search.cpan.org/dist/WWW-Mechanize-Sleepy/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-URI
21 BuildRequires:  perl-libwww >= 5.76
22 BuildRequires:  perl(Test::More) >= 0.34
23 %endif
24 Requires:       perl-WWW-Mechanize
25 Requires:       perl-libwww >= 5.76
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 WWW::Mechanize::Sleepy subclasses WWW::Mechanize to provide pauses
31 between your server requests.
32
33 %description -l pl.UTF-8
34 WWW::Mechanize::Sleepy udostępnia podklasę WWW::Mechanize
35 umożliwiającą wprowadzanie przerw między zapytaniami serwera.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 echo "y" | %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43 %{__make}
44
45 %{?with_tests:%{__make} test}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes
59 %{perl_vendorlib}/WWW/Mechanize/*.pm
60 %{_mandir}/man?/*
This page took 0.048413 seconds and 4 git commands to generate.