]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | #Conditional build: | |
3 | %bcond_without tests # perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam WWW-Mechanize | |
7 | Summary: Test::WWW::Mechanize - Testing-specific WWW::Mechanize subclass | |
8 | Summary(pl.UTF-8): Test::WWW::Mechanize - podklasa WWW::Mechanize służąca do testów | |
9 | Name: perl-Test-WWW-Mechanize | |
10 | Version: 1.52 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 3b21bf194ea8420aaf27bf7b972f919a | |
17 | URL: http://search.cpan.org/dist/Test-WWW-Mechanize/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Carp-Assert-More | |
22 | BuildRequires: perl-Test-LongString | |
23 | BuildRequires: perl(Test::Builder::Tester) >= 1.09 | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates | |
30 | features for web application testing. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Test::WWW::Mechanize to podlasa WWW::Mechanize zawierająca | |
34 | funkcjonalność przeznaczoną do testowania aplikacji WWW. | |
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 | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Test/WWW/Mechanize | |
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}/Test/WWW/*.pm | |
60 | %dir %{perl_vendorlib}/Test/WWW/Mechanize | |
61 | %{_mandir}/man3/* |