]> git.pld-linux.org Git - packages/perl-WWW-Mechanize-CGI.git/blob - perl-WWW-Mechanize-CGI.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-WWW-Mechanize-CGI.git] / perl-WWW-Mechanize-CGI.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    WWW
6 %define         pnam    Mechanize-CGI
7 Summary:        WWW::Mechanize::CGI - Use WWW::Mechanize with CGI applications
8 Name:           perl-WWW-Mechanize-CGI
9 Version:        0.3
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  67576d3b49654bce6657f0b3e5eb78d3
16 URL:            http://search.cpan.org/dist/WWW-Mechanize-CGI/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-HTTP-Request-AsCGI >= 0.2
21 BuildRequires:  perl-WWW-Mechanize
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Provides a convenient way of using CGI applications with
28 WWW::Mechanize.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %{__make} pure_install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc Changes README
51 %{perl_vendorlib}/WWW/Mechanize/CGI.pm
52 %{_mandir}/man3/*
This page took 0.064712 seconds and 4 git commands to generate.