forked from pool/perl-Selenium-Remote-Driver
		
	
		
			
				
	
	
		
			152 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			152 lines
		
	
	
		
			6.0 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package perl-Selenium-Remote-Driver
 | 
						|
#
 | 
						|
# Copyright (c) 2025 SUSE LLC and contributors
 | 
						|
#
 | 
						|
# All modifications and additions to the file contributed by third parties
 | 
						|
# remain the property of their copyright owners, unless otherwise agreed
 | 
						|
# upon. The license for this file, and modifications and additions to the
 | 
						|
# file, is the same license as for the pristine package itself (unless the
 | 
						|
# license for the pristine package is not an Open Source License, in which
 | 
						|
# case the license is the MIT License). An "Open Source License" is a
 | 
						|
# license that conforms to the Open Source Definition (Version 1.9)
 | 
						|
# published by the Open Source Initiative.
 | 
						|
 | 
						|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
						|
#
 | 
						|
 | 
						|
 | 
						|
%define cpan_name Selenium-Remote-Driver
 | 
						|
Name:           perl-Selenium-Remote-Driver
 | 
						|
Version:        1.500.0
 | 
						|
Release:        0
 | 
						|
# 1.50 -> normalize -> 1.500.0
 | 
						|
%define cpan_version 1.50
 | 
						|
License:        Apache-2.0
 | 
						|
Summary:        Perl Client for Selenium Remote Driver
 | 
						|
URL:            https://metacpan.org/release/%{cpan_name}
 | 
						|
Source0:        https://cpan.metacpan.org/authors/id/T/TE/TEODESIAN/%{cpan_name}-%{cpan_version}.tar.gz
 | 
						|
Source1:        cpanspec.yml
 | 
						|
Source100:      README.md
 | 
						|
# MANUAL
 | 
						|
#BuildArch:     noarch
 | 
						|
BuildRequires:  perl
 | 
						|
BuildRequires:  perl-macros
 | 
						|
BuildRequires:  perl(Archive::Zip)
 | 
						|
BuildRequires:  perl(Clone)
 | 
						|
BuildRequires:  perl(File::Which)
 | 
						|
BuildRequires:  perl(HTTP::Headers)
 | 
						|
BuildRequires:  perl(HTTP::Request)
 | 
						|
BuildRequires:  perl(HTTP::Response)
 | 
						|
BuildRequires:  perl(IO::String)
 | 
						|
BuildRequires:  perl(IO::Uncompress::Unzip) >= 2.030
 | 
						|
BuildRequires:  perl(JSON)
 | 
						|
BuildRequires:  perl(LWP::UserAgent)
 | 
						|
BuildRequires:  perl(List::Util) >= 1.33
 | 
						|
BuildRequires:  perl(Moo) >= 1.5
 | 
						|
BuildRequires:  perl(Moo::Role)
 | 
						|
BuildRequires:  perl(Sub::Install)
 | 
						|
BuildRequires:  perl(Test::Deep)
 | 
						|
BuildRequires:  perl(Test::Fatal)
 | 
						|
BuildRequires:  perl(Test::LWP::UserAgent)
 | 
						|
BuildRequires:  perl(Test::LongString)
 | 
						|
BuildRequires:  perl(Test::MockModule) >= 0.13
 | 
						|
BuildRequires:  perl(Try::Tiny)
 | 
						|
BuildRequires:  perl(XML::Simple)
 | 
						|
BuildRequires:  perl(namespace::clean)
 | 
						|
Requires:       perl(Archive::Zip)
 | 
						|
Requires:       perl(Clone)
 | 
						|
Requires:       perl(File::Which)
 | 
						|
Requires:       perl(HTTP::Headers)
 | 
						|
Requires:       perl(HTTP::Request)
 | 
						|
Requires:       perl(HTTP::Response)
 | 
						|
Requires:       perl(IO::String)
 | 
						|
