]> git.pld-linux.org Git - packages/perl-Test-WWW-Mechanize-Catalyst.git/blob - perl-Test-WWW-Mechanize-Catalyst.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Test-WWW-Mechanize-Catalyst.git] / perl-Test-WWW-Mechanize-Catalyst.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # perform "make test"
4
5 %define pdir    Test
6 %define pnam    WWW-Mechanize-Catalyst
7 Summary:        Test::WWW::Mechanize::Catalyst - Test::WWW::Mechanize for Catalyst
8 Name:           perl-Test-WWW-Mechanize-Catalyst
9 Version:        0.56
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/Test/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  6057810d7f6f4517928d031cb85d1609
16 URL:            http://search.cpan.org/dist/Test-WWW-Mechanize-Catalyst/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(Test::WWW::Mechanize) >= 1.14
21 BuildRequires:  perl-Catalyst >= 5.00
22 BuildRequires:  perl-Catalyst-Plugin-Session
23 BuildRequires:  perl-Catalyst-Plugin-Session-State-Cookie
24 BuildRequires:  perl-Test-Exception
25 BuildRequires:  perl-WWW-Mechanize >= 1.50
26 BuildRequires:  perl-libwww >= 5.816
27 %endif
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 The Test::WWW::Mechanize::Catalyst module meshes the two to allow easy
33 testing of Catalyst applications without starting up a web server.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc CHANGES
57 %{perl_vendorlib}/Test/WWW/Mechanize/*.pm
58 %{_mandir}/man3/*
This page took 0.031223 seconds and 3 git commands to generate.