- Update to 2.3

- Spec file cleanups.
This commit is contained in:
Matthew Barnes 2007-06-08 12:59:58 +00:00
parent d4dbb036b6
commit 80a77797fa
4 changed files with 40 additions and 23 deletions

View File

@ -1 +1 @@
python-ldap-2.2.0.tar.gz python-ldap-2.3.tar.gz

View File

@ -1,11 +1,11 @@
--- python-ldap-2.2.0/setup.cfg.dirs 2005-07-28 08:56:49.000000000 -0400 --- python-ldap-2.3/setup.cfg.dirs 2006-11-15 12:26:26.000000000 -0500
+++ python-ldap-2.2.0/setup.cfg 2006-05-16 15:39:09.000000000 -0400 +++ python-ldap-2.3/setup.cfg 2007-06-08 08:55:58.000000000 -0400
@@ -7,8 +7,7 @@ @@ -7,8 +7,7 @@
# for wrapping OpenLDAP 2 libs # for wrapping OpenLDAP 2 libs
[_ldap] [_ldap]
-library_dirs = /usr/local/openldap-REL_ENG_2_1/lib /usr/local/cyrus-sasl/lib -library_dirs = /usr/local/openldap-2.3/lib
-include_dirs = /usr/local/openldap-REL_ENG_2_1/include /usr/local/cyrus-sasl/include -include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl
+include_dirs = /usr/include/sasl +include_dirs = /usr/include/sasl
extra_compile_args = extra_compile_args =

View File

@ -1,23 +1,36 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define openldap_version 2.1.22 %define openldap_version 2.1.22
Name: python-ldap ### Abstract ###
Version: 2.2.0
Release: 3
Epoch: 0
Summary: An object-oriented API to access LDAP directory servers.
Group: System Environment/Libraries
License: PSF - see LICENCE
URL: http://python-ldap.sourceforge.net/
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap Name: python-ldap
BuildRequires: openldap-devel >= %{openldap_version}, openssl-devel Version: 2.3
BuildRequires: python-devel >= 2.2, cyrus-sasl-devel Release: 1%{?dist}
Requires: openldap >= %{openldap_version} Epoch: 0
License: PSF - see LICENCE
Group: System Environment/Libraries
Summary: An object-oriented API to access LDAP directory servers.
URL: http://python-ldap.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: python-ldap-%{version}.tar.gz
### Patches ###
Patch0: python-ldap-2.2.0-dirs.patch Patch0: python-ldap-2.2.0-dirs.patch
### Dependencies ###
Requires: openldap >= %{openldap_version}
### Build Dependencies ###
# the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap
BuildRequires: openldap-devel >= %{openldap_version}
BuildRequires: openssl-devel
BuildRequires: python-devel >= 2.2
BuildRequires: cyrus-sasl-devel
%description %description
python-ldap provides an object-oriented API for working with LDAP within python-ldap provides an object-oriented API for working with LDAP within
Python programs. It allows access to LDAP directory servers by wrapping the Python programs. It allows access to LDAP directory servers by wrapping the
@ -25,7 +38,7 @@ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.). (including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
%prep %prep
%setup -q %setup -q -n python-ldap-%{version}
%patch0 -p1 -b .dirs %patch0 -p1 -b .dirs
%build %build
@ -36,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --root=$RPM_BUILD_ROOT \ %{__python} setup.py install -O1 --root=$RPM_BUILD_ROOT \
--record=INSTALLED_FILES --record=INSTALLED_FILES
sed 's|^\(.*\.pyo\)$|%ghost \1|' < INSTALLED_FILES > %{name}-%{version}.files sed 's|^\(.*\.pyo\)$|%ghost \1|' < INSTALLED_FILES > %{name}-%{version}.files
find $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/* -type d \ find $RPM_BUILD_ROOT/%{python_sitearch}/* -type d \
| sed "s|^$RPM_BUILD_ROOT|%dir |" >> %{name}-%{version}.files | sed "s|^$RPM_BUILD_ROOT|%dir |" >> %{name}-%{version}.files
%clean %clean
@ -47,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENCE CHANGES README TODO Demo %doc LICENCE CHANGES README TODO Demo
%changelog %changelog
* Fri Jun 08 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.0-1.fc8
- Update to 2.3
- Spec file cleanups.
* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0:2.2.0-3 * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0:2.2.0-3
- rebuild against python 2.5 - rebuild against python 2.5

View File

@ -1 +1 @@
f17b02ef1dc6ab12d819bfef9c036627 python-ldap-2.2.0.tar.gz 0ff25da2212237d780870354d868ffca python-ldap-2.3.tar.gz