Репозиторий Sisyphus
Последнее обновление: 19 октября 2018 | Пакетов: 18642 | Посещений: 12394102
en ru br
Репозитории ALT
S:3.1.0-alt1.S1
5.1: 2.3.9-alt1
4.1: 2.3-alt1.1
4.0: 2.2.0-alt2
3.0: 2.0.7-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-ldap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define mname ldap

%def_with check

Name: python-module-%mname
Version: 3.1.0
Release: alt1%ubt

Summary: An object-oriented API to access LDAP directory servers from Python programs
License: Python-style
Group: Development/Python
Url: https://www.python-ldap.org
# Source-git: https://github.com/python-ldap/python-ldap

Source: %name-%version.tar

BuildRequires(pre): rpm-build-ubt
BuildRequires(pre): rpm-build-python
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: python-module-setuptools
BuildRequires: python3-module-setuptools
BuildRequires: libldap-devel
BuildRequires: libsasl2-devel
BuildRequires: libssl-devel

%if_with check
BuildRequires: openldap-servers
BuildRequires: openldap-clients
BuildRequires: python-module-tox
BuildRequires: python-module-pyasn1
BuildRequires: python-module-pyasn1-modules
BuildRequires: python-module-coverage
BuildRequires: python-module-virtualenv
BuildRequires: python3-module-tox
BuildRequires: python3-module-pyasn1
BuildRequires: python3-module-pyasn1-modules
BuildRequires: python3-module-coverage
BuildRequires: python3-module-virtualenv
%endif

Provides: python-module-pyldap = %EVR
Obsoletes: python-module-pyldap < %EVR

%description
python-ldap provides an object-oriented API to access LDAP
directory servers from Python programs. Mainly it wraps the
OpenLDAP client libs for that purpose.

Additionally the package contains modules for other LDAP-related
stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 sub-schema, etc.).

%package -n python3-module-%mname
Summary: An object-oriented API to access LDAP directory servers from Python3 programs
Group: Development/Python3
Provides: python3-module-pyldap = %EVR
Obsoletes: python3-module-pyldap < %EVR

%description -n python3-module-%mname
python-ldap provides an object-oriented API to access LDAP
directory servers from Python3 programs. Mainly it wraps the
OpenLDAP client 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

cp -a . ../python3

# Fix python interpreter path in Demo directory

grep -rl '^#!/usr/bin/env python' ./ | \
xargs sed -i '1s|^#!/usr/bin/env python|#!/usr/bin/python|'
grep -rl '^#!/usr/bin/env python' ../python3 | \
xargs sed -i '1s|^#!/usr/bin/env python|#!/usr/bin/python3|'

%build
%add_optflags -fno-strict-aliasing
%python_build_debug

pushd ../python3
%python3_build_debug
popd

%check
%define python_version_nodots() %(%1 -Esc "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))")
export PIP_INDEX_URL=http://host.invalid./
tox --sitepackages -e py%{python_version_nodots python} -v

pushd ../python3
tox.py3 --sitepackages -e py%{python_version_nodots python3} -v
popd

%install
%python_install

pushd ../python3
%python3_install
popd

%files
%doc LICENCE CHANGES README TODO Demo
%exclude %python_sitelibdir/slapdtest
%python_sitelibdir/_ldap.so
%python_sitelibdir/ldap
%python_sitelibdir/ldapurl.py*
%python_sitelibdir/ldif.py*
%python_sitelibdir/python_ldap-%{version}*-*.egg-info

%files -n python3-module-%mname
%doc LICENCE CHANGES README TODO Demo
%exclude %python3_sitelibdir/slapdtest
%python3_sitelibdir/_ldap.cpython-*.so
%python3_sitelibdir/ldap
%python3_sitelibdir/ldapurl.py*
%python3_sitelibdir/ldif.py*
%python3_sitelibdir/__pycache__/*
%python3_sitelibdir/python_ldap-%{version}*-*.egg-info

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin