# # spec file for package perl-Net-SFTP-Foreign # # 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-SFTP-Foreign Name: perl-Net-SFTP-Foreign Version: 1.930.0 Release: 0 # 1.93 -> normalize -> 1.930.0 %define cpan_version 1.93 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Secure File Transfer Protocol client URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SA/SALVA/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(Net::SFTP::Foreign) = %{version} Provides: perl(Net::SFTP::Foreign::Attributes) = 1.680.500 Provides: perl(Net::SFTP::Foreign::Attributes::Compat) = 0.10.0 Provides: perl(Net::SFTP::Foreign::Backend::Unix) = 1.880.200 Provides: perl(Net::SFTP::Foreign::Backend::Windows) = 1.700.800 Provides: perl(Net::SFTP::Foreign::Buffer) = 1.680.500 Provides: perl(Net::SFTP::Foreign::Common) = 1.760.200 Provides: perl(Net::SFTP::Foreign::Compat) = 1.700.500 Provides: perl(Net::SFTP::Foreign::Constants) = 1.630.500 Provides: perl(Net::SFTP::Foreign::DirHandle) Provides: perl(Net::SFTP::Foreign::FileHandle) Provides: perl(Net::SFTP::Foreign::Handle) Provides: perl(Net::SFTP::Foreign::Helpers) = 1.740.600 Provides: perl(Net::SFTP::Foreign::Local) = 1.570.0 %undefine __perllib_provides %{perl_requires} %description SFTP stands for SSH File Transfer Protocol and is a method of transferring files between machines over a secure, encrypted connection (as opposed to regular FTP, which functions over an insecure connection). The security in SFTP comes through its integration with SSH, which provides an encrypted transport layer over which the SFTP commands are executed. Net::SFTP::Foreign is a Perl client for the SFTP version 3 as defined in the SSH File Transfer Protocol IETF draft, which can be found at http://www.openssh.org/txt/draft-ietf-secsh-filexfer-02.txt (also included on this package distribution, on the 'rfc' directory). Net::SFTP::Foreign uses any compatible 'ssh' command installed on the system (for instance, OpenSSH 'ssh') to establish the secure connection to the remote server. A wrapper module Net::SFTP::Foreign::Compat is also provided for compatibility with Net::SFTP. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %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 debug.txt README samples TODO %license LICENSE %changelog