%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define srcname paramiko Name: python-paramiko Version: 1.15.2 Release: 1%{?_dist_release} Summary: A SSH2 protocol library for python Summary(ja): python 用 SSH2 プロトコルライブラリ Group: Development/Libraries # No version specified. License: LGPLv2+ URL: https://github.com/paramiko/paramiko/ Source0: https://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch BuildRequires: python-ecdsa BuildRequires: python-setuptools BuildRequires: python-devel BuildRequires: python-crypto >= 2.1 Requires: python-crypto >= 2.1 %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 %{srcname}-%{version} %{__chmod} a-x demos/* #%{__sed} -i -e '/^#!/,1d' demos/* paramiko/rng* %{__sed} -i -e '/^#!/,1d' demos/* %build CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build %install rm -rf $RPM_BUILD_ROOT %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot} %check python ./test.py --no-sftp --no-big-file %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README demos/ %{python_sitelib}/* %changelog * Sat May 09 2015 Toshiharu Kudoh 1.15.2-1 - new upstream release - fixed %%check to skip sftp test * Mon Jan 13 2014 Toshiharu Kudoh 1.12.1-1 - new upstream release - added BuildRequires: python-ecdsa * Fri Sep 06 2013 Toshiharu Kudoh 1.11.0-1 - new upstream release - added BuildRequires: python-crypto >= 2.1 - run test script * Sun Apr 28 2013 Toshiharu Kudoh 1.10.1-1 - new upstream release - changed Source0 and URL * Sun Feb 19 2012 Yoji TOYODA 1.7.7.1-2 - rebuild with python-2.7.2 * Wed Jul 20 2011 Toshiharu Kudoh 1.7.7.1-1 - new upstream release - changed Requires: python-crypto >= 2.1 * Thu Nov 5 2009 Toshiharu Kudoh 1.7.6-2 - added BuildRequires: python-devel * Tue Nov 3 2009 Toshiharu Kudoh 1.7.6-1 - new upstream release * Wed Jul 29 2009 Toshiharu Kudoh 1.7.5-1 - initial build for VineSeed * Thu Feb 26 2009 Fedora Release Engineering - 1.7.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 16 2009 Jeffrey C. Ollie - 1.7.4-4 - Add demos as documentation. BZ#485742 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.7.4-3 - Rebuild for Python 2.6 * Wed Sep 3 2008 Tom "spot" Callaway - 1.7.4-2 - fix license tag * Sun Jul 6 2008 Jeffrey C. Ollie - 1.7.4-1 - Update to 1.7.4 * Mon Mar 24 2008 Jeffrey C. Ollie - 1.7.3-1 - Update to 1.7.3. * Tue Jan 22 2008 Jeffrey C. Ollie - 1.7.2-1 - Update to 1.7.2. - Remove upstreamed patch. * Mon Jan 14 2008 Jeffrey C. Ollie - 1.7.1-3 - Update to latest Python packaging guidelines. - Apply patch that fixes insecure use of RandomPool. * Thu Jul 19 2007 Jeffrey C. Ollie - 1.7.1-2 - Bump rev * Thu Jul 19 2007 Jeffrey C. Ollie - 1.7.1-1 - Update to 1.7.1 * Sat Dec 09 2006 Toshio Kuratomi - 1.6.4-1 - Update to 1.6.4 - Upstream is now shipping tarballs - Bump for python 2.5 in devel * Mon Oct 9 2006 Jeffrey C. Ollie - 1.6.2-1 - Update to 1.6.2 * Sat Sep 16 2006 Shahms E. King 1.6.1-3 - Rebuild for FC6 * Fri Aug 11 2006 Shahms E. King 1.6.1-2 - Include, don't ghost .pyo files per new guidelines * Tue Aug 08 2006 Shahms E. King 1.6.1-1 - Update to new upstream version * Fri Jun 02 2006 Shahms E. King 1.6-1 - Update to new upstream version - ghost the .pyo files * Fri May 05 2006 Shahms E. King 1.5.4-2 - Fix source line and rebuild * Fri May 05 2006 Shahms E. King 1.5.4-1 - Update to new upstream version * Wed Apr 12 2006 Shahms E. King 1.5.3-1 - Initial package