rpms/perl-Alien-SeleniumRC/F-12 Alien-Selenium-system-jar.diff, NONE, 1.1 perl-Alien-SeleniumRC.spec, 1.3, 1.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: eseyman

Update of /cvs/pkgs/rpms/perl-Alien-SeleniumRC/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv21260

Modified Files:
	perl-Alien-SeleniumRC.spec 
Added Files:
	Alien-Selenium-system-jar.diff 
Log Message:
Use system selenium-server.

Alien-Selenium-system-jar.diff:
 SeleniumRC.pm |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE Alien-Selenium-system-jar.diff ---
--- lib/Alien/SeleniumRC.pm.orig	2010-05-23 22:11:41.000000000 +0200
+++ lib/Alien/SeleniumRC.pm	2010-05-23 22:13:36.000000000 +0200
@@ -11,7 +11,7 @@
     my $args = shift || '';
     my $jarfile = find_jar_location();
 
-    my $cmd = "java -jar $jarfile $args";
+    my $cmd = "/usr/bin/selenium-server $args";
     if ( $ENV{SELENIUMRC_USE_SIC} ) {
         $cmd = "sudo /usr/libexec/StartupItemContext `which java` -jar $jarfile $args";
     }
@@ -27,8 +27,7 @@
 }
 
 sub find_jar_location {
-    my $pm_location = $INC{'Alien/SeleniumRC.pm'};
-    (my $src_location = $pm_location) =~ s#\.pm#/selenium-server.jar#;
+    my $src_location = '/usr/share/java/selenium-server-coreless.jar';
 
     if ($^O eq 'cygwin') {
 	$src_location = `cygpath -m '$src_location'`;


Index: perl-Alien-SeleniumRC.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Alien-SeleniumRC/F-12/perl-Alien-SeleniumRC.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- perl-Alien-SeleniumRC.spec	14 Sep 2009 23:22:26 -0000	1.3
+++ perl-Alien-SeleniumRC.spec	24 May 2010 23:24:05 -0000	1.4
@@ -1,15 +1,17 @@
 Name:           perl-Alien-SeleniumRC
 Version:        1.01
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Packages the Selenium Remote Control server
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Alien-SeleniumRC/
 Source0:        http://www.cpan.org/modules/by-module/Alien/Alien-SeleniumRC-%{version}.tar.gz
+Patch0:         Alien-Selenium-system-jar.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker),perl(CPAN),perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       selenium-server
 
 %description
 Selenium Remote Control is a test tool that allows you to write automated
@@ -21,6 +23,10 @@ performs automated tasks in JavaScript.
 
 %prep
 %setup -q -n Alien-SeleniumRC-%{version}
+%patch0 -p0
+rm t/seleniumrc.t
+rm lib/Alien/SeleniumRC/selenium-server.jar
+
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -50,6 +56,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Tue May 25 2010 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> - 1.01-2
+- Remove selenium-server.jar from the archive
+- Remove test on the internal selenium-server
+- Tell Alien::SeleniumRC to use the system selenium server
+- Add selenium-server to the Requires
+
 * Tue Sep 15 2009 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> - 1.01-1
 - Update to 1.01
 

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux