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