From f84644990bf4ff1743e82db23c1d8562523ac3c5 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Sat, 22 Aug 2009 17:36:44 +0300 Subject: [PATCH] Debian packaging, step #1 * add setup.py for python distutils use * add packaging/debian/* Not ready yet, but at least seems to behave sanely --- packaging/debian/changelog | 5 +++++ packaging/debian/compat | 1 + packaging/debian/control | 24 ++++++++++++++++++++ packaging/debian/copyright | 7 ++++++ packaging/debian/links | 1 + packaging/debian/pyversions | 1 + packaging/debian/rules | 45 +++++++++++++++++++++++++++++++++++++ setup.py | 17 ++++++++++++++ 8 files changed, 101 insertions(+) create mode 100644 packaging/debian/changelog create mode 100644 packaging/debian/compat create mode 100644 packaging/debian/control create mode 100644 packaging/debian/copyright create mode 100644 packaging/debian/links create mode 100644 packaging/debian/pyversions create mode 100755 packaging/debian/rules create mode 100644 setup.py diff --git a/packaging/debian/changelog b/packaging/debian/changelog new file mode 100644 index 00000000..994884c6 --- /dev/null +++ b/packaging/debian/changelog @@ -0,0 +1,5 @@ +free-poker-tools (0.10.99) unstable; urgency=low + + * Initial packaging release. + + -- Mika Bostrom Thu, 20 Aug 2009 06:30:53 +0300 diff --git a/packaging/debian/compat b/packaging/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packaging/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packaging/debian/control b/packaging/debian/control new file mode 100644 index 00000000..f557711a --- /dev/null +++ b/packaging/debian/control @@ -0,0 +1,24 @@ +Source: free-poker-tools +Maintainer: Mika Bostrom +Section: games +Priority: optional +Build-Depends: python, dpkg-dev, python-support +Standards-Version: 3.8.0 + +Package: python-fpdb +Architecture: any +Section: games +Priority: optional +Depends: ${python:Depends}, python-gtk2, python-matplotlib, + python-support, mysql-server | postgresql | python-pysqlite2, + python-psycopg2 | python-mysqldb +Suggests: wine +Description: free poker database with HUD + FPDB is a statistics tool for online poker. It supports most sites + and several games. Most prominent feature is its heads-up display + (HUD) which shows statistical details for players in real time. + . + Due to the fact that most online poker clients are Windows-only, + you may need to install wine. + . + FPDB is under heavy development. diff --git a/packaging/debian/copyright b/packaging/debian/copyright new file mode 100644 index 00000000..8796c11a --- /dev/null +++ b/packaging/debian/copyright @@ -0,0 +1,7 @@ +This package was debianised by Mika Bostrom + +Upstream authors: ... + +License: AGPL + +Copyright (C) 2008- The FPDB developers diff --git a/packaging/debian/links b/packaging/debian/links new file mode 100644 index 00000000..5a4601a7 --- /dev/null +++ b/packaging/debian/links @@ -0,0 +1 @@ +/usr/share/pyshared/fpdb/fpdb.py /usr/bin/fpdb diff --git a/packaging/debian/pyversions b/packaging/debian/pyversions new file mode 100644 index 00000000..8b253bc3 --- /dev/null +++ b/packaging/debian/pyversions @@ -0,0 +1 @@ +2.4- diff --git a/packaging/debian/rules b/packaging/debian/rules new file mode 100755 index 00000000..2ae2c776 --- /dev/null +++ b/packaging/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +PACKAGE := python-fpdb + +build: build-stamp +build-stamp: + dh_testdir + python setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + python setup.py clean + rm -rf build + dh_clean build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep || dh_clean -k + dh_installdirs + # + python setup.py install --root=debian/$(PACKAGE) --prefix=/usr --no-compile + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..668693cf --- /dev/null +++ b/setup.py @@ -0,0 +1,17 @@ +# setup.py +# Python packaging for fpdb + +from distutils.core import setup + +setup(name = 'fpdb', + description = 'Free Poker Database', + version = '0.10.999', + author = 'FPDB team', + author_email = 'fpdb-main@lists.sourceforge.net', + packages = ['fpdb'], + package_dir = { 'fpdb' : 'pyfpdb' }, + data_files = [ + ('/usr/share/doc/python-fpdb', + ['docs/readme.txt', 'docs/release-notes.txt', + 'docs/tabledesign.html', 'THANKS.txt'])] +)