Requires:       perl(IO::Uncompress::Unzip) >= 2.030
 | 
						|
Requires:       perl(JSON)
 | 
						|
Requires:       perl(LWP::UserAgent)
 | 
						|
Requires:       perl(List::Util) >= 1.33
 | 
						|
Requires:       perl(Moo) >= 1.5
 | 
						|
Requires:       perl(Moo::Role)
 | 
						|
Requires:       perl(Sub::Install)
 | 
						|
Requires:       perl(Test::LongString)
 | 
						|
Requires:       perl(Try::Tiny)
 | 
						|
Requires:       perl(XML::Simple)
 | 
						|
Requires:       perl(namespace::clean)
 | 
						|
Provides:       perl(Selenium::ActionChains) = %{version}
 | 
						|
Provides:       perl(Selenium::CanStartBinary) = %{version}
 | 
						|
Provides:       perl(Selenium::CanStartBinary::FindBinary) = %{version}
 | 
						|
Provides:       perl(Selenium::CanStartBinary::ProbePort) = %{version}
 | 
						|
Provides:       perl(Selenium::Chrome) = %{version}
 | 
						|
Provides:       perl(Selenium::Edge) = %{version}
 | 
						|
Provides:       perl(Selenium::Firefox) = %{version}
 | 
						|
Provides:       perl(Selenium::Firefox::Binary) = %{version}
 | 
						|
Provides:       perl(Selenium::Firefox::Profile) = %{version}
 | 
						|
Provides:       perl(Selenium::InternetExplorer) = %{version}
 | 
						|
Provides:       perl(Selenium::PhantomJS) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Commands) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Driver) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Driver::CanSetWebdriverContext) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Driver::Firefox::Profile) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::ErrorHandler) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Finders) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Mock::Commands) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Mock::RemoteConnection) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::RemoteConnection) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::Spec) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::WDKeys) = %{version}
 | 
						|
Provides:       perl(Selenium::Remote::WebElement) = %{version}
 | 
						|
Provides:       perl(Selenium::Waiter) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Chrome) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Edge) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Firefox) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::InternetExplorer) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::PhantomJS) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Remote::Driver) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Remote::Role::DoesTesting) = %{version}
 | 
						|
Provides:       perl(Test::Selenium::Remote::WebElement) = %{version}
 | 
						|
%undefine       __perllib_provides
 | 
						|
%{perl_requires}
 | 
						|
# MANUAL BEGIN
 | 
						|
Requires:       lsof
 | 
						|
# MANUAL END
 | 
						|
 | 
						|
%description
 | 
						|
Selenium 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. This module is an implementation of
 | 
						|
the client for the Remote driver that Selenium provides. You can find
 | 
						|
bindings for other languages at this location:
 | 
						|
 | 
						|
https://www.seleniumhq.org/download/
 | 
						|
 | 
						|
This module sends commands directly to the Server using HTTP. Using this
 | 
						|
module together with the Selenium Server, you can automatically control any
 | 
						|
supported browser. To use this module, you need to have already downloaded
 | 
						|
and started the Selenium Server (Selenium Server is a Java application).
 | 
						|
 | 
						|
%prep
 | 
						|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
 | 
						|
 | 
						|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
						|
# MANUAL BEGIN
 | 
						|
sed -i -e 's,!/bin/env perl,/usr/bin/perl,' driver-example.pl
 | 
						|
# MANUAL END
 | 
						|
 | 
						|
%build
 | 
						|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 | 
						|
%make_build
 | 
						|
 | 
						|
%check
 | 
						|
make test
 | 
						|
 | 
						|
%install
 | 
						|
%perl_make_install
 | 
						|
%perl_process_packlist
 | 
						|
%perl_gen_filelist
 | 
						|
 | 
						|
%files -f %{name}.files
 | 
						|
%doc Changes README README.md TAGS
 | 
						|
%license LICENSE
 | 
						|
 | 
						|
%changelog
 |