# If we have a core package, update API definition from there, # otherwise leave everything as it is. # selenium-core is not available anymore %bcond_with core_iedoc Name: perl-Test-WWW-Selenium Version: 1.36 Release: 10%{?dist} Summary: Perl Client for the Selenium Remote Control test tool License: (GPL+ or Artistic) and ASL 2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/Test-WWW-Selenium/ Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MATTP/Test-WWW-Selenium-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) >= 0.42 BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Mock::LWP) BuildRequires: perl(Test::Pod) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(URI::Escape) >= 1.31 BuildRequires: perl(CPAN) BuildRequires: perl(Time::HiRes) %if %with core_iedoc BuildRequires: selenium-core %endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Time::HiRes) %description Selenium Remote Control (SRC) is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. SRC provides a Selenium Server, which can automatically start/stop/control any supported browser. It works by using Selenium Core, a pure-HTML+JS library that performs automated tasks in JavaScript; the Selenium Server communicates directly with the browser using AJAX (XmlHttpRequest). %prep %setup -q -n Test-WWW-Selenium-%{version} %if %with core_iedoc # Newer API definition mkdir -p target unzip -qc %{_datadir}/java/selenium-core.jar core/iedoc.xml >target/iedoc.xml %endif %build %if %with core_iedoc # Recreate module with newer API %{__perl} util/create_www_selenium.pl %endif %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check make test %files %doc Changes README todo.txt %{perl_vendorlib}/* %exclude %{perl_vendorlib}/Test/WWW/mypod2html.pl %{_mandir}/man3/* %changelog * Thu Jul 27 2017 Fedora Release Engineering - 1.36-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.36-9 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.36-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon May 16 2016 Jitka Plesnikova - 1.36-7 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.36-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.36-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 1.36-4 - Perl 5.22 rebuild * Thu Aug 28 2014 Jitka Plesnikova - 1.36-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.36-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Oct 28 2013 Lubomir Rintel (GoodData) - 1.36-1 - Update to a newer version * Thu Oct 24 2013 Lubomir Rintel (GoodData) - 1.25-8 - Bulk sad and useless attempt at consistent SPEC file formatting * Sun Aug 04 2013 Fedora Release Engineering - 1.25-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 24 2013 Petr Pisar - 1.25-6 - Perl 5.18 rebuild - selenium-core is not available anymore * Thu Feb 14 2013 Fedora Release Engineering - 1.25-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 15 2012 Petr Pisar - 1.25-3 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Oct 2 2011 Tom Callaway - 1.25-1 - update to 1.25 * Tue Jul 19 2011 Petr Sabata - 1.23-5 - Perl mass rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.23-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Marcela Maslanova - 1.23-3 - 661697 rebuild for fixing problems with vendorach/lib * Sun Dec 12 2010 Lubomir Rintel - 1.23-2 - Require Time::HiRes * Sun Dec 12 2010 Lubomir Rintel - 1.23-1 - Newer release - Do not require core in el6 * Thu Jun 3 2010 Marcela Mašláňová - 1.22-1 - update * Fri May 07 2010 Marcela Maslanova - 1.21-3 - Mass rebuild with perl-5.12.0 * Thu Mar 18 2010 Lubomir Rintel (GoodData) - 1.21-2 - Fix a packaging bug that caused incorrect Selenium.pm to be generated - Enable foolishly disabled tests back * Sun Feb 21 2010 Lubomir Rintel (GoodData) - 1.21-1 - Newer release - use API definitions from packaged selenium-core * Fri Dec 4 2009 Stepan Kasal - 1.18-2 - rebuild against perl 5.10.1 * Mon Sep 07 2009 Lubomir Rintel (GoodData) 0.18-1 - Newer release, update API support to 1.0.1 * Sun Jul 26 2009 Fedora Release Engineering - 1.15-5.20081021svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.15-4.20081021svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Oct 21 2008 Lubomir Rintel (GoodData) 0.15-3.20081021svn - Bump to SCM snapshot to be able to test right-click javascript menus * Mon Jun 23 2008 Lubomir Rintel (GoodData) 0.15-2 - Fixed License tag to include Apache, thanks Parag AN * Mon Jun 16 2008 Lubomir Rintel (GoodData) 0.15-1 - Specfile autogenerated by cpanspec 1.75. - Fix requires