Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2007-11-13 20:58:44 +0300
committerDavid Rousselie <dax@happycoders.org>2007-11-13 20:58:44 +0300
commitb8002f17fcf32905b91ccafdf52414e4692dd7cd (patch)
tree2c327e92035e493e3a2d37304dd03ed395f9cc65 /debian
parent882f61d8125943889b41298b9074bfdf8b93d1cb (diff)
Add Debian packaging configuration
darcs-hash:20071113175844-86b55-930c81a3e37181559260cd4df978d5d4baa77a9a.gz
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control17
-rwxr-xr-xdebian/rules76
4 files changed, 99 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5a3459c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jcl (0.1-1) unstable; urgency=low
+
+ * JCL first version
+
+ -- David Rousselie <dax@happycoders.org> Mon, 12 Nov 2007 08:09:57 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d33850c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: jcl
+Maintainer: David Rousselie <dax@happycoders.org>
+Section: python
+Priority: optional
+Build-Depends: python-setuptools (>= 0.6b3-1), python-all-dev (>= 2.3.5-11), debhelper (>= 5.0.38), python-central (>= 0.5.6)
+Standards-Version: 3.7.2
+XS-Python-Version: all
+
+Package: python-jcl
+Architecture: all
+Depends: ${python:Depends}, python-sqlobject (>= 0.8), python-pyxmpp (>= 1.0)
+Recommends: python-pysqlite2
+Suggests:
+XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Description: Jabber Component Library
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..96d20c5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+
+# This file was automatically generated by stdeb 0.2.a1 at
+# Mon, 12 Nov 2007 08:09:57 +0100
+
+PACKAGE_NAME=python-jcl
+MODULE_NAME=jcl
+DEB_UPSTREAM_VERSION=0.1
+
+PYVERS=$(shell pyversions -vr)
+
+build: build-stamp
+build-stamp: $(PYVERS:%=build-python%)
+ touch $@
+build-python%:
+# Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that.
+ python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" build
+ touch $@
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f *-stamp
+ rm -rf dist build
+ -find -name '*.py[co]' | xargs rm -f
+# find . -name *.pyc -exec rm {} \;
+ dh_clean
+
+install: build install-prereq $(PYVERS:%=install-python%)
+install-prereq:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+install-python%:
+# Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that.
+ python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" install --no-compile --single-version-externally-managed --root $(CURDIR)/debian/${PACKAGE_NAME}
+ mv debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}-${DEB_UPSTREAM_VERSION}-py$*.egg-info debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}.egg-info
+
+binary-arch:
+
+binary-indep: build install
+ dh_testdir -i
+ dh_testroot -i
+ dh_pycentral -i
+ dh_installdocs -i
+ dh_installdirs -i
+ dh_installexamples -i
+ dh_strip -i
+ dh_compress -i -X.py
+ dh_fixperms -i
+ : # Replace all '#!' calls to python with $(PYTHON)
+ : # and make them executable
+ for i in \
+ `find debian/python-jcl/usr/bin -type f` \
+ `find debian/python-jcl/usr/lib -type f`; \
+ do \
+ case "$$i" in *-[0-9].[0-9]) continue; esac; \
+ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
+ $$i > $$i.temp; \
+ if cmp --quiet $$i $$i.temp; then \
+ rm -f $$i.temp; \
+ else \
+ mv -f $$i.temp $$i; \
+ chmod 755 $$i; \
+ echo "fixed interpreter: $$i"; \
+ fi; \
+ done
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary: binary-indep binary-arch
+
+
+.PHONY: build clean binary-indep binary-arch binary install configure