python-paramiko-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %define srcname paramiko
  3. Name: python-paramiko
  4. Version: 1.15.2
  5. Release: 1%{?_dist_release}
  6. Summary: A SSH2 protocol library for python
  7. Summary(ja): python 用 SSH2 プロトコルライブラリ
  8. Group: Development/Libraries
  9. # No version specified.
  10. License: LGPLv2+
  11. URL: https://github.com/paramiko/paramiko/
  12. Source0: https://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: python-ecdsa
  16. BuildRequires: python-setuptools
  17. BuildRequires: python-devel
  18. BuildRequires: python-crypto >= 2.1
  19. Requires: python-crypto >= 2.1
  20. %description
  21. Paramiko (a combination of the esperanto words for "paranoid" and "friend") is
  22. a module for python 2.3 or greater that implements the SSH2 protocol for secure
  23. (encrypted and authenticated) connections to remote machines. Unlike SSL (aka
  24. TLS), the SSH2 protocol does not require heirarchical certificates signed by a
  25. powerful central authority. You may know SSH2 as the protocol that replaced
  26. telnet and rsh for secure access to remote shells, but the protocol also
  27. includes the ability to open arbitrary channels to remote services across an
  28. encrypted tunnel. (This is how sftp works, for example.)
  29. %prep
  30. %setup -q -n %{srcname}-%{version}
  31. %{__chmod} a-x demos/*
  32. #%{__sed} -i -e '/^#!/,1d' demos/* paramiko/rng*
  33. %{__sed} -i -e '/^#!/,1d' demos/*
  34. %build
  35. CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
  39. %check
  40. python ./test.py --no-sftp --no-big-file
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc LICENSE README demos/
  46. %{python_sitelib}/*
  47. %changelog
  48. * Sat May 09 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.15.2-1
  49. - new upstream release
  50. - fixed %%check to skip sftp test
  51. * Mon Jan 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.12.1-1
  52. - new upstream release
  53. - added BuildRequires: python-ecdsa
  54. * Fri Sep 06 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.11.0-1
  55. - new upstream release
  56. - added BuildRequires: python-crypto >= 2.1
  57. - run test script
  58. * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.10.1-1
  59. - new upstream release
  60. - changed Source0 and URL
  61. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.7.1-2
  62. - rebuild with python-2.7.2
  63. * Wed Jul 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.7.7.1-1
  64. - new upstream release
  65. - changed Requires: python-crypto >= 2.1
  66. * Thu Nov 5 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.7.6-2
  67. - added BuildRequires: python-devel
  68. * Tue Nov 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.7.6-1
  69. - new upstream release
  70. * Wed Jul 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.7.5-1
  71. - initial build for VineSeed
  72. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-5
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  74. * Mon Feb 16 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.4-4
  75. - Add demos as documentation. BZ#485742
  76. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.7.4-3
  77. - Rebuild for Python 2.6
  78. * Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.4-2
  79. - fix license tag
  80. * Sun Jul 6 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.4-1
  81. - Update to 1.7.4
  82. * Mon Mar 24 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.3-1
  83. - Update to 1.7.3.
  84. * Tue Jan 22 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.2-1
  85. - Update to 1.7.2.
  86. - Remove upstreamed patch.
  87. * Mon Jan 14 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-3
  88. - Update to latest Python packaging guidelines.
  89. - Apply patch that fixes insecure use of RandomPool.
  90. * Thu Jul 19 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-2
  91. - Bump rev
  92. * Thu Jul 19 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-1
  93. - Update to 1.7.1
  94. * Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 1.6.4-1
  95. - Update to 1.6.4
  96. - Upstream is now shipping tarballs
  97. - Bump for python 2.5 in devel
  98. * Mon Oct 9 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.2-1
  99. - Update to 1.6.2
  100. * Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> 1.6.1-3
  101. - Rebuild for FC6
  102. * Fri Aug 11 2006 Shahms E. King <shahms@shahms.com> 1.6.1-2
  103. - Include, don't ghost .pyo files per new guidelines
  104. * Tue Aug 08 2006 Shahms E. King <shahms@shahms.com> 1.6.1-1
  105. - Update to new upstream version
  106. * Fri Jun 02 2006 Shahms E. King <shahms@shahms.com> 1.6-1
  107. - Update to new upstream version
  108. - ghost the .pyo files
  109. * Fri May 05 2006 Shahms E. King <shahms@shahms.com> 1.5.4-2
  110. - Fix source line and rebuild
  111. * Fri May 05 2006 Shahms E. King <shahms@shahms.com> 1.5.4-1
  112. - Update to new upstream version
  113. * Wed Apr 12 2006 Shahms E. King <shahms@shahms.com> 1.5.3-1
  114. - Initial package