From 9b43b476080c669fdff326e72bd9d126f591f9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Tue, 12 May 2015 12:26:11 +0200 Subject: [PATCH] add debian folder --- debian/changelog | 5 +++++ debian/control | 19 +++++++++++++++++++ debian/rules | 31 +++++++++++++++++++++++++++++++ debian/source/options | 1 + 4 files changed, 56 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 debian/source/options diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2416f52 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +django-select2 (4.3.1-2~eo70+1) wheezy-eobuilder; urgency=low + + * Initial package + + -- Jérôme Schneider Tue, 12 May 2015 11:45:32 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..66d7227 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: django-select2 +Maintainer: Entr'ouvert +Section: python +Priority: optional +Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 7) +Standards-Version: 3.9.1 +X-Python-Version: >= 2.7 + +Package: python-django-select2 +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Description: Select2 option fields for Django + The app includes Select2 driven Django Widgets and Form Fields. + +Package: python3-django-select2 +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Select2 option fields for Django + The app includes Select2 driven Django Widgets and Form Fields. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c9eeb32 --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python2,python3 --buildsystem=python_distutils + + +override_dh_auto_clean: + python setup.py clean -a + python3 setup.py clean -a + find . -name \*.pyc -exec rm {} \; + + + +override_dh_auto_build: + python setup.py build --force + python3 setup.py build --force + + + +override_dh_auto_install: + python setup.py install --force --root=debian/python-django-select2 --no-compile -O0 --install-layout=deb --install-scripts=/trash + python3 setup.py install --force --root=debian/python3-django-select2 --no-compile -O0 --install-layout=deb + rm -rf debian/python-django-select2/trash + + +override_dh_python2: + dh_python2 --no-guessing-versions + + + + diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..bcc4bbb --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore="\.egg-info$" \ No newline at end of file