%bcond_with dotests %global __tar /opt/freeware/bin/tar %global py_minor 16 %global py_major 3.9 %global python_major python%{py_major} %global pkgname paramiko %global meta_package python3-%{pkgname} %global python3_sitearch %(%{python_major} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(0))") Name: %{python_major}-%{pkgname} Version: 2.11.0 Release: 2 Summary: A SSH2 protocol library for python License: LGPLv2+ URL: https://pypi.python.org/pypi/%{pkgname} Source0: https://files.pythonhosted.org/packages/source/p/%{pkgname}/%{pkgname}-%{version}.tar.gz BuildArch: noarch Requires: %{python_major}-bcrypt >= 3.1.7 Requires: %{python_major}-cryptography >= 2.8 Requires: %{python_major}-pynacl >= 1.3.0 BuildRequires: %{python_major}-devel >= %{py_major}.%{py_minor} BuildRequires: %{python_major}-setuptools >= 65.2.0 Requires: %{python_major} >= %{py_major}.%{py_minor} %description Paramiko (a combination of the esperanto words for "paranoid" and "friend") is a module for python 2.3 or greater that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote machines. Unlike SSL (aka TLS), the SSH2 protocol does not require heirarchical 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 an encrypted tunnel. (This is how sftp works, for example.) %package -n %{meta_package} Summary: Meta-package for %{name} Requires: python3 >= %{py_major}.%{py_minor} Requires: %{name} = %{version}-%{release} %description -n %{meta_package} This is a Meta-package for %{name} package. %prep %autosetup -n %{pkgname}-%{version} %build export PATH=/opt/freeware/bin:$PATH %{python_major} setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %{python_major} setup.py install --root %{buildroot} %check %if %{with dotests} #python3 -m venv python_venv #. ./python_venv/bin/activate #pip3 install pytest #pip3 install hypothesis #ulimit -d unlimited #ulimit -n unlimited #ulimit -m unlimited # ulimit -f unlimited #( python runtests.py -m 'full' -v || true ) #deactivate %endif %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %license LICENSE %doc README.rst PKG-INFO %{python3_sitearch}/* %files -n %{meta_package} %defattr(-,root,system,-) %changelog * Tue Jan 17 2023 Sangeetha Bandi - 2.11.0-2 - paramiko for python3.9 * Wed Jun 15 2022 Sangeetha Bandi - 2.11.0-1 - update to version 2.11.0 (Fixed CVE-2022-24302) * Tue Dec 03 2019 Baanu tumma - 2.6.0-1 - update to version 2.6.0 ( fixed CVE-2018-7750 CVE-2018-1000805 ), built using python3 * Tue Feb 08 2011 Michael Perzl - 1.7.6-1 - updated to version 1.7.6 * Wed Sep 02 2009 Michael Perzl - 1.7.5-1 - first version for AIX V5.1 and higher