From c6bdc739914e623f667e09637a4346e8247e9b3d Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 10:58:20 +0000 Subject: auto-import changelog data from python-ldap-2.0.1-1.src.rpm 2.0.1-1 - imported into Red Hat's packaging system from Fedora.us; set release to 1 2.0.1-0.fdr.1 - update to 2.0.1 2.0.0-0.fdr.0.4.pre16 - fix spec permissions + release tag order (bug 1099) 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. 2.0.0-0.fdr.0.pre16.2 - duh, build requires python-devel, not just python... 2.0.0-0.fdr.0.pre16.1 - Initial Fedora packaging. --- diff --git a/.cvsignore b/.cvsignore index e69de29..a322742 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-ldap-2.0.1.tar.gz diff --git a/python-ldap.spec b/python-ldap.spec new file mode 100644 index 0000000..9f57718 --- /dev/null +++ b/python-ldap.spec @@ -0,0 +1,70 @@ +%define pyver %(%{__python} -c 'import sys ; print sys.version[:3]') +%define pynext %(%{__python} -c 'print %{pyver} + 0.1') + +Name: python-ldap +Version: 2.0.1 +Release: 1 +Epoch: 0 +Summary: An object-oriented API to access LDAP directory servers. + +Group: System Environment/Libraries +License: PSF - see LICENSE +URL: http://python-ldap.sourceforge.net/ +Source0: http://dl.sf.net/sourceforge/python-ldap/python-ldap-2.0.1.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# the openldap from RHL <= 9 is know to be broken with python-ldap +BuildRequires: openldap-devel >= 0:2.1.22, openssl-devel +BuildRequires: python >= 0:2.2, python-devel >= 0:2.2 +Requires: python >= 0:%{pyver}, python < 0:%{pynext} +Requires: %{_libdir}/python%{pyver}/site-packages + +%description +python-ldap provides an object-oriented API to access LDAP directory servers +from Python programs. Mainly it wraps the OpenLDAP 2.x libs for that purpose. +Additionally the package contains modules for other LDAP-related stuff +(e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.). + +%prep +%setup -q + +%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,-) +%doc CHANGES README TODO Demo + +%changelog +* Tue Aug 17 2004 David Malcolm - 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 0:2.0.1-0.fdr.1 +- update to 2.0.1 + +* Sun Dec 07 2003 Panu Matilainen 0:2.0.0-0.fdr.0.4.pre16 +- fix spec permissions + release tag order (bug 1099) + +* Sat Dec 6 2003 Ville Skyttä 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 0:2.0.0-0.fdr.0.pre16.2 +- duh, build requires python-devel, not just python... + +* Wed Dec 03 2003 Panu Matilainen 0:2.0.0-0.fdr.0.pre16.1 +- Initial Fedora packaging. diff --git a/sources b/sources index e69de29..7468f81 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fb8b790d7825a8d400a080634a5ba0aa python-ldap-2.0.1.tar.gz