|
|
f4f81b2 |
# IDEA is a patent-encumbered algorithm so default to not supporting it
|
|
|
19b2813 |
# To include support for the IDEA algorithm, use: rpmbuild --with IDEA
|
|
|
19b2813 |
|
|
|
19b2813 |
Summary: SSH (Secure Shell) client
|
|
|
19b2813 |
Name: perl-Net-SSH-Perl
|
|
|
36d9d1e |
Version: 1.38
|
|
|
36d9d1e |
Release: 1%{?dist}
|
|
|
9c36545 |
License: GPL+ or Artistic
|
|
|
19b2813 |
Group: Development/Libraries
|
|
|
19b2813 |
Url: http://search.cpan.org/dist/Net-SSH-Perl/
|
|
|
36d9d1e |
Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/Net-SSH-Perl-%{version}.tar.gz
|
|
|
275c93b |
Source1: 14964AC8.asc
|
|
|
aabdbf4 |
Source2: 161C06B1.asc
|
|
|
4518271 |
Source3: CD613C9B.asc
|
|
|
51022e2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
19b2813 |
BuildArch: noarch
|
|
|
221ed03 |
BuildRequires: perl
|
|
|
80b90fe |
BuildRequires: perl(Carp)
|
|
|
80b90fe |
BuildRequires: perl(Compress::Zlib)
|
|
|
af0f670 |
BuildRequires: perl(Convert::PEM) >= 0.05
|
|
|
19b2813 |
BuildRequires: perl(Crypt::Blowfish)
|
|
|
80b90fe |
BuildRequires: perl(Crypt::DES)
|
|
|
af0f670 |
BuildRequires: perl(Crypt::DH) >= 0.01
|
|
|
af0f670 |
BuildRequires: perl(Crypt::DSA) >= 0.11
|
|
|
19b2813 |
BuildRequires: perl(Crypt::RSA)
|
|
|
19b2813 |
BuildRequires: perl(Digest::BubbleBabble)
|
|
|
19b2813 |
BuildRequires: perl(Digest::HMAC_MD5)
|
|
|
19b2813 |
BuildRequires: perl(Digest::HMAC_SHA1)
|
|
|
19b2813 |
BuildRequires: perl(Digest::MD5)
|
|
|
af0f670 |
BuildRequires: perl(Digest::SHA1) >= 2.10
|
|
|
35156fa |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
80b90fe |
BuildRequires: perl(IO::Select)
|
|
|
80b90fe |
BuildRequires: perl(IO::Socket)
|
|
|
af0f670 |
BuildRequires: perl(Math::GMP) >= 1.04
|
|
|
af0f670 |
BuildRequires: perl(Math::Pari) >= 2.001804
|
|
|
19b2813 |
BuildRequires: perl(MIME::Base64)
|
|
|
80b90fe |
BuildRequires: perl(Scalar::Util)
|
|
|
80b90fe |
BuildRequires: perl(Socket)
|
|
|
80b90fe |
BuildRequires: perl(String::CRC32) >= 1.2
|
|
|
9c36545 |
BuildRequires: perl(Test::More)
|
|
|
80b90fe |
BuildRequires: perl(Tie::Handle)
|
|
|
0f176d5 |
# Additional test coverage
|
|
|
0f176d5 |
BuildRequires: perl(Module::Signature)
|
|
|
0f176d5 |
BuildRequires: perl(Test::Pod) >= 0.95
|
|
|
0f176d5 |
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
0f176d5 |
BuildRequires: perl(Test::YAML::Meta) >= 0.03
|
|
|
0f176d5 |
BuildRequires: perl(Perl::Critic)
|
|
|
aabdbf4 |
BuildRequires: perl(Text::SpellChecker), hunspell-en
|
|
|
f4f81b2 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
f4f81b2 |
Requires: perl(Term::ReadKey)
|
|
|
19b2813 |
|
|
|
f21f832 |
# If building with IDEA support, we need to build with Crypt::IDEA,
|
|
|
f21f832 |
# otherwise we need to filter out the dependency on it
|
|
|
f21f832 |
%if 0%{?_with_IDEA:1}
|
|
|
f21f832 |
BuildRequires: perl(Crypt::IDEA)
|
|
|
f21f832 |
%else
|
|
|
f21f832 |
%global __requires_exclude ^perl\\(Crypt::IDEA\\)
|
|
|
f21f832 |
%endif
|
|
|
19b2813 |
|
|
|
4aba462 |
# Make sure the installed package has blowfish support
|
|
|
4aba462 |
Requires: perl(Crypt::Blowfish)
|
|
|
4aba462 |
|
|
|
19b2813 |
%description
|
|
|
19b2813 |
Net::SSH::Perl is an all-Perl module implementing an SSH (Secure Shell)
|
|
|
19b2813 |
client. It is compatible with both the SSH-1 and SSH-2 protocols.
|
|
|
19b2813 |
|
|
|
19b2813 |
%prep
|
|
|
fbb81f0 |
%setup -q -c -n Net-SSH-Perl
|
|
|
fbb81f0 |
|
|
|
fbb81f0 |
# Copy up documentation for convenience with %%doc
|
|
|
51022e2 |
cp -a Net-SSH-Perl-%{version}/{Changes,README,LICENSE,eg,ToDo} .
|
|
|
19b2813 |
|
|
|
19b2813 |
# Avoid extra deps from examples
|
|
|
51022e2 |
chmod -c -x eg/*
|
|
|
19b2813 |
|
|
|
fbb81f0 |
# Create a GPG directory for testing, to avoid using ~/.gnupg
|
|
|
51022e2 |
mkdir --mode=0700 gnupghome
|
|
|
fbb81f0 |
export GNUPGHOME=$(pwd)/gnupghome
|
|
|
4518271 |
gpg --import %{SOURCE1} %{SOURCE2} %{SOURCE3}
|
|
|
fbb81f0 |
|
|
|
f21f832 |
# Remove Crypt::IDEA dep if we're not supporting the IDEA algorithm and we don't have rpm 4.9
|
|
|
19b2813 |
%define bogusreq 'perl(Crypt::IDEA)'
|
|
|
51022e2 |
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Fvx %{bogusreq}"
|
|
|
19b2813 |
%{!?_with_IDEA:%define __perl_requires %{reqfilt}}
|
|
|
19b2813 |
|
|
|
19b2813 |
%build
|
|
|
fbb81f0 |
cd Net-SSH-Perl-%{version}
|
|
|
19b2813 |
(
|
|
|
19b2813 |
# Protocol support (select one)
|
|
|
19b2813 |
# 1=SSH1 2=SSH2 3=Both
|
|
|
19b2813 |
echo 3
|
|
|
19b2813 |
|
|
|
19b2813 |
# Algorithm selection (select all required)
|
|
|
19b2813 |
# 1=IDEA 2=DES 3=DES3 4=Blowfish 5=RC4
|
|
|
19b2813 |
echo %{?_with_IDEA:1 }2 3 4 5
|
|
|
19b2813 |
) |
|
|
|
51022e2 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
51022e2 |
make %{?_smp_mflags}
|
|
|
fbb81f0 |
cd -
|
|
|
19b2813 |
|
|
|
19b2813 |
%install
|
|
|
51022e2 |
rm -rf %{buildroot}
|
|
|
80b90fe |
make -C Net-SSH-Perl-%{version} pure_install DESTDIR=%{buildroot}
|
|
|
51022e2 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
80b90fe |
%{_fixperms} %{buildroot}
|
|
|
fbb81f0 |
|
|
|
fbb81f0 |
%check
|
|
|
fbb81f0 |
# Critic and POD tests currently fail
|
|
|
fbb81f0 |
export GNUPGHOME=$(pwd)/gnupghome
|
|
|
e2645fc |
cd Net-SSH-Perl-%{version}
|
|
|
e2645fc |
|
|
|
e2645fc |
# Locale set to en_US for spell check tests
|
|
|
e2645fc |
LANG=en_US make test \
|
|
|
36d9d1e |
TEST_AUTHOR=1 TEST_CRITIC=0 TEST_SIGNATURE=1 TEST_SPELL=0
|
|
|
e2645fc |
|
|
|
e2645fc |
cd -
|
|
|
e2645fc |
|
|
|
19b2813 |
%clean
|
|
|
51022e2 |
rm -rf %{buildroot}
|
|
|
19b2813 |
|
|
|
19b2813 |
%files
|
|
|
36d9d1e |
%if 0%{?_licensedir:1}
|
|
|
36d9d1e |
%license LICENSE
|
|
|
36d9d1e |
%else
|
|
|
36d9d1e |
%doc LICENSE
|
|
|
36d9d1e |
%endif
|
|
|
36d9d1e |
%doc Changes README eg ToDo
|
|
|
19b2813 |
%{perl_vendorlib}/Net/
|
|
|
19b2813 |
%{_mandir}/man3/Net::SSH::Perl*.3pm*
|
|
|
19b2813 |
|
|
|
19b2813 |
%changelog
|
|
|
36d9d1e |
* Thu Oct 9 2014 Paul Howarth <paul@city-fan.org> - 1.38-1
|
|
|
36d9d1e |
- Update to 1.38
|
|
|
36d9d1e |
- Install valid SIGNATURE file (CPAN RT#99284)
|
|
|
36d9d1e |
- Re-enable the signature test
|
|
|
36d9d1e |
- This release by TURNSTEP → update source URL
|
|
|
36d9d1e |
- Use %%license where possible
|
|
|
36d9d1e |
|
|
|
0cea735 |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.37-3
|
|
|
0cea735 |
- Perl 5.20 rebuild
|
|
|
0cea735 |
|
|
|
34a22de |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-2
|
|
|
34a22de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
34a22de |
|
|
|
221ed03 |
* Sun Mar 30 2014 Paul Howarth <paul@city-fan.org> - 1.37-1
|
|
|
221ed03 |
- Update to 1.37
|
|
|
221ed03 |
- Enabled config option "StrictHostKeyChecking"; the corresponding code
|
|
|
221ed03 |
already existed (CPAN RT#91840)
|
|
|
221ed03 |
- Don't test signature because upstream forgot to re-generate it
|
|
|
221ed03 |
|
|
|
9c23f33 |
* Sat Aug 10 2013 Paul Howarth <paul@city-fan.org> - 1.36-1
|
|
|
9c23f33 |
- Update to 1.36
|
|
|
9c23f33 |
- CPAN RT#48338 - Fix race condition with SSHv2
|
|
|
9c23f33 |
- CPAN RT#55195 - Fix race condition in KEXINIT
|
|
|
9c23f33 |
- CPAN RT#67586 - Fix test '03-packet.t' hangs forever
|
|
|
9c23f33 |
- CPAN RT#64517 - Enable PTY support in SSH2
|
|
|
9c23f33 |
- CPAN RT#23947 - Replacement for KeyboardInt.pm
|
|
|
9c23f33 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
9c23f33 |
- Disable spell check test, which simplifies the spec considerably
|
|
|
9c23f33 |
|
|
|
6e3a816 |
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1.35-3
|
|
|
6e3a816 |
- Perl 5.18 rebuild
|
|
|
6e3a816 |
|
|
|
4b3550f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.35-2
|
|
|
4b3550f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4b3550f |
|
|
|
e16a53b |
* Mon Dec 3 2012 Paul Howarth <paul@city-fan.org> 1.35-1
|
|
|
e16a53b |
- Update to 1.35
|
|
|
e16a53b |
- Apply patch to t/03-packet.t for 5.15+ (CPAN RT#76482)
|
|
|
e16a53b |
- This release by SCHWIGON -> update source URL
|
|
|
e16a53b |
- Drop upstreamed patch for CPAN RT#76482
|
|
|
e16a53b |
|
|
|
1b0f7cc |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-17
|
|
|
1b0f7cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1b0f7cc |
|
|
|
a23d1a6 |
* Mon Jul 2 2012 Paul Howarth <paul@city-fan.org> 1.34-16
|
|
|
a23d1a6 |
- Fix breakage with Perl 5.16 (CPAN RT#76482)
|
|
|
a23d1a6 |
- Drop buildreqs for modules that are not dual-lived
|
|
|
a23d1a6 |
- Don't need to remove empty directories from the buildroot
|
|
|
a23d1a6 |
|
|
|
a8b2742 |
* Mon Jul 02 2012 Petr Pisar <ppisar@redhat.com> - 1.34-15
|
|
|
a8b2742 |
- Perl 5.16 rebuild
|
|
|
a8b2742 |
|
|
|
80b90fe |
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> 1.34-14
|
|
|
80b90fe |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
80b90fe |
- Use %%{_fixperms} macro rather than our own chmod incantation
|
|
|
80b90fe |
- Add buildreqs not mentioned in module metadata
|
|
|
80b90fe |
|
|
|
f4f81b2 |
* Wed Jul 20 2011 Paul Howarth <paul@city-fan.org> 1.34-13
|
|
Petr Sabata |
895237e |
- Perl mass rebuild
|
|
|
e2645fc |
- Work around MYMETA.yml causing signature test to fail
|
|
|
f4f81b2 |
- Use LANG rather than LC_ALL to set locale for spell check test
|
|
Petr Sabata |
895237e |
|
|
|
51022e2 |
* Thu Jun 23 2011 Paul Howarth <paul@city-fan.org> 1.34-12
|
|
|
51022e2 |
- Nobody else likes macros for commands
|
|
|
51022e2 |
- Update fix for spell check test again
|
|
|
51022e2 |
|
|
|
f21f832 |
* Sat Feb 12 2011 Paul Howarth <paul@city-fan.org> 1.34-11
|
|
|
f21f832 |
- Fix dependency filtering for Crypt::IDEA in rpm 4.9
|
|
|
f21f832 |
|
|
|
3a9dfda |
* Wed Feb 9 2011 Paul Howarth <paul@city-fan.org> 1.34-10
|
|
|
3a9dfda |
- Update fix for spell check test as dictionary coverage in Rawhide appears
|
|
|
3a9dfda |
to have gone down
|
|
|
3a9dfda |
|
|
|
bae8df5 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-9
|
|
|
bae8df5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
bae8df5 |
|
|
|
aabdbf4 |
* Mon Oct 4 2010 Paul Howarth <paul@city-fan.org> 1.34-8
|
|
|
aabdbf4 |
- BR: hunspell-en rather than aspell-en now that Text::SpellChecker uses a
|
|
|
aabdbf4 |
hunspell back-end
|
|
|
aabdbf4 |
- Fix spell check test to add words not in hunspell dictionary
|
|
|
aabdbf4 |
|
|
|
fbb81f0 |
* Thu May 13 2010 Paul Howarth <paul@city-fan.org> 1.34-7
|
|
|
fbb81f0 |
- Don't clobber ~/.gnupg during build
|
|
|
fbb81f0 |
|
|
|
82ad78b |
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.34-6
|
|
|
82ad78b |
- Mass rebuild with perl-5.12.0
|
|
|
82ad78b |
|
|
|
ff56ece |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.34-5
|
|
|
fbb81f0 |
- Rebuild against perl 5.10.1
|
|
|
ff56ece |
|
|
|
58dc73b |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-4
|
|
|
58dc73b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
58dc73b |
|
|
|
8475d25 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-3
|
|
|
8475d25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
8475d25 |
|
|
|
47d8d68 |
* Sun Feb 22 2009 Paul Howarth <paul@city-fan.org> 1.34-2
|
|
|
47d8d68 |
- Add buildreq aspell-en for spell check test
|
|
|
47d8d68 |
|
|
|
3074768 |
* Mon Feb 2 2009 Paul Howarth <paul@city-fan.org> 1.34-1
|
|
|
3074768 |
- Update to 1.34, fixes various upstream bugs:
|
|
|
3074768 |
* Rekey properly after 1 GB of data (rt.cpan.org #25044)
|
|
|
3074768 |
* Don't try to process nonexistent or empty auth file (rt.cpan.org #41877)
|
|
|
3074768 |
* Fix typo in croak message (rt.cpan.org #42056)
|
|
|
3074768 |
* Move 'use base' call after Crypt module loading (rt.cpan.org #42051)
|
|
|
3074768 |
* Only apply stdin if defined in SSH1 (rt.cpan.org #42583)
|
|
|
3074768 |
|
|
|
dea1b7d |
* Tue Nov 4 2008 Paul Howarth <paul@city-fan.org> 1.33-2
|
|
|
dea1b7d |
- Run tests in en_US locale, so spell checker doesn't complain about the use of
|
|
|
dea1b7d |
American English when the host is in a non-US locale
|
|
|
dea1b7d |
|
|
|
0f176d5 |
* Mon Nov 3 2008 Paul Howarth <paul@city-fan.org> 1.33-1
|
|
|
0f176d5 |
- Update to 1.33 (#469612), fixes various upstream bugs:
|
|
|
275c93b |
* Fix open() calls (rt.cpan.org #40020)
|
|
|
275c93b |
* Fix non-shell problem (rt.cpan.org #39980)
|
|
|
275c93b |
* Allow full agent forwarding (rt.cpan.org #32190)
|
|
|
275c93b |
* Handle hashed known_hosts files (rt.cpan.org #25175)
|
|
|
275c93b |
* Add IO::Handle to Perl.pm (rt.cpan.org #40057, #35985)
|
|
|
275c93b |
* Prevent t/03-packet.t from hanging due to high file descriptor
|
|
|
275c93b |
| (rt.cpan.org #6101)
|
|
|
275c93b |
* If ENV{HOME} is not set, use getpwuid. If both fail and the dir
|
|
|
275c93b |
| is needed, we croak (rt.cpan.org #25174)
|
|
|
275c93b |
* Fix incorrect logical/bitwise AND mixup (rt.cpan.org #31490)
|
|
|
275c93b |
* Allow empty stdin for SSH2 (rt.cpan.org #32730)
|
|
|
275c93b |
* Adjust terminal dimensions dynamically if Term::ReadKey is available
|
|
|
275c93b |
| (rt.cpan.org #34874)
|
|
|
0f176d5 |
- New upstream (co-)maintainer, new source URL
|
|
|
0f176d5 |
- t/03-packet.t re-enabled as it should no longer hang
|
|
|
0f176d5 |
- Add buildreqs Module::Signature, Test::Pod, Test::Pod::Coverage,
|
|
|
0f176d5 |
Perl::Critic, Test::YAML::Meta, Text::SpellChecker for additional test
|
|
|
0f176d5 |
coverage
|
|
|
0f176d5 |
- Add dependency on Term::ReadKey to provide dynamic terminal resizing
|
|
|
275c93b |
- Include upstream maintainer's GPG key for signature checking
|
|
|
0f176d5 |
|
|
|
b7a43fe |
* Thu Mar 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.30-6
|
|
|
0f176d5 |
- Rebuild for new perl
|
|
|
b7a43fe |
|
|
|
9c36545 |
* Mon Aug 13 2007 Paul Howarth <paul@city-fan.org> 1.30-5
|
|
|
9c36545 |
- Clarify license as GPL v1 or later, or Artistic (same as perl)
|
|
|
9c36545 |
- Add buildreq perl(Test::More)
|
|
|
9c36545 |
|
|
|
35156fa |
* Wed Apr 18 2007 Paul Howarth <paul@city-fan.org> 1.30-4
|
|
|
35156fa |
- Buildrequire perl(ExtUtils::MakeMaker)
|
|
|
af0f670 |
- Fix argument order for find with -depth
|
|
|
af0f670 |
|
|
|
4aba462 |
* Wed Aug 30 2006 Paul Howarth <paul@city-fan.org> 1.30-3
|
|
|
4aba462 |
- Skip test 03-packet, which can sometimes hang (cpan rt#6101)
|
|
|
4aba462 |
- Add manual Crypt::Blowfish dep to ensure we have blowfish support
|
|
|
4aba462 |
|
|
|
313ee9c |
* Wed Aug 30 2006 Paul Howarth <paul@city-fan.org> 1.30-2
|
|
|
313ee9c |
- FE6 mass rebuild
|
|
|
313ee9c |
|
|
|
19b2813 |
* Mon Mar 20 2006 Paul Howarth <paul@city-fan.org> 1.30-1
|
|
|
19b2813 |
- Update to 1.30
|
|
|
19b2813 |
- Patch for cpan rt#11674 no longer needed, fixed upstream
|
|
|
19b2813 |
|
|
|
19b2813 |
* Thu Mar 2 2006 Paul Howarth <paul@city-fan.org> 1.29-1
|
|
|
19b2813 |
- Initial build
|