74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-FTPSSL
|
|
#
|
|
# 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 Net-FTPSSL
|
|
Name: perl-Net-FTPSSL
|
|
Version: 0.420.0
|
|
Release: 0
|
|
# 0.42 -> normalize -> 0.420.0
|
|
%define cpan_version 0.42
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: FTP over TLS/SSL class
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CL/CLEACH/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.26
|
|
BuildRequires: perl(Net::HTTPTunnel) >= 0.500
|
|
BuildRequires: perl(Net::SSLeay)
|
|
BuildRequires: perl(Net::SSLeay::Handle)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
Requires: perl(IO::Socket::SSL) >= 1.26
|
|
Requires: perl(Net::HTTPTunnel) >= 0.500
|
|
Requires: perl(Net::SSLeay)
|
|
Requires: perl(Net::SSLeay::Handle)
|
|
Provides: perl(Net::FTPSSL) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
'Net::FTPSSL' is a class implementing a simple FTP client over a Transport
|
|
Layer Security (*TLS*) or Secure Sockets Layer (*SSL*) connection written
|
|
in Perl as described in RFC959 and RFC2228. It will use TLS v1.2 by
|
|
default, since TLS is more secure than SSL. But if you wish to downgrade
|
|
you may use *SSL_version* to do so.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_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 README
|
|
%license LICENSE
|
|
|
|
%changelog
|