File perl-Webinject.spec of Package perl-Webinject

#
# spec file for package perl-Webinject
#
# Copyright (c) 2024 SUSE LLC
#
# 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 Webinject
Name:           perl-Webinject
Version:        1.940.0
Release:        0
# 1.94 -> normalize -> 1.940.0
%define cpan_version 1.94
License:        GPL-2.0-or-later
Summary:        Perl Module for testing web services
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/N/NI/NIERLEIN/%{cpan_name}-%{cpan_version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Crypt::SSLeay)
BuildRequires:  perl(Error)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires:  perl(HTTP::Cookies)
BuildRequires:  perl(HTTP::Request::Common)
BuildRequires:  perl(LWP)
BuildRequires:  perl(URI)
BuildRequires:  perl(XML::Parser)
BuildRequires:  perl(XML::Simple)
Requires:       perl(Crypt::SSLeay)
Requires:       perl(Error)
Requires:       perl(HTTP::Cookies)
Requires:       perl(HTTP::Request::Common)
Requires:       perl(LWP)
Requires:       perl(URI)
Requires:       perl(XML::Parser)
Requires:       perl(XML::Simple)
Provides:       perl(Webinject) = %{version}
%undefine       __perllib_provides
%{perl_requires}

%description
WebInject is a free tool for automated testing of web applications and web
services. It can be used to test individual system components that have
HTTP interfaces (JSP, ASP, CGI, PHP, AJAX, Servlets, HTML Forms, XML/SOAP
Web Services, REST, etc), and can be used as a test harness to create a
suite of [HTTP level] automated functional, acceptance, and regression
tests. A test harness allows you to run many test cases and collect/report
your results. WebInject offers real-time results display and may also be
used for monitoring system response times.

%prep
%autosetup  -n %{cpan_name}-%{cpan_version}

find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644

%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%doc Changes examples README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by