2024-01-06 11:22:47 +01:00
|
|
|
Name: python-ldap
|
2024-01-06 11:22:47 +01:00
|
|
|
Version: 3.2.0
|
|
|
|
Release: 1mamba
|
2024-01-06 11:22:47 +01:00
|
|
|
Summary: An object-oriented API to access LDAP directory servers from Python programs
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://python-ldap.sourceforge.net/
|
2024-01-06 11:22:47 +01:00
|
|
|
Source: https://github.com/python-ldap/python-ldap.git/python-ldap-%{version}/python-ldap-%{version}.tar.bz2
|
|
|
|
#Source: http://downloads.sourceforge.net/sourceforge/python-ldap/python-ldap-%{version}.tar.gz
|
2024-01-06 11:22:47 +01:00
|
|
|
Patch0: %{name}-2.3.5-setupcfg.patch
|
|
|
|
Patch1: %{name}-2.2.0-sasl.patch
|
|
|
|
License: GPL
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
Requires: python >= %{pyver}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
# FIXME:
|
|
|
|
# file Lib/ldap.py (for module ldap) not found
|
|
|
|
# file Lib/ldap/schema.py (for module ldap.schema) not found
|
|
|
|
|
|
|
|
%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
|
|
|
|
#%patch0 -p1
|
2024-01-06 11:22:47 +01:00
|
|
|
#%patch1 -p1
|
2024-01-06 11:22:47 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install \
|
|
|
|
--root=%{buildroot} \
|
|
|
|
--install-headers=%{_includedir}/python \
|
2024-01-06 11:22:47 +01:00
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:22:47 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 11:22:47 +01:00
|
|
|
%files -f %{name}.filelist
|
2024-01-06 11:22:47 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:22:47 +01:00
|
|
|
%doc LICENCE
|
2024-01-06 11:22:47 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:22:47 +01:00
|
|
|
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.0-1mamba
|
|
|
|
- update to 3.2.0
|
|
|
|
|
2024-01-06 11:22:47 +01:00
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.6-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Mon Mar 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 20 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.0-1qilnx
|
|
|
|
- update to version 2.2.0 by autospec
|
|
|
|
- added documentation
|
|
|
|
- fixed license
|
|
|
|
- install the library file in the %%python_sitearch directory
|
|
|
|
|
|
|
|
* Tue Aug 09 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-1qilnx
|
|
|
|
- update to version 2.0.9 by autospec
|
|
|
|
|
|
|
|
* Wed Mar 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-1qilnx
|
|
|
|
- package created by autospec
|