Skip to content

Commit

Permalink
Add debian package build files
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Buesch <m@bues.ch>
  • Loading branch information
mbuesch committed Apr 26, 2016
1 parent 6cceb15 commit 9ea7ecd
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
build/
.pybuild/

__pycache__/
*.pyc
Expand Down
10 changes: 10 additions & 0 deletions debian/.gitignore
@@ -0,0 +1,10 @@
destdir-*/
python-pyprofibus*/
python3-pyprofibus*/
pypy-pyprofibus*/

files
debhelper-build-stamp
*.log
*.debhelper
*.substvars
5 changes: 5 additions & 0 deletions debian/changelog
@@ -0,0 +1,5 @@
pyprofibus (0.1) UNRELEASED; urgency=low

* Version 0.1

-- Michael Buesch <m@bues.ch> Mon, 01 Feb 2016 00:00:00 +0100
1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
9
45 changes: 45 additions & 0 deletions debian/control
@@ -0,0 +1,45 @@
Source: pyprofibus
Maintainer: Michael Buesch <m@bues.ch>
Section: python
Priority: optional
Build-Depends: dh-python,
python-all-dev (>= 2.7.0),
python-setuptools,
python3-all-dev (>= 3.4.2-2),
python3-setuptools,
pypy,
pypy-setuptools,
debhelper (>= 9)
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.4
Vcs-Git: git://git.bues.ch/pyprofibus.git
Vcs-Browser: https://bues.ch/gitweb?p=pyprofibus.git
Homepage: https://bues.ch/h/profibus


Package: python-pyprofibus
Architecture: any
Depends: ${misc:Depends},
${python:Depends},
${shlibs:Depends}
Description: PROFIBUS-DP stack (Python 2)
pyprofibus is a PROFIBUS-DP stack written in Python.


Package: python3-pyprofibus
Architecture: any
Depends: ${misc:Depends},
${python3:Depends},
${shlibs:Depends}
Description: PROFIBUS-DP stack (Python 3)
pyprofibus is a PROFIBUS-DP stack written in Python.


Package: pypy-pyprofibus
Architecture: any
Depends: ${misc:Depends},
${pypy:Depends},
${shlibs:Depends}
Description: PROFIBUS-DP stack (PyPy)
pyprofibus is a PROFIBUS-DP stack written in Python.
6 changes: 6 additions & 0 deletions debian/copyright
@@ -0,0 +1,6 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
Copyright: 2013-2016 Michael Buesch
License: GPL-2+
/usr/share/common-licenses/GPL-2
1 change: 1 addition & 0 deletions debian/pypy-pyprofibus.install
@@ -0,0 +1 @@
debian/destdir-pypy-pyprofibus/usr/lib/pypy/dist-packages/pyprofibus usr/lib/pypy/dist-packages/
1 change: 1 addition & 0 deletions debian/python-pyprofibus.install
@@ -0,0 +1 @@
debian/destdir-py2-pyprofibus/usr/lib/python2.7/dist-packages/pyprofibus usr/lib/python2.7/dist-packages/
1 change: 1 addition & 0 deletions debian/python3-pyprofibus.install
@@ -0,0 +1 @@
debian/destdir-py3-pyprofibus/usr/lib/python3*/dist-packages/pyprofibus usr/lib/python3/dist-packages/
23 changes: 23 additions & 0 deletions debian/rules
@@ -0,0 +1,23 @@
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
#export DH_VERBOSE=1

export PYBUILD_NAME=pyprofibus
export PYBUILD_SYSTEM=distutils
#export PYBUILD_DEBUG=1

export PYBUILD_DESTDIR_python2=debian/destdir-py2-pyprofibus/
export PYBUILD_DESTDIR_python2-dbg=debian/destdir-py2-pyprofibus-dbg/
export PYBUILD_DESTDIR_python3=debian/destdir-py3-pyprofibus/
export PYBUILD_DESTDIR_python3-dbg=debian/destdir-py3-pyprofibus-dbg/
export PYBUILD_DESTDIR_pypy=debian/destdir-pypy-pyprofibus/
export PYBUILD_DESTDIR_pypy-dbg=debian/destdir-pypy-pyprofibus-dbg/

export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=
export PYTHONSTARTUP=
export PYTHONINSPECT=

%:
dh $@ --with python2,python3,pypy --buildsystem=pybuild
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 9ea7ecd

Please sign in to comment.