]> git.pld-linux.org Git - packages/perl-Test-WWW-Mechanize.git/blame_incremental - 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
1#
2#Conditional build:
3%bcond_without tests # perform "make test"
4#
5%define pdir Test
6%define pnam WWW-Mechanize
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
9Name: perl-Test-WWW-Mechanize
10Version: 1.52
11Release: 1
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
16# Source0-md5: 3b21bf194ea8420aaf27bf7b972f919a
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
22BuildRequires: perl-Test-LongString
23BuildRequires: perl(Test::Builder::Tester) >= 1.09
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates
30features for web application testing.
31
32%description -l pl.UTF-8
33Test::WWW::Mechanize to podlasa WWW::Mechanize zawierająca
34funkcjonalność 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
47rm -rf $RPM_BUILD_ROOT
48install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Test/WWW/Mechanize
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
59%{perl_vendorlib}/Test/WWW/*.pm
60%dir %{perl_vendorlib}/Test/WWW/Mechanize
61%{_mandir}/man3/*
This page took 0.060799 seconds and 4 git commands to generate.