FFFF Added debian package control files, courtesy of Moshe Zadka · python-xlib/python-xlib@8344dc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8344dc8

Browse files
committed
Added debian package control files, courtesy of Moshe Zadka
1 parent 5e849a5 commit 8344dc8

File tree

8 files changed

+144
-3
lines changed

8 files changed

+144
-3
lines changed

Xlib/protocol/display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: display.py,v 1.12 2001-01-09 09:06:06 petli Exp $
1+
# $Id: display.py,v 1.13 2001-07-25 18:48:25 petli Exp $
22
#
33
# Xlib.protocol.display -- core display communication
44
#
@@ -310,8 +310,8 @@ def send_request(self, request, wait_for_response):
310310

311311
self.request_queue_lock.release()
312312

313-
if qlen > 10:
314-
self.flush()
313+
# if qlen > 10:
314+
# self.flush()
315315

316316
def close_internal(self, whom):
317317
# Clear out data structures

debian/changelog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
python-xlib (0.8-1) unstable; urgency=low
2+
3+
* Initial Release. (Closes: #105388)
4+
5+
-- Moshe Zadka <moshez@debian.org> Sun, 15 Jul 2001 13:12:01 +0300
6+
7+
Local variables:
8+
mode: debian-changelog
9+
End:

debian/control

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Source: python-xlib
2+
Section: x11
3+
Priority: extra
4+
Maintainer: Moshe Zadka <moshez@debian.org>
5+
Build-Depends: debhelper
6+
Standards-Version: 3.0.1
7+
8+
Package: python-xlib
9+
Architecture: all
10+
Depends: python
11+
Description: Interface for Python to the X11 Protocol
12+
python-xlib is a 100% pure python implementation of the X11
13+
protocol.

debian/copyright

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This package was debianized by Moshe Zadka <moshez@debian.org> on
2+
sun, 15 Jul 2001 13:03:04 +0300.
3+
4+
It was downloaded from http://python-xlib.sf.net
5+
6+
Upstream Author(s): Peter Liljenberg
7+
8+
Copyright:
9+
10+
Copyright (C) 2000,2001 Peter Liljenberg
11+
12+
The Python X Library is released under GPL, see the file COPYING for
13+
details.

debian/dirs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
usr/lib/python1.5/site-packages/Xlib
2+
usr/share/info
3+
usr/share/doc/python-xlib/
4+
usr/share/doc/python-xlib/examples
5+
usr/share/doc/python-xlib/html

debian/postinst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
3+
install-info --section "Development" "Development" --quiet /usr/share/info/python-xlib.info
4+
fi
5+
6+
if [ "$1" = "configure" ]; then
7+
if [ -d /usr/doc -a ! -e /usr/doc/python-xlib -a -d /usr/share/doc/python-xlib ]; then
8+
ln -sf ../share/doc/python-xlib /usr/doc/python-xlib
9+
fi
10+
fi
11+
12+
NAME=python-xlib
13+
case "$1" in
14+
configure|abort-upgrade|abort-remove|abort-deconfigure)
15+
dpkg --listfiles $NAME | grep '\.py$' | \
16+
xargs -n 1 /usr/bin/python -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
17+
dpkg --listfiles $NAME | grep '\.py$' | \
18+
xargs -n 1 /usr/bin/python -O -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
19+
;;
20+
esac

debian/prerm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
if [ "$1" = "remove" -o "$1" = "upgrade" ]; then
3+
install-info --quiet --remove /usr/share/info/python-xlib.info
4+
fi
5+
6+
NAME=python-xlib
7+
8+
dpkg --listfiles $NAME |
9+
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
10+
xargs rm -f >&2
11+
12+
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/python-xlib ]; then
13+
rm -f /usr/doc/python-xlib
14+
fi

debian/rules

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#!/usr/bin/make -f
2+
#-*- makefile -*-
3+
# Made with the aid of dh_make, by Craig Small
4+
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5+
# Some lines taken from debmake, by Christoph Lameter.
6+
7+
# Uncomment this to turn on verbose mode.
8+
#export DH_VERBOSE=1
9+
10+
# This is the debhelper compatability version to use.
11+
export DH_COMPAT=1
12+
13+
build: build-stamp
14+
build-stamp:
15+
dh_testdir
16+
17+
touch build-stamp
18+
19+
clean:
20+
dh_testdir
21+
dh_testroot
22+
rm -f build-stamp install-stamp
23+
24+
# Add here commands to clean up after the build process.
25+
dh_clean
26+
27+
install: install-stamp
28+
install-stamp: build-stamp
29+
dh_testdir
30+
dh_testroot
31+
dh_clean -k
32+
dh_installdirs
33+
34+
# Add here commands to install the package into debian/tmp.
35+
cp -r Xlib debian/tmp/usr/lib/python1.5/site-packages/
36+
cp README NEWS TODO debian/tmp/usr/share/doc/python-xlib
37+
cp doc/html/*.html debian/tmp/usr/share/doc/python-xlib/html
38+
cp doc/info/*.info debian/tmp/usr/share/info
39+
gzip -9 debian/tmp/usr/share/info/python-xlib.info
40+
cp examples/*.py debian/tmp/usr/share/doc/python-xlib/examples
41+
cp debian/copyright debian/tmp/usr/share/doc/python-xlib/
42+
43+
touch install-stamp
44+
45+
binary-arch: build install
46+
# We have nothing to do by default.
47+
48+
binary-indep: build install
49+
# dh_testversion
50+
dh_testdir
51+
dh_testroot
52+
dh_link
53+
dh_strip
54+
dh_installchangelogs
55+
dh_compress
56+
dh_fixperms
57+
dh_installdeb
58+
dh_shlibdeps
59+
dh_gencontrol
60+
dh_md5sums
61+
dh_builddeb
62+
63+
source diff:
64+
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
65+
66+
binary: binary-indep binary-arch
67+
.PHONY: build clean binary-indep binary-arch binary install

0 commit comments

Comments
 (0)
0