From 1798279a32cefaa53e6bb435ac520d10a9086a7f Mon Sep 17 00:00:00 2001 From: einarr Date: Tue, 11 Dec 2007 18:26:47 +0000 Subject: [PATCH] Files to debianize the program. --- debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 22 +++++++++++++++ debian/copyright | 32 +++++++++++++++++++++ debian/docs | 1 + debian/rules | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 135 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..53ecc4d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +fluents (0.1.0) unstable; urgency=low + + * Initial packaging + + -- Einar Ryeng Tue, 11 Dec 2007 16:12:59 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f318051 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: fluents +Section: science +Priority: optional +Maintainer: Einar Ryeng +Build-Depends: debhelper (>= 5.0.37.2), python-dateutil, python-all-dev (>= 2.3.5-7), python-central (>= 0.5), python-numpy-dev (>= 1:1.0b5), python-epydoc, python-setuptools (>=0.6b3-1) +Standards-Version: 3.7.2 + +Package: fluents +Architecture: any +Depends: ${python:Depends}, python-numpy (>= 1:1.0.1), python-dev +Provides: ${python:Provides} +Description: Python library of bilinear modeling algorithms. + Bilinear modeling algorithms. + +Package: fluents-doc +Architecture: all +Enhances: fluents +Description: Fluents API documentation. + Bilinear modeling algorithms. + . + This package contains documentation for Fluents + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f420e42 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Einar Ryeng on +2007-09-11. + +It was downloaded from https://dev.pvv.org/projects/fluents/downloads + +Upstream Author: Arnar Flatberg + +Copyright: Arnar Flatberg + +License: + Redistribution and use in source and binary forms, with or without + modification, are permitted under the terms of the BSD License. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +On Debian systems, the complete text of the BSD License can be +found in `/usr/share/common-licenses/BSD'. + + +The Debian packaging is (C) 2007, Einar Ryeng and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..041a98c --- /dev/null +++ b/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g +PYVERS=$(shell pyversions -vs) + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + +build: $(PYVERS:%=build-python%) + +build-python%: + dh_testdir + python$* setup.py build + touch $@ + +clean: + # Add here commands to clean up after the build process. + -rm -r build + + dh_clean + +install: build $(PYVERS:%=install-python%) +install-python%: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + python$* setup.py install --root=$(CURDIR)/debian/fluents + + # Remove all *.pyc files, created in the postinst +# find $(CURDIR)/debian/python-networkx -name "*.pyc" -exec rm {} ';' + + +# Build architecture-independent files here. +binary-indep: build install + mkdir -p $(CURDIR)/debian/fluents-doc/usr/share/doc/fluents-doc/html + epydoc --html -o $(CURDIR)/debian/fluents-doc/usr/share/doc/fluents-doc/html fluents + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install + dh_pysupport + dh_installman + dh_link + dh_strip + dh_compress +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure