python-paramiko-vl.spec 4.6 KB

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