python-paramiko/python-paramiko.spec
zhangpan cde39ddde8 fix CVE-2023-48795
(cherry picked from commit 7f7d0500d3d279f78907279ae9e865efee543f8c)
2024-01-12 09:53:15 +08:00

99 lines
3.6 KiB
RPMSpec

Name: python-paramiko
Version: 2.11.0
Release: 2
Summary: Python SSH module
License: LGPLv2+
URL: https://github.com/paramiko/paramiko
Source0: https://github.com/paramiko/paramiko/archive/%{version}/paramiko-%{version}.tar.gz
# Skip tests requiring invoke if it's not installed
# Can be removed when https://github.com/paramiko/paramiko/pull/1667/ is released
Patch6000: backport-Skip-tests-requiring-invoke.patch
Patch6001: 0003-remove-pytest-relaxed-dep.patch
Patch6002: backport-fix-error-in-sftp-testcase.patch
Patch6003: backport-0001-CVE-2023-48795.patch
Patch6004: backport-0002-CVE-2023-48795.patch
Patch6005: backport-0003-CVE-2023-48795.patch
Patch6006: backport-0004-CVE-2023-48795.patch
Patch6007: backport-0005-CVE-2023-48795.patch
Patch6008: backport-0006-CVE-2023-48795.patch
Patch6009: backport-0007-CVE-2023-48795.patch
BuildArch: noarch
%description
Paramiko is a combination of the Esperanto words for "paranoid" and "friend". It is a module
for Python 2.7/3.4+ that implements the SSH2 protocol for secure (encrypted and authenticated)
connections to remote machines.
%package -n python3-paramiko
Summary: Python SSH module
BuildRequires: python3-devel python3-setuptools python3-bcrypt >= 3.1.3 python3-pytest
BuildRequires: python3-cryptography >= 2.5 python3-pyasn1 >= 0.1.7 python3-pynacl >= 1.0.1
BuildRequires: python3-mock >= 2.0
Requires: python3-bcrypt >= 3.1.3 python3-cryptography >= 1.5
Requires: python3-pyasn1 >= 0.1.7 python3-pynacl >= 1.0.1
%{?python_provide:%python_provide python3-paramiko}
%description -n python3-paramiko
Paramiko is a combination of the Esperanto words for "paranoid" and "friend". python3-paramiko is
a module for Python 3.4+ that implements the SSH2 protocol for secure (encrypted and authenticated)
connections to remote machines. Unlike SSL (aka TLS), SSH2 protocol does not require hierarchical
certificates signed by a powerful central authority. You may know SSH2 as the protocol that replaced
Telnet and rsh for secure access to remote shells, but the protocol also includes the ability to open
arbitrary channels to remote services across the encrypted tunnel (this is how SFTP works, for example).
%package help
Summary: Docs and demos for SSH2 protocol library for python
BuildRequires: python3-sphinx
Provides: python-paramiko-doc = %{version}-%{release}
Obsoletes: python-paramiko-doc <= %{version}-%{release}
%description help
This is the documentation and demos for python-paramiko.
%prep
%autosetup -p1 -n paramiko-%{version}
%build
%py3_build
%install
%py3_install
sphinx-build -b html sites/docs/ html/
rm -f html/.buildinfo
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version}
%files -n python3-paramiko
%license LICENSE
%{python3_sitelib}/paramiko-*.egg-info/
%{python3_sitelib}/paramiko/
%files help
%doc html/ demos/ NEWS README.rst
%changelog
* Thu Jan 11 2024 zhangpan <zhangpan103@h-partners.com> - 2.11.0-2
- fix CVE-2023-48795
* Tue Oct 17 2023 zhuyuncheng <zhuyuncheng@huawei.com> - 2.11.0-1
- upgrade to 2.11.0-1
* Mon Mar 28 2022 dongyuzhen <dongyuzhen@h-partners.com> - 2.7.2-2
- fix CVE-2022-24302 and the rear patch of CVE-2022-24302
* Wed Apr 28 2021 jinzhimin <jinzhimin2@huawei.com> - 2.7.2-1
- Upgrade to 2.7.2
* Mon Feb 22 2021 jinzhimin <jinzhimin2@huawei.com> - 2.4.1-9
- fix CVE-2018-1000805
* Sat Jan 30 2021 jinzhimin <jinzhimin2@huawei.com> - 2.4.1-8
- remove python2-paramiko subpackage
* Wed Nov 06 2019 Lijin Yang <yanglijin@huawei.com> - 2.4.1-7
- init package