summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/control9
-rw-r--r--debian/python-apt.dirs1
-rwxr-xr-xdebian/rules23
3 files changed, 33 insertions, 0 deletions
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..7463bc9c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,9 @@
+Package: python-apt
+Architecture: any
+Depends: ${shlibs:Depends}
+Priority: optional
+Description: Python interface to libapt-pkg
+ The apt-pkg Python interface will provide full access to the internal
+ libapt-pkg structures allowing Python programs to easially perform a
+ variety of functions.
+
diff --git a/debian/python-apt.dirs b/debian/python-apt.dirs
new file mode 100644
index 00000000..621814df
--- /dev/null
+++ b/debian/python-apt.dirs
@@ -0,0 +1 @@
+usr/lib/python1.5/site-packages
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..a6919824
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+
+python-apt: build debian/shlibs.local
+ dh_testdir -p$@
+ dh_testroot -p$@
+ dh_clean -p$@ -k
+ dh_installdirs -p$@
+
+ # install the modules
+ cp $(BLD)/bin/apt_pkgmodule.so $(BLD)/bin/apt_instmodule.so debian/$@/usr/lib/python$(PYTHONVER)/site-packages/
+
+ dh_installdocs -p$@
+ dh_installexamples -p$@ $(BLD)/docs/examples/python/*
+
+ dh_installchangelogs -p$@
+ dh_strip -p$@
+ dh_compress -p$@
+ dh_fixperms -p$@
+ dh_installdeb -p$@
+ LD_LIBRARY_PATH=`pwd`/debian/tmp/usr/lib:`pwd`/debian/apt-utils/usr/lib dh_shlibdeps -p$@
+ dh_gencontrol -p$@
+ dh_md5sums -p$@
+ dh_builddeb -p$@
+