pyOpenSSL-vl.spec 6.2 KB

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