Priority: optional
Maintainer: Iustin Pop <iustin@debian.org>
Build-Depends: debhelper (>= 11~), dh-python,
- python (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), python-all-dbg,
python3-all, python3-all-dev, python3-all-dbg,
- python-setuptools, python3-setuptools,
- python-sphinx (>= 1.0.7+dfsg) | python3-sphinx
+ python3-setuptools,
+ python3-sphinx
Standards-Version: 4.2.1
Homepage: https://pyxattr.k1024.org/
Vcs-Browser: https://salsa.debian.org/debian/python-pyxattr
Vcs-Git: https://salsa.debian.org/debian/python-pyxattr.git
Rules-Requires-Root: no
-Package: python-pyxattr
-Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
-Provides: ${python:Provides}
-Suggests: python-pyxattr-dbg, python-pyxattr-doc
-Description: module for manipulating filesystem extended attributes
- pyxattr is a Python interface to the libattr library. It allows
- manipulation of the filesystem extended attributes present in some
- operating systems (GNU/Linux included).
- .
- This package contains the library for Python 2.
-
-Package: python-pyxattr-dbg
-Section: debug
-Architecture: any
-Depends: python-pyxattr (= ${binary:Version}), python-dbg, ${shlibs:Depends},
- ${misc:Depends}, ${python:Depends}
-Provides: ${python:Provides}
-Description: module for manipulating filesystem extended attributes (debug extension)
- pyxattr is a Python interface to the libattr library. It allows
- manipulation of the filesystem extended attributes present in some
- operating systems (GNU/Linux included).
- .
- This package contains the library for the Python 2 debug interpreter.
-
Package: python3-pyxattr
Architecture: any
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
include /usr/share/dpkg/buildflags.mk
%:
- dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+ dh $@ --with python3,sphinxdoc --buildsystem=pybuild
# Also build the documentation
override_dh_auto_build:
$(MAKE) clean
override_dh_strip:
- dh_strip -ppython-pyxattr --dbg-package=python-pyxattr-dbg
dh_strip -ppython3-pyxattr --dbg-package=python3-pyxattr-dbg
override_dh_installdocs:
- dh_installdocs --link-doc=python-pyxattr -ppython-pyxattr-dbg
dh_installdocs --link-doc=python3-pyxattr -ppython3-pyxattr-dbg
dh_installdocs -A --remaining-packages README.rst
if setfattr -n user.foo -v bar "$TESTFILE"; then
echo "Temporary directory '$ADTTMP' has extended attributes, running tests"
export TEST_DIR="$ADTTMP"
- echo "* testing Python 2"
- python2 test/test_xattr.py
- echo "* testing Python 2 debug package"
- python2-dbg test/test_xattr.py
echo "* testing Python 3"
python3 test/test_xattr.py
echo "* testing Python 3 debug package"