- Fix a build error.
This commit is contained in:
parent
e7da3f969d
commit
2fe7994c56
12
python-ldap-2.3.5-fix-build-error.patch
Normal file
12
python-ldap-2.3.5-fix-build-error.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up python-ldap-2.3.5/Modules/errors.c.fix-build-error python-ldap-2.3.5/Modules/errors.c
|
||||
--- python-ldap-2.3.5/Modules/errors.c.fix-build-error 2009-02-27 10:06:24.000000000 -0500
|
||||
+++ python-ldap-2.3.5/Modules/errors.c 2009-02-27 10:06:40.000000000 -0500
|
||||
@@ -18,7 +18,7 @@ LDAPexception_class;
|
||||
|
||||
#ifdef LDAP_ASSERTION_FAILED
|
||||
#define LDAP_ERROR_MAX LDAP_ASSERTION_FAILED
|
||||
-#elif
|
||||
+#else
|
||||
#define LDAP_ERROR_MAX LDAP_OTHER
|
||||
#endif
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
Name: python-ldap
|
||||
Version: 2.3.5
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Epoch: 0
|
||||
License: Python
|
||||
Group: System Environment/Libraries
|
||||
@ -19,6 +19,8 @@ Source0: http://download.sourceforge.net/python-ldap/python-ldap-%{version}.tar.
|
||||
|
||||
Patch0: python-ldap-2.2.0-dirs.patch
|
||||
|
||||
Patch1: python-ldap-2.3.5-fix-build-error.patch
|
||||
|
||||
### Dependencies ###
|
||||
|
||||
Requires: openldap >= %{openldap_version}
|
||||
@ -40,6 +42,7 @@ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks
|
||||
%prep
|
||||
%setup -q -n python-ldap-%{version}
|
||||
%patch0 -p1 -b .dirs
|
||||
%patch1 -p1 -b .fix-build-error
|
||||
|
||||
# clean up cvs hidden files
|
||||
rm -rf Demo/Lib/ldap/.cvsignore Demo/.cvsignore Demo/Lib/ldif/.cvsignore Demo/Lib/ldap/async/.cvsignore \
|
||||
@ -69,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{python_sitearch}/python_ldap-%{version}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Fri Feb 27 2009 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.5-5
|
||||
- Fix a build error.
|
||||
|
||||
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user