Group :: Desenvolvimento/Python
RPM: python-module-ldap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define version 2.3
%define release alt1
%setup_python_module ldap
Summary: LDAP client API for Python
Name: %packagename
Version: %version
Release: %release.1
Source0: python-ldap.tar
Source1: python-ldap-docs-2.0.3.pdf
Patch2: python-ldap-2.0.11-config.patch
License: Python-style license
Group: Development/Python
Url: http://python-ldap.sourceforge.net/
BuildRequires: libldap-devel >= 2.3 libssl-devel
Obsoletes: python-ldap
Packager: Python Development Team <python at packages.altlinux.org>
%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 sub-schema, etc.).
%prep
%setup -q -n python-ldap
#patch2 -p1
%__install -m 644 %SOURCE1 python-ldap.lib.pdf
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install \
--root=%buildroot \
--optimize=2 \
--record=INSTALLED_FILES
%clean
%files -f INSTALLED_FILES
%doc LICENCE CHANGES README TODO Demo Tests python-ldap.lib.pdf
%changelog
…
Todas as alterações você pod ver aqui
%define release alt1
%setup_python_module ldap
Summary: LDAP client API for Python
Name: %packagename
Version: %version
Release: %release.1
Source0: python-ldap.tar
Source1: python-ldap-docs-2.0.3.pdf
Patch2: python-ldap-2.0.11-config.patch
License: Python-style license
Group: Development/Python
Url: http://python-ldap.sourceforge.net/
BuildRequires: libldap-devel >= 2.3 libssl-devel
Obsoletes: python-ldap
Packager: Python Development Team <python at packages.altlinux.org>
%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 sub-schema, etc.).
%prep
%setup -q -n python-ldap
#patch2 -p1
%__install -m 644 %SOURCE1 python-ldap.lib.pdf
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install \
--root=%buildroot \
--optimize=2 \
--record=INSTALLED_FILES
%clean
%files -f INSTALLED_FILES
%doc LICENCE CHANGES README TODO Demo Tests python-ldap.lib.pdf
%changelog
…
Todas as alterações você pod ver aqui