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

%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:  {cpan_name}
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)

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!

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

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

./Build test

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

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

openSUSE Build Service is sponsored by