Initial packaging.

This commit is contained in:
Thomas Goirand 2016-07-19 16:26:23 +02:00
parent b2f1d28fe1
commit 3ab0c9a9ca
9 changed files with 128 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
python-pyldap (2.4.25.1-1) unstable; urgency=medium
* Initial release. (Closes: #XXXXXX)
-- Thomas Goirand <zigo@debian.org> Tue, 19 Jul 2016 16:18:07 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

49
debian/control vendored Normal file
View File

@ -0,0 +1,49 @@
Source: python-pyldap
Section: python
Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Thomas Goirand <zigo@debian.org>,
Build-Depends: debhelper (>= 9),
dh-python,
libldap2-dev,
openstack-pkg-tools (>= 52~),
python-all-dev,
python-setuptools,
python3-all-dev,
python3-setuptools,
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/openstack/python-pyldap.git/
Vcs-Git: https://anonscm.debian.org/git/openstack/python-pyldap.git
Homepage: https://github.com/pyldap/pyldap/
Package: python-pyldap
Architecture: any
Depends: ${misc:Depends},
${python:Depends},
${shlibs:Depends},
Description: implements an LDAP client - Python 2.7
Pyldap is a fork of python-ldap, and 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, LDAPv3 extended operations and
controls, etc.).
.
This package contains the Python 2.7 module.
Package: python3-pyldap
Architecture: any
Depends: ${misc:Depends},
${python3:Depends},
${shlibs:Depends},
Description: implements an LDAP client - Python 3.x
Pyldap is a fork of python-ldap, and 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, LDAPv3 extended operations and
controls, etc.).
.
This package contains the Python 3.x module.

27
debian/copyright vendored Normal file
View File

@ -0,0 +1,27 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pyldap
Source: https://github.com/pyldap/pyldap/
Files: debian/*
Copyright: (c) 2014, Thomas Goirand <zigo@debian.org>
License: Apache-2
Files: *
Copyright: (c) 2013, pyldap project
License: Apache-2
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in /usr/share/common-licenses/Apache-2.0.

9
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,9 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian/unstable
upstream-tag = %(version)s
compression = xz
[buildpackage]
export-dir = ../build-area/

31
debian/rules vendored Executable file
View File

@ -0,0 +1,31 @@
#!/usr/bin/make -f
UPSTREAM_GIT := https://github.com/pyldap/pyldap.git
include /usr/share/openstack-pkg-tools/pkgos.make
%:
dh $@ --buildsystem=python_distutils --with python2,python3
override_dh_auto_install:
pkgos-dh_auto_install
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
python$$pyvers setup.py test ; \
done
endif
override_dh_clean:
dh_clean -O--buildsystem=python_distutils
rm -rf build
# Commands not to run
override_dh_installcatalogs:
override_dh_installemacsen override_dh_installifupdown:
override_dh_installinfo override_dh_installmenu override_dh_installmime:
override_dh_installmodules override_dh_installlogcheck:
override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm:
override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal:
override_dh_installcron override_dh_installdebconf:
override_dh_installlogrotate override_dh_installgsettings:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

4
debian/watch vendored Normal file
View File

@ -0,0 +1,4 @@
version=3
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
https://pypi.debian.net/pyldap/pyldap-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))