2358172
%global selenium_version 1.0.1
2358172
af087bc
Name:           perl-Test-WWW-Selenium
2358172
Version:        1.18
2358172
Release:        1%{?dist}
af087bc
Summary:        Perl Client for the Selenium Remote Control test tool
af087bc
License:        (GPL+ or Artistic) and ASL 2.0
af087bc
Group:          Development/Libraries
af087bc
URL:            http://search.cpan.org/dist/Test-WWW-Selenium/
2358172
Source0:        http://www.perl.org/authors/id/L/LU/LUKEC/Test-WWW-Selenium-%{version}.tar.gz
2358172
Source1:        http://release.seleniumhq.org/selenium-core/%{selenium_version}/selenium-core-%{selenium_version}.zip
af087bc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
af087bc
BuildArch:      noarch
af087bc
BuildRequires:  perl(ExtUtils::MakeMaker)
af087bc
BuildRequires:  perl(Test::More) >= 0.42
af087bc
BuildRequires:  perl(Test::Exception)
af087bc
BuildRequires:  perl(Test::Mock::LWP)
af087bc
BuildRequires:  perl(Test::Pod)
af087bc
BuildRequires:  perl(LWP::UserAgent)
af087bc
BuildRequires:  perl(URI::Escape) >= 1.31
af087bc
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
af087bc
af087bc
%description
af087bc
Selenium Remote Control (SRC) is a test tool that allows you to write
af087bc
automated web application UI tests in any programming language against any
af087bc
HTTP website using any mainstream JavaScript-enabled browser. SRC provides
af087bc
a Selenium Server, which can automatically start/stop/control any supported
af087bc
browser. It works by using Selenium Core, a pure-HTML+JS library that
af087bc
performs automated tasks in JavaScript; the Selenium Server communicates
af087bc
directly with the browser using AJAX (XmlHttpRequest).
af087bc
af087bc
af087bc
%prep
af087bc
%setup -q -n Test-WWW-Selenium-%{version}
2358172
2358172
# Newer API definition
2358172
mkdir -p target
2358172
unzip -c %{SOURCE1} core/iedoc.xml >target/iedoc.xml
af087bc
af087bc
af087bc
%build
2358172
# Recreate module with newer API
2358172
%{__perl} util/create_www_selenium.pl
2358172
af087bc
%{__perl} Makefile.PL INSTALLDIRS=vendor
af087bc
make %{?_smp_mflags}
af087bc
af087bc
af087bc
%install
af087bc
rm -rf $RPM_BUILD_ROOT
af087bc
af087bc
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
af087bc
af087bc
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
af087bc
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
af087bc
af087bc
%{_fixperms} $RPM_BUILD_ROOT/*
af087bc
af087bc
af087bc
%check
7490b19
# Tests are failing due to http://jira.openqa.org/browse/SRC-319
7490b19
make test ||:
af087bc
af087bc
af087bc
%clean
af087bc
rm -rf $RPM_BUILD_ROOT
af087bc
af087bc
af087bc
%files
af087bc
%defattr(-,root,root,-)
af087bc
%doc Changes README todo.txt
af087bc
%{perl_vendorlib}/*
af087bc
%{_mandir}/man3/*
af087bc
af087bc
af087bc
%changelog
2358172
* Mon Sep 07 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.18-1
2358172
- Newer release, update API support to 1.0.1
2358172
08300a9
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-5.20081021svn
08300a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
08300a9
cea8a9e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-4.20081021svn
cea8a9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cea8a9e
cb74e38
* Tue Oct 21 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.15-3.20081021svn
cb74e38
- Bump to SCM snapshot to be able to test right-click javascript menus
cb74e38
af087bc
* Mon Jun 23 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.15-2
af087bc
- Fixed License tag to include Apache, thanks Parag AN
af087bc
af087bc
* Mon Jun 16 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 0.15-1
af087bc
- Specfile autogenerated by cpanspec 1.75.
af087bc
- Fix requires