]> git.pld-linux.org Git - packages/perl-Test-WWW-Mechanize.git/blame - perl-Test-WWW-Mechanize.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Test-WWW-Mechanize.git] / perl-Test-WWW-Mechanize.spec
CommitLineData
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
7Summary: Test::WWW::Mechanize - Testing-specific WWW::Mechanize subclass
8Summary(pl.UTF-8): Test::WWW::Mechanize - podklasa WWW::Mechanize służąca do testów
73436d6c 9Name: perl-Test-WWW-Mechanize
2ab55fe0 10Version: 1.52
9d6c027a 11Release: 1
73436d6c
AM
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
2ab55fe0 16# Source0-md5: 3b21bf194ea8420aaf27bf7b972f919a
73436d6c
AM
17URL: http://search.cpan.org/dist/Test-WWW-Mechanize/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Carp-Assert-More
071a7e69 22BuildRequires: perl-Test-LongString
89e153dd 23BuildRequires: perl(Test::Builder::Tester) >= 1.09
73436d6c
AM
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
89e153dd 29Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates
30features for web application testing.
73436d6c 31
fad7ff89
JB
32%description -l pl.UTF-8
33Test::WWW::Mechanize to podlasa WWW::Mechanize zawierająca
34funkcjonalność 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
47rm -rf $RPM_BUILD_ROOT
c1b3da87 48install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Test/WWW/Mechanize
73436d6c
AM
49
50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -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/*
This page took 0.059182 seconds and 4 git commands to generate.