1 |
jquelin |
15279 |
%define upstream_name Test-WWW-Selenium |
2 |
|
|
%define upstream_version 1.23 |
3 |
|
|
|
4 |
|
|
Name: perl-%{upstream_name} |
5 |
|
|
Version: %perl_convert_version %{upstream_version} |
6 |
|
|
Release: %mkrel 2 |
7 |
|
|
|
8 |
|
|
Summary: Test applications using Selenium Remote Control |
9 |
|
|
License: GPL+ or Artistic |
10 |
|
|
Group: Development/Perl |
11 |
|
|
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
|
|
Source0: http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
|
|
14 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
15 |
|
|
BuildRequires: perl(LWP::UserAgent) |
16 |
|
|
BuildRequires: perl-libwww-perl |
17 |
|
|
BuildRequires: perl(Test::Exception) |
18 |
|
|
BuildRequires: perl(Test::Mock::LWP) |
19 |
|
|
BuildRequires: perl(Test::More) |
20 |
|
|
BuildRequires: perl(Test::Pod) |
21 |
|
|
BuildRequires: perl(URI::Escape) |
22 |
|
|
BuildArch: noarch |
23 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
Selenium Remote Control (SRC) is a test tool that allows you to write |
27 |
|
|
automated web application UI tests in any programming language against any |
28 |
|
|
HTTP website using any mainstream JavaScript-enabled browser. SRC provides |
29 |
|
|
a Selenium Server, which can automatically start/stop/control any supported |
30 |
|
|
browser. It works by using Selenium Core, a pure-HTML+JS library that |
31 |
|
|
performs automated tasks in JavaScript; the Selenium Server communicates |
32 |
|
|
directly with the browser using AJAX (XmlHttpRequest). |
33 |
|
|
|
34 |
|
|
http://www.openqa.org/selenium-rc/ |
35 |
|
|
|
36 |
|
|
This module sends commands directly to the Server using simple HTTP |
37 |
|
|
GET/POST requests. Using this module together with the Selenium Server, you |
38 |
|
|
can automatically control any supported browser. |
39 |
|
|
|
40 |
|
|
%prep |
41 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
42 |
|
|
|
43 |
|
|
%build |
44 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor |
45 |
|
|
|
46 |
|
|
%{make} |
47 |
|
|
|
48 |
|
|
%check |
49 |
|
|
%{make} test |
50 |
|
|
|
51 |
|
|
%install |
52 |
|
|
rm -rf %buildroot |
53 |
|
|
%makeinstall_std |
54 |
|
|
|
55 |
|
|
%clean |
56 |
|
|
rm -rf %buildroot |
57 |
|
|
|
58 |
|
|
%files |
59 |
|
|
%defattr(-,root,root) |
60 |
|
|
%doc Changes README |
61 |
|
|
%{_mandir}/man3/* |
62 |
|
|
%perl_vendorlib/* |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|