File perl-Furl.spec of Package perl-Furl

#
# spec file for package perl-Furl
#
# Copyright (c) 2021 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 Furl
Name:           perl-Furl
Version:        3.14
Release:        0
Summary:        Lightning-fast URL fetcher
License:        Artistic-1.0 OR GPL-1.0-or-later
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/S/SY/SYOHEX/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
Patch0:         0001-Remove-use-of-Mozilla-CA.patch
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Accessor::Lite)
BuildRequires:  perl(HTTP::Parser::XS) >= 0.11
BuildRequires:  perl(Module::Build::Tiny) >= 0.035
#BuildRequires:  perl(Mozilla::CA)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Test::TCP) >= 2.11
Requires:       perl(Class::Accessor::Lite)
Requires:       perl(HTTP::Parser::XS) >= 0.11
#Requires:       perl(Mozilla::CA)
Recommends:     perl(Compress::Raw::Zlib)
Recommends:     perl(HTTP::CookieJar)
Recommends:     perl(IO::Socket::SSL)
Recommends:     perl(Net::IDN::Encode)
%{perl_requires}

%description
Furl is yet another HTTP client library. LWP is the de facto standard HTTP
client for Perl 5, but it is too slow for some critical jobs, and too
complex for weekend hacking. Furl resolves these issues. Enjoy it!

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

%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%doc Changes example README.md TODO
%license LICENSE

%changelog
openSUSE Build Service is sponsored by