From 2dba656c9ffd05713e4b06d20b74ffba2101b9b4 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Tue, 18 Feb 2020 19:32:40 +0100 Subject: [PATCH] add debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 36 +++++++++++++++++++++++++++++++++ debian/copyright | 1 + debian/python-fanotify.install | 1 + debian/python3-fanotify.install | 1 + debian/rules | 10 +++++++++ debian/source/format | 1 + 8 files changed, 56 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/python-fanotify.install create mode 100644 debian/python3-fanotify.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6cb8866 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-fanotify (0.1) unstable; urgency=medium + + * Initial release. + + -- Mike Gerow Tue, 01 Sep 2015 15:15:27 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..952a996 --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: python-fanotify +Maintainer: Mike Gerow +Section: python +Priority: optional +Build-Depends: + debhelper (>= 12.7.2), + dh-python, + python-all-dev, + python-nose, + python-setuptools, + python3-all-dev, + python3-nose, + python3-setuptools, +Standards-Version: 4.4.0 + +Package: python-fanotify +Architecture: any +Depends: + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends}, + python, +Description: Interface to linux's fanotify system calls for python2. + This library allows you to monitor and control accesses to files. For more + information see the man pages on fanotify itself. + +Package: python3-fanotify +Architecture: any +Depends: + ${misc:Depends}, + ${python3:Depends}, + ${shlibs:Depends}, + python3, +Description: Interface to linux's fanotify system calls for python3. + This library allows you to monitor and control accesses to files. For more + information see the man pages on fanotify itself. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..576d095 --- /dev/null +++ b/debian/copyright @@ -0,0 +1 @@ +Copyright 2015-2020 Google, Inc. All rights reserved. diff --git a/debian/python-fanotify.install b/debian/python-fanotify.install new file mode 100644 index 0000000..40e809f --- /dev/null +++ b/debian/python-fanotify.install @@ -0,0 +1 @@ +usr/lib/python2.7/dist-packages diff --git a/debian/python3-fanotify.install b/debian/python3-fanotify.install new file mode 100644 index 0000000..5121f45 --- /dev/null +++ b/debian/python3-fanotify.install @@ -0,0 +1 @@ +usr/lib/python3.7/dist-packages diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5296f05 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ --with=python2,python3 --buildsystem=pybuild + +override_dh_python2: + dh_python2 --shebang '/usr/bin/python2 -sE' + +override_dh_python3: + dh_python3 --shebang '/usr/bin/python3 -sE' diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)