]>
Commit | Line | Data |
---|---|---|
90157263 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" | |
c7d8d617 | 4 | |
90157263 | 5 | %define pdir Test |
6 | %define pnam WWW-Mechanize-Catalyst | |
7 | Summary: Test::WWW::Mechanize::Catalyst - Test::WWW::Mechanize for Catalyst | |
90157263 | 8 | Name: perl-Test-WWW-Mechanize-Catalyst |
32555890 | 9 | Version: 0.56 |
90157263 | 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 | |
32555890 | 15 | # Source0-md5: 6057810d7f6f4517928d031cb85d1609 |
c7d8d617 | 16 | URL: http://search.cpan.org/dist/Test-WWW-Mechanize-Catalyst/ |
90157263 | 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 | |
90157263 | 24 | BuildRequires: perl-Test-Exception |
25 | BuildRequires: perl-WWW-Mechanize >= 1.50 | |
c7d8d617 | 26 | BuildRequires: perl-libwww >= 5.816 |
90157263 | 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 | ||
90157263 | 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/* |