pyOpenSSL-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define pkg_release 4%{?_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: 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. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7-4
  51. - rebuild with python-2.7.2
  52. * Sat Jan 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7-3
  53. - rebuilt with openssl-1.0.0c
  54. - remove BuildRequires: tetex
  55. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.7-2
  56. - rebuilt with python-2.6.4
  57. * Tue Dec 23 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7-1
  58. - initial build for Vine Linux based on fedora package
  59. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7-3
  60. - Rebuild for Python 2.6
  61. * Fri Sep 19 2008 Dennis Gilmore <dennis@ausil.us> - 0.7-2
  62. - update threadsafe patch
  63. - bug#462807
  64. * Mon Sep 15 2008 Paul F. Johnson <paul@all-the-johnsons.co.uk> 0.7-1
  65. - bump to new release
  66. - the inevitable patch fixes
  67. * Wed Mar 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6-4
  68. - fix horrific release tag
  69. - fix license tag
  70. - add egg-info
  71. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6-3.p24.9
  72. - Autorebuild for GCC 4.3
  73. * Wed Dec 5 2007 Jeremy Katz <katzj@redhat.com> - 0.6-2.p24.9
  74. - rebuild for new openssl
  75. * Mon Dec 11 2006 Paul Howarth <paul@city-fan.org> - 0.6-1.p24.9
  76. - add missing buildreq latex2html, needed to build HTML docs
  77. - rewrite to be more in line with Fedora python spec template and use
  78. %%{python_sitearch} rather than a script-generated %%files list
  79. - package is not relocatable - drop Prefix: tag
  80. - buildreq perl not necessary
  81. - fix permissions for files going into debuginfo package
  82. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.8
  83. - rebuild for python 2.5
  84. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.2
  85. - rebuild
  86. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2.1
  87. - bump again for double-long bug on ppc(64)
  88. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.6-1.p24.7.2
  89. - rebuilt for new gcc4.1 snapshot and glibc changes
  90. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  91. - rebuilt
  92. * Wed Nov 9 2005 Mihai Ibanescu <misa@redhat.com> - 0.6-1.p24.7
  93. - rebuilt against newer openssl
  94. * Wed Aug 24 2005 Jeremy Katz <katzj@redhat.com> - 0.6-1.p24.6
  95. - add dcbw's patch to fix some threading problems
  96. * Wed Aug 03 2005 Karsten Hopp <karsten@redhat.de> 0.6-1.p24.5
  97. - current rpm creates .pyo files, include them in filelist
  98. * Thu Mar 17 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.4
  99. - rebuilt
  100. * Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 0.6-1.p24.3
  101. - rebuilt
  102. * Mon Mar 7 2005 Tomas Mraz <tmraz@redhat.com> 0.6-1.p23.2
  103. - rebuild with openssl-0.9.7e
  104. * Tue Nov 9 2004 Nalin Dahyabhai <nalin@redhat.com> 0.6-1.p23.1
  105. - rebuild
  106. * Fri Aug 13 2004 Mihai Ibanescu <misa@redhat.com> 0.6-1
  107. - 0.6 is out
  108. * Tue Aug 10 2004 Mihai Ibanescu <misa@redhat.com> 0.6-0.90.rc1
  109. - release candidate
  110. * Thu Jun 24 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-24
  111. - rebuilt
  112. * Mon Jun 21 2004 Mihai Ibanescu <misa@redhat.com> 0.5.1-23
  113. - rebuilt
  114. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  115. - rebuilt
  116. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  117. - rebuilt
  118. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  119. - rebuilt
  120. * Wed Nov 5 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-20
  121. - rebuilt against python 2.3.2
  122. * Fri Aug 8 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-12
  123. - lynx no longer supported, using elinks instead (patch from
  124. Michael Redinger <michael.redinger@uibk.ac.at>, bug #101947 )
  125. * Wed Jun 4 2003 Elliot Lee <sopwith@redhat.com> 0.5.1-11
  126. - Rebuilt
  127. * Wed Jun 4 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-10.7.x
  128. - Built on 7.x
  129. * Mon Mar 3 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-9
  130. - bug #73967: Added Requires: python
  131. * Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
  132. - rebuilt
  133. * Fri Feb 21 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-7
  134. - bug #84803: Added patch to expose more flags
  135. * Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 0.5.1-5
  136. - installing to %%{_libdir}
  137. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  138. - rebuilt
  139. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.5.1-3
  140. - rebuild
  141. * Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
  142. - Add -I and -L flags for finding Kerberos headers and libraries, in case
  143. they're referenced
  144. * Tue Dec 3 2002 Mihai Ibanescu <misa@redhat.com>
  145. - Fix for bug 73967: site-packages/OpenSSL not owned by this package
  146. - Adding hacks around the lack of latex2html on ia64
  147. * Tue Sep 24 2002 Mihai Ibanescu <misa@redhat.com>
  148. - 0.5.1
  149. * Thu Aug 29 2002 Mihai Ibanescu <misa@redhat.com>
  150. - Building 0.5.1rc1 with version number 0.5.0.91 (this should also fix the big
  151. error of pushing 0.5pre previously, since it breaks rpm's version comparison
  152. algorithm).
  153. - We use %%{__python}. Too bad I can't pass --define's to distutils.
  154. * Fri Aug 16 2002 Mihai Ibanescu <misa@redhat.com>
  155. - Building 0.5
  156. * Fri Jun 14 2002 Mihai Ibanescu <misa@redhat.com>
  157. - Added documentation