2013-04-18 15:02:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Net-SSH2
|
|
|
|
#
|
2024-12-31 00:20:52 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-04-18 15:02:40 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-31 09:44:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-18 15:02:40 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-08-16 12:25:47 +00:00
|
|
|
%define cpan_name Net-SSH2
|
2013-04-18 15:02:40 +00:00
|
|
|
Name: perl-Net-SSH2
|
2024-12-31 00:20:52 +00:00
|
|
|
Version: 0.740.0
|
2013-04-18 15:02:40 +00:00
|
|
|
Release: 0
|
2024-12-31 00:20:52 +00:00
|
|
|
# 0.74 -> normalize -> 0.740.0
|
|
|
|
%define cpan_version 0.74
|
2018-02-27 13:44:33 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-08-16 12:25:47 +00:00
|
|
|
Summary: Support for the SSH 2 protocol via libssh2
|
2021-01-04 14:21:46 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-12-31 00:20:52 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RK/RKITOVER/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-12-02 12:12:22 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:07 +02:00
|
|
|
Source100: README.md
|
2015-12-02 12:12:22 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2022-08-16 12:25:47 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
2024-12-31 00:20:52 +00:00
|
|
|
Provides: perl(Net::SSH2) = %{version}
|
|
|
|
Provides: perl(Net::SSH2::Channel)
|
|
|
|
Provides: perl(Net::SSH2::Dir)
|
|
|
|
Provides: perl(Net::SSH2::File)
|
|
|
|
Provides: perl(Net::SSH2::KnownHosts)
|
|
|
|
Provides: perl(Net::SSH2::Listener)
|
|
|
|
Provides: perl(Net::SSH2::PublicKey)
|
|
|
|
Provides: perl(Net::SSH2::SFTP)
|
|
|
|
%undefine __perllib_provides
|
2013-04-18 15:02:40 +00:00
|
|
|
%{perl_requires}
|
2015-12-26 12:22:15 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
# MANUAL END
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%description
|
2016-05-28 13:05:20 +00:00
|
|
|
Net::SSH2 is a Perl interface to the libssh2 (http://www.libssh2.org)
|
2015-12-02 12:12:22 +00:00
|
|
|
library. It supports the SSH2 protocol (there is no support for SSH1) with
|
|
|
|
all of the key exchanges, ciphers, and compression of libssh2.
|
2013-04-18 15:02:40 +00:00
|
|
|
|
2016-05-28 13:05:20 +00:00
|
|
|
Even if the module can be compiled and linked against very old versions of
|
|
|
|
the library, nothing below 1.5.0 should really be used (older versions were
|
|
|
|
quite buggy and unreliable) and version 1.7.0 or later is recommended.
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%prep
|
2024-12-31 00:20:52 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
2017-10-03 07:55:25 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
|
|
|
# MANUAL END
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%build
|
2020-04-15 16:19:08 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-08-16 12:25:47 +00:00
|
|
|
%make_build
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-31 09:44:55 +00:00
|
|
|
make test
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2020-04-15 16:19:08 +00:00
|
|
|
%doc Changes const-c.inc const-xs.inc example
|
2013-04-18 15:02:40 +00:00
|
|
|
|
|
|
|
%changelog
|