[arch-commits] Commit in python-ldap/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sat Nov 13 19:27:13 UTC 2021


    Date: Saturday, November 13, 2021 @ 19:27:13
  Author: foutrelis
Revision: 1045934

archrelease: copy trunk to community-staging-x86_64

Added:
  python-ldap/repos/community-staging-x86_64/
  python-ldap/repos/community-staging-x86_64/PKGBUILD
    (from rev 1045933, python-ldap/trunk/PKGBUILD)
  python-ldap/repos/community-staging-x86_64/openldap-2.5.patch
    (from rev 1045933, python-ldap/trunk/openldap-2.5.patch)

--------------------+
 PKGBUILD           |   44 ++++++++++++++++++++++++++++++++++++++++++++
 openldap-2.5.patch |   12 ++++++++++++
 2 files changed, 56 insertions(+)

Copied: python-ldap/repos/community-staging-x86_64/PKGBUILD (from rev 1045933, python-ldap/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-13 19:27:13 UTC (rev 1045934)
@@ -0,0 +1,44 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+
+pkgname=python-ldap
+pkgver=3.3.1
+pkgrel=5
+pkgdesc="LDAP client API for Python"
+url="https://python-ldap.readthedocs.io/"
+arch=('x86_64')
+license=('MIT')
+depends=('python-pyasn1' 'python-pyasn1-modules' 'libldap')
+makedepends=('python-setuptools' 'python-coverage')
+checkdepends=('openldap' 'python-pyasn1' 'python-pyasn1-modules')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz"
+        openldap-2.5.patch)
+sha256sums=('014681ee155a61fde50cf3f19a2f85c5c094439da695968f7fcdf75e95db84f9'
+            'a309bacc490ad11ec48693c72330d4530fd687d7808d8bed90470fbb5e68eac1')
+
+prepare() {
+  cd "$pkgbase-$pkgbase-$pkgver"
+  # https://github.com/python-ldap/python-ldap/issues/432
+  patch -Np1 -i ../openldap-2.5.patch
+
+  # slapd fails to start because -F points to a non-empty directory.
+  # Simply don't pass both -f and -F to slapd, it is only done when
+  # converting slapd.conf to LDIF and pointless here.
+  sed -i "/'-F', self.testrundir,/d" Lib/slapdtest/_slapdtest.py
+}
+
+build(){
+  cd "$pkgbase-$pkgbase-$pkgver"
+  python setup.py build
+}
+
+check(){
+  cd "$pkgbase-$pkgbase-$pkgver"
+  python -m coverage run --parallel setup.py test
+}
+
+package() {
+  cd "$pkgbase-$pkgbase-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+  install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-ldap/repos/community-staging-x86_64/openldap-2.5.patch (from rev 1045933, python-ldap/trunk/openldap-2.5.patch)
===================================================================
--- community-staging-x86_64/openldap-2.5.patch	                        (rev 0)
+++ community-staging-x86_64/openldap-2.5.patch	2021-11-13 19:27:13 UTC (rev 1045934)
@@ -0,0 +1,12 @@
+diff -upr python-ldap-python-ldap-3.3.1.orig/setup.cfg python-ldap-python-ldap-3.3.1/setup.cfg
+--- python-ldap-python-ldap-3.3.1.orig/setup.cfg	2020-06-29 17:43:42.000000000 +0300
++++ python-ldap-python-ldap-3.3.1/setup.cfg	2021-11-13 20:13:55.037043241 +0200
+@@ -23,7 +23,7 @@ extra_objects =
+ 
+ # Example for full-featured build:
+ # Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r.
+-libs = ldap_r lber
++libs = ldap lber
+ 
+ # Installation options
+ [install]



More information about the arch-commits mailing list