cvsdist c6bdc73
%define pyver  %(%{__python} -c 'import sys ; print sys.version[:3]')
80f8f66
%define openldap_version 2.1.22
cvsdist c6bdc73
cvsdist c6bdc73
Name:           python-ldap
983bb0a
Version:        2.0.6
9a38057
Release: 5.2
b4410ac
Epoch:          0
cvsdist c6bdc73
Summary:        An object-oriented API to access LDAP directory servers.
cvsdist c6bdc73
cvsdist c6bdc73
Group:          System Environment/Libraries
80f8f66
License:        PSF - see LICENCE
cvsdist c6bdc73
URL:            http://python-ldap.sourceforge.net/
983bb0a
Source0:        http://dl.sf.net/sourceforge/python-ldap/python-ldap-2.0.6.tar.gz
80f8f66
Patch0:         python-ldap-2.0.6-rpath.patch
cvsdist c6bdc73
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist c6bdc73
658ffb1
# the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap
cvsdist c05c915
BuildRequires:  openldap-devel >= %{openldap_version}, openssl-devel
80f8f66
BuildRequires:  python-devel >= 2.2
80f8f66
Requires:       openldap >= %{openldap_version}
80f8f66
Requires:       python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
cvsdist c6bdc73
cvsdist c6bdc73
%description
cvsdist c05c915
python-ldap provides an object-oriented API for working with LDAP within
cvsdist c05c915
Python programs.  It allows access to LDAP directory servers by wrapping the 
cvsdist c05c915
OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks 
cvsdist c05c915
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
cvsdist c6bdc73
cvsdist c6bdc73
%prep
cvsdist c6bdc73
%setup -q 
80f8f66
%patch -p1
cvsdist c6bdc73
cvsdist c6bdc73
%build
cvsdist c6bdc73
%{__python} setup.py build
cvsdist c6bdc73
cvsdist c6bdc73
%install
cvsdist c6bdc73
rm -rf $RPM_BUILD_ROOT
cvsdist c6bdc73
%{__python} setup.py install -O1 --root=$RPM_BUILD_ROOT \
cvsdist c6bdc73
  --record=INSTALLED_FILES
cvsdist c6bdc73
sed 's|^\(.*\.pyo\)$|%ghost \1|' < INSTALLED_FILES > %{name}-%{version}.files
cvsdist c6bdc73
find $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/* -type d \
cvsdist c6bdc73
  | sed "s|^$RPM_BUILD_ROOT|%dir |" >> %{name}-%{version}.files
cvsdist c6bdc73
cvsdist c6bdc73
%clean
cvsdist c6bdc73
rm -rf $RPM_BUILD_ROOT
cvsdist c6bdc73
cvsdist c6bdc73
%files -f %{name}-%{version}.files
cvsdist c6bdc73
%defattr(-,root,root,-)
80f8f66
%doc LICENCE CHANGES README TODO Demo
cvsdist c6bdc73
cvsdist c6bdc73
%changelog
9a38057
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2
9a38057
- rebuilt for new gcc4.1 snapshot and glibc changes
9a38057
0a08b12
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
0a08b12
- rebuilt
0a08b12
818c55a
* Tue Nov  8 2005 Tomas Mraz <tmraz@redhat.com> - 2.0.6-5
818c55a
- rebuilt with new openssl
818c55a
c4ae1ec
* Tue Mar 22 2005 Warren Togami <wtogami@redhat.com> - 2.0.6-4
80f8f66
- add LICENCE (#150842)
80f8f66
- simplify python reqs
80f8f66
- remove invalid rpath
9a6683f
d5c3015
* Wed Mar 16 2005 Dan Williams <dcbw@redhat.com> - 0:2.0.6-2
d5c3015
- rebuilt to pick up new libssl.so.5
d5c3015
983bb0a
* Tue Feb  8 2005 David Malcolm <dmalcolm@redhat.com> - 0:2.0.6-1
983bb0a
- 2.0.6
983bb0a
658ffb1
* Tue Nov 16 2004 Nalin Dahyabhai <nalin@redhat.com> - 0:2.0.1-3
278c583
- rebuild (#139161)
658ffb1
cvsdist c05c915
* Mon Aug 30 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-2
cvsdist c05c915
- Rewrote description; added requirement for openldap
cvsdist c05c915
cvsdist c6bdc73
* Tue Aug 17 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-1
cvsdist c6bdc73
- imported into Red Hat's packaging system from Fedora.us; set release to 1
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Jun 30 2004 Panu Matilainen <pmatilai@welho.com> 0:2.0.1-0.fdr.1
cvsdist c6bdc73
- update to 2.0.1
cvsdist c6bdc73
cvsdist c6bdc73
* Sun Dec 07 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.4.pre16
cvsdist c6bdc73
- fix spec permissions + release tag order (bug 1099)
cvsdist c6bdc73
cvsdist c6bdc73
* Sat Dec  6 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.0.0-0.fdr.0.pre16.3
cvsdist c6bdc73
- Stricter python version requirements.
cvsdist c6bdc73
- BuildRequire openssl-devel.
cvsdist c6bdc73
- Explicitly build *.pyo, install them as %%ghost.
cvsdist c6bdc73
- Own more installed dirs.
cvsdist c6bdc73
- Remove $RPM_BUILD_ROOT at start of %%install.
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.2
cvsdist c6bdc73
- duh, build requires python-devel, not just python...
cvsdist c6bdc73
cvsdist c6bdc73
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.1
cvsdist c6bdc73
- Initial Fedora packaging.