python-ldap-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define openldap_version 2.1.22
  3. ### Abstract ###
  4. Name: python-ldap
  5. Version: 2.3.11
  6. Release: 1%{?_dist_release}
  7. Epoch: 0
  8. License: Python
  9. Group: System Environment/Libraries
  10. Summary: An object-oriented API for Python to access LDAP directory servers
  11. Summary(ja): Python 用 LDAP インタフェースモジュール
  12. URL: http://python-ldap.sourceforge.net/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Source0: http://download.sourceforge.net/python-ldap/python-ldap-%{version}.tar.gz
  15. ### Patches ###
  16. #Patch0: python-ldap-2.2.0-dirs.patch
  17. Patch0: python-ldap-2.3.11-dirs.patch
  18. ### Dependencies ###
  19. Requires: openldap >= %{openldap_version}
  20. ### Build Dependencies ###
  21. # the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap
  22. BuildRequires: openldap-devel >= %{openldap_version}
  23. BuildRequires: openssl-devel
  24. BuildRequires: python-devel >= 2.2
  25. BuildRequires: cyrus-sasl-devel
  26. %description
  27. python-ldap provides an object-oriented API for working with LDAP within
  28. Python programs. It allows access to LDAP directory servers by wrapping the
  29. OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks
  30. (including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
  31. %description -l ja
  32. python-ldap により、Python プログラムから LDAP へアクセスするための
  33. オブジェクト志向 API が提供されます。OpenLDAP 2.x のライブラリのラッパー
  34. として動作し、LDAP ディレクトリサーバへのアクセスを行うことができます。
  35. また他に LDIF、LDAPURL、LDAPv3 スキーマといった LDAP 関連用のモジュールも
  36. 収録されています。
  37. %prep
  38. %setup -q -n python-ldap-%{version}
  39. %patch0 -p0 -b .dirs
  40. # clean up cvs hidden files
  41. rm -rf Demo/Lib/ldap/.cvsignore Demo/.cvsignore Demo/Lib/ldif/.cvsignore Demo/Lib/ldap/async/.cvsignore \
  42. Demo/Lib/.cvsignore Demo/Lib/ldapurl/.cvsignore
  43. # Fix interpreter
  44. sed -i 's|#! python|#!/usr/bin/python|g' Demo/simplebrowse.py
  45. %build
  46. %{__python} setup.py build
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %files
  53. %defattr(-,root,root,-)
  54. %doc LICENCE CHANGES README TODO Demo
  55. %{python_sitearch}/_ldap.so
  56. %{python_sitearch}/dsml.py*
  57. %{python_sitearch}/ldapurl.py*
  58. %{python_sitearch}/ldif.py*
  59. %{python_sitearch}/ldap/
  60. %{python_sitearch}/python_ldap-%{version}-*.egg-info/
  61. %changelog
  62. * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 2.3.11-1
  63. - updated python-ldap to 2.3.11
  64. - updated Patch0: python-ldap-%{version}-dirs.patch
  65. - rebuilt with python-2.6, openldap-2.4.21
  66. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.3.5-2
  67. - rebuilt with openldap-2.4.11
  68. * Tue Feb 3 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.3.5-1
  69. - initial build for Vine Linux
  70. * Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - 0:2.3.5-3
  71. - rebuild with new openssl
  72. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0:2.3.5-2
  73. - Rebuild for Python 2.6
  74. * Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.3.5-1
  75. - fix license tag
  76. - update to 2.3.5
  77. * Sun Feb 17 2008 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-3.fc9
  78. - Rebuild with GCC 4.3
  79. * Wed Dec 05 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-2.fc9
  80. - Rebuild against new openssl.
  81. * Wed Oct 10 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-1.fc8
  82. - Update to 2.3.1
  83. * Fri Jun 08 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.0-1.fc8
  84. - Update to 2.3
  85. - Spec file cleanups.
  86. * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0:2.2.0-3
  87. - rebuild against python 2.5
  88. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
  89. - rebuild
  90. * Wed May 17 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-2
  91. - Put back the epoch line... happy beehive?
  92. * Tue May 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-1
  93. - Update to 2.2.0
  94. - Update python-ldap-2.0.6-rpath.patch and rename it to
  95. python-ldap-2.2.0-dirs.patch.
  96. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2.1
  97. - bump again for double-long bug on ppc(64)
  98. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2
  99. - rebuilt for new gcc4.1 snapshot and glibc changes
  100. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  101. - rebuilt
  102. * Tue Nov 8 2005 Tomas Mraz <tmraz@redhat.com> - 2.0.6-5
  103. - rebuilt with new openssl
  104. * Tue Mar 22 2005 Warren Togami <wtogami@redhat.com> - 2.0.6-4
  105. - add LICENCE (#150842)
  106. - simplify python reqs
  107. - remove invalid rpath
  108. * Wed Mar 16 2005 Dan Williams <dcbw@redhat.com> - 0:2.0.6-2
  109. - rebuilt to pick up new libssl.so.5
  110. * Tue Feb 8 2005 David Malcolm <dmalcolm@redhat.com> - 0:2.0.6-1
  111. - 2.0.6
  112. * Tue Nov 16 2004 Nalin Dahyabhai <nalin@redhat.com> - 0:2.0.1-3
  113. - rebuild (#139161)
  114. * Mon Aug 30 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-2
  115. - Rewrote description; added requirement for openldap
  116. * Tue Aug 17 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-1
  117. - imported into Red Hat's packaging system from Fedora.us; set release to 1
  118. * Wed Jun 30 2004 Panu Matilainen <pmatilai@welho.com> 0:2.0.1-0.fdr.1
  119. - update to 2.0.1
  120. * Sun Dec 07 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.4.pre16
  121. - fix spec permissions + release tag order (bug 1099)
  122. * Sat Dec 6 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.0.0-0.fdr.0.pre16.3
  123. - Stricter python version requirements.
  124. - BuildRequire openssl-devel.
  125. - Explicitly build *.pyo, install them as %%ghost.
  126. - Own more installed dirs.
  127. - Remove $RPM_BUILD_ROOT at start of %%install.
  128. * Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.2
  129. - duh, build requires python-devel, not just python...
  130. * Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.1
  131. - Initial Fedora packaging.