From 14d6cb9100379a1e781af90d27ad51e996fa8a89 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:14:27 +0100 Subject: [PATCH] require python-ecdsa [release 1.13-2mamba;Mon Mar 24 2014] --- README.md | 2 ++ python-paramiko.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 python-paramiko.spec diff --git a/README.md b/README.md index 2912f7f..e537332 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-paramiko +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.) + diff --git a/python-paramiko.spec b/python-paramiko.spec new file mode 100644 index 0000000..c539131 --- /dev/null +++ b/python-paramiko.spec @@ -0,0 +1,79 @@ +Name: python-paramiko +Version: 1.13 +Release: 2mamba +Summary: Paramiko SSH2 library for Python +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.lag.net/paramiko/ +# https://github.com/robey/paramiko +Source: https://github.com/paramiko/paramiko.git/%{version}/paramiko-%{version}.tar.bz2 +License: LGPL +Requires: python >= %python_version +Requires: python-crypto +BuildRequires: python-setuptools-devel +## AUTOBUILDREQ-BEGIN +BuildRequires: python-crypto +## AUTOBUILDREQ-END +Requires: python-ecdsa +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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.) + +%prep + +%setup -q -n paramiko-%{version} +# https://bugs.launchpad.net/paramiko/+bug/411099 +chmod a-x demos/* + +sed -i -e '/^#!/,1d' demos/* + +for p in $(find . -name "*.py"); do + sed -i 's|#!/usr/bin/python|#!%{__python}|' $p + sed -i 's|#!/usr/bin/env python|#!%{__python}|' $p +done + +%build +CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot} + + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info +%{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info/PKG-INFO +%{python_sitelib}/paramiko-%{version}*-py%{python_version}.egg-info/*.txt +%dir %{python_sitelib}/paramiko +%{python_sitelib}/paramiko/*.py* +%doc LICENSE README demos/ + +%changelog +* Mon Mar 24 2014 Silvan Calarco 1.13-2mamba +- require python-ecdsa + +* Tue Mar 18 2014 Silvan Calarco 1.13-1mamba +- update to 1.13 + +* Fri May 17 2013 Silvan Calarco 1.7.7.1-2mamba +- python 2.7 mass rebuild + +* Thu Aug 09 2012 Automatic Build System 1.7.7.1-1mamba +- automatic version update by autodist + +* Mon May 09 2011 Silvan Calarco 1.7.6-2mamba +- rebuilt in devel + +* Sun Feb 28 2010 gil 1.7.6-1mamba +- update to 1.7.6 "Fanny" released +- fixed bug id 411099 + +* Thu Jan 22 2009 gil 1.7.4-1mamba +- package created by autospec