File perl-WebService-AbuseIPDB.spec of Package perl-WebService-AbuseIPDB

#
# spec file for package perl-WebService-AbuseIPDB
#
# Copyright (c) 2025 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 WebService-AbuseIPDB
Name:           perl-WebService-AbuseIPDB
Version:        0.04
Release:        0
License:        GPL-1.0-or-later
Summary:        Client for the API (version 2) of AbuseIPDB
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/H/HO/HOUSTON/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Carp) >= 1.11
BuildRequires:  perl(IO::Socket::SSL) >= 1.31
BuildRequires:  perl(JSON::MaybeXS) >= 1.004000
BuildRequires:  perl(LWP::Protocol::https) >= 6.04
BuildRequires:  perl(REST::Client) >= 272
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::MockModule) >= 0.14
BuildRequires:  perl(Test::Warn) >= 0.37
BuildRequires:  perl(URI) >= 1.60
Requires:       perl(Carp) >= 1.11
Requires:       perl(IO::Socket::SSL) >= 1.31
Requires:       perl(JSON::MaybeXS) >= 1.004000
Requires:       perl(LWP::Protocol::https) >= 6.04
Requires:       perl(REST::Client) >= 272
Requires:       perl(URI) >= 1.60
%{perl_requires}

%description
at https://www.abuseipdb.com/ maintains a database of reports of bad actors
on the net. Users may interface with the database through a web browser
using forms on their site. An alternative is to use their API. Version 1 of
this API is to be retired in 2020. This module serves as a client for
Version 2 of the API.

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

%build
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 CONTRIBUTING.md examples README
%license LICENCE

%changelog
openSUSE Build Service is sponsored by