File perl-Perl-Download-FTP.spec of Package perl-Perl-Download-FTP

#
# spec file for package perl-Perl-Download-FTP
#
# Copyright (c) 2026 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 Perl-Download-FTP
Name:           perl-Perl-Download-FTP
Version:        0.06
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Identify Perl releases and download the most recent via FTP
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        Perl-Download-FTP-0.06.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(File::Path) >= 2.060000
BuildRequires:  perl(List::Compare) >= 0.51
BuildRequires:  perl(Test::RequiresInternet)
%{perl_requires}

%description
This library provides (a) methods for obtaining a list of all Perl 5
releases which are available for FTP download; and (b) a method for
obtaining the most recent release.

%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 examples README Todo
%license LICENSE

%changelog
openSUSE Build Service is sponsored by