]>
Commit | Line | Data |
---|---|---|
73436d6c AM |
1 | # |
2 | #Conditional build: | |
3 | %bcond_without tests # perform "make test" | |
4 | # | |
73436d6c AM |
5 | %define pdir Test |
6 | %define pnam WWW-Mechanize | |
fad7ff89 JB |
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 | |
73436d6c | 9 | Name: perl-Test-WWW-Mechanize |
2ab55fe0 | 10 | Version: 1.52 |
9d6c027a | 11 | Release: 1 |
73436d6c AM |
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 | |
2ab55fe0 | 16 | # Source0-md5: 3b21bf194ea8420aaf27bf7b972f919a |
73436d6c AM |
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 | |
071a7e69 | 22 | BuildRequires: perl-Test-LongString |
89e153dd | 23 | BuildRequires: perl(Test::Builder::Tester) >= 1.09 |
73436d6c AM |
24 | %endif |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
89e153dd | 29 | Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates |
30 | features for web application testing. | |
73436d6c | 31 | |
fad7ff89 JB |
32 | %description -l pl.UTF-8 |
33 | Test::WWW::Mechanize to podlasa WWW::Mechanize zawierająca | |
34 | funkcjonalność przeznaczoną do testowania aplikacji WWW. | |
35 | ||
73436d6c AM |
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 | |
c1b3da87 | 48 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Test/WWW/Mechanize |
73436d6c AM |
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 | |
c1b3da87 | 59 | %{perl_vendorlib}/Test/WWW/*.pm |
60 | %dir %{perl_vendorlib}/Test/WWW/Mechanize | |
73436d6c | 61 | %{_mandir}/man3/* |