pyOpenSSL-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define pkg_release 2%{?_dist_release}
  3. Summary: Python wrapper module around the OpenSSL library
  4. Summary(ja): OpenSSL ライブラリの Python ラッパーモジュール
  5. Name: pyOpenSSL
  6. Version: 0.7
  7. Release: %{pkg_release}
  8. Source0: http://pyopenssl.sf.net/%{name}-%{version}.tar.gz
  9. Patch0: pyOpenSSL-0.7-openssl.patch
  10. Patch2: pyOpenSSL-elinks.patch
  11. Patch3: pyOpenSSL-nopdfout.patch
  12. Patch4: pyOpenSSL-threadsafe.patch
  13. License: LGPLv2+
  14. Group: Development/Libraries
  15. URL: http://pyopenssl.sourceforge.net/
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: openssl-devel, python-devel
  18. BuildRequires: tetex, latex2html
  19. %description
  20. High-level wrapper around a subset of the OpenSSL library, includes
  21. * SSL.Connection objects, wrapping the methods of Python's portable
  22. sockets
  23. * Callbacks written in Python
  24. * Extensive error-handling mechanism, mirroring OpenSSL's error codes
  25. ... and much more ;)
  26. %prep
  27. %setup -q
  28. %patch0 -p1 -b .openssl097
  29. %patch2 -p1 -b .elinks
  30. %patch3 -p1 -b .nopdfout
  31. %patch4 -p1 -b .threadsafe
  32. # Fix permissions for debuginfo package
  33. %{__chmod} -x src/ssl/connection.c
  34. %build
  35. CFLAGS="%{optflags}" %{__python} setup.py build
  36. %{__make} -C doc ps
  37. %{__make} -C doc text html
  38. %install
  39. %{__rm} -rf %{buildroot}
  40. %{__python} setup.py install -O1 --skip-build --root %{buildroot}
  41. %clean
  42. %{__rm} -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc README doc/pyOpenSSL.ps
  46. %doc doc/pyOpenSSL.txt doc/html
  47. %{python_sitearch}/OpenSSL/
  48. %{python_sitearch}/%{name}*.egg-info
  49. %changelog
  50. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.7-2
  51. - rebuilt with python-2.6.4
  52. * Tue Dec 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7-1
  53. - initial build for Vine Linux based on fedora package
  54. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7-3
  55. - Rebuild for Python 2.6
  56. * Fri Sep 19 2008 Dennis Gilmore <dennis@ausil.us> - 0.7-2
  57. - update threadsafe patch
  58. - bug#462807
  59. * Mon Sep 15 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 0.7-1
  60. - bump to new release
  61. - the inevitable patch fixes
  62. * Wed Mar 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6-4
  63. - fix horrific release tag
  64. - fix license tag
  65. - add egg-info
  66. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6-3.p24.9
  67. - Autorebuild for GCC 4.3
  68. * Wed Dec 5 2007 Jeremy Katz <katzj@redhat.com> - 0.6-2.p24.9
  69. - rebuild for new openssl
  70. * Mon Dec 11 2006 Paul Howarth <paul@city-fan.org> - 0.6-1.p24.9
  71. - add missing buildreq latex2html, needed to build HTML docs
  72. - rewrite to be more in line with Fedora python spec template and use
  73. %%{python_sitearch} rather than a script-generated %%files list
  74. - package is not relocatable - drop Prefix: tag
  75. - buildreq perl not necessary
  76. - fix permissions for files going into debuginfo package
  77. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.8
  78. - rebuild for python 2.5
  79. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.2
  80. - rebuild
  81. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.1
  82. - bump again for double-long bug on ppc(64)
  83. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2
  84. - rebuilt for new gcc4.1 snapshot and glibc changes
  85. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  86. - rebuilt
  87. * Wed Nov 9 2005 Mihai Ibanescu <misa@redhat.com> - 0.6-1.p24.7
  88. - rebuilt against newer openssl
  89. * Wed Aug 24 2005 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.6
  90. - add dcbw's patch to fix some threading problems
  91. * Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 0.6-1.p24.5
  92. - current rpm creates .pyo files, include them in filelist
  93. * Thu Mar 17 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.4
  94. - rebuilt
  95. * Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.3
  96. - rebuilt
  97. * Mon Mar 7 2005 Tomas Mraz <tmraz@redhat.com> 0.6-1.p23.2
  98. - rebuild with openssl-0.9.7e
  99. * Tue Nov 9 2004 Nalin Dahyabhai <nalin@redhat.com> 0.6-1.p23.1
  100. - rebuild
  101. * Fri Aug 13 2004 Mihai Ibanescu <misa@redhat.com> 0.6-1
  102. - 0.6 is out
  103. * Tue Aug 10 2004 Mihai Ibanescu <misa@redhat.com> 0.6-0.90.rc1
  104. - release candidate
  105. * Thu Jun 24 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-24
  106. - rebuilt
  107. * Mon Jun 21 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-23
  108. - rebuilt
  109. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  110. - rebuilt
  111. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  112. - rebuilt
  113. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  114. - rebuilt
  115. * Wed Nov 5 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-20
  116. - rebuilt against python 2.3.2
  117. * Fri Aug 8 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-12
  118. - lynx no longer supported, using elinks instead (patch from
  119. Michael Redinger <michael.redinger@uibk.ac.at>, bug #101947 )
  120. * Wed Jun 4 2003 Elliot Lee <sopwith@redhat.com> 0.5.1-11
  121. - Rebuilt
  122. * Wed Jun 4 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-10.7.x
  123. - Built on 7.x
  124. * Mon Mar 3 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-9
  125. - bug #73967: Added Requires: python
  126. * Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
  127. - rebuilt
  128. * Fri Feb 21 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-7
  129. - bug #84803: Added patch to expose more flags
  130. * Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-5
  131. - installing to %%{_libdir}
  132. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  133. - rebuilt
  134. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.5.1-3
  135. - rebuild
  136. * Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
  137. - Add -I and -L flags for finding Kerberos headers and libraries, in case
  138. they're referenced
  139. * Tue Dec 3 2002 Mihai Ibanescu <misa@redhat.com>
  140. - Fix for bug 73967: site-packages/OpenSSL not owned by this package
  141. - Adding hacks around the lack of latex2html on ia64
  142. * Tue Sep 24 2002 Mihai Ibanescu <misa@redhat.com>
  143. - 0.5.1
  144. * Thu Aug 29 2002 Mihai Ibanescu <misa@redhat.com>
  145. - Building 0.5.1rc1 with version number 0.5.0.91 (this should also fix the big
  146. error of pushing 0.5pre previously, since it breaks rpm's version comparison
  147. algorithm).
  148. - We use %%{__python}. Too bad I can't pass --define's to distutils.
  149. * Fri Aug 16 2002 Mihai Ibanescu <misa@redhat.com>
  150. - Building 0.5
  151. * Fri Jun 14 2002 Mihai Ibanescu <misa@redhat.com>
  152. - Added documentation