diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b650cf8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,58 @@ +relational (0.11-2) unstable; urgency=low + + * New package relational-cli + * Creates menu entry for relational + * Ships examples with the python-relational package + * Links examples from python-relational into /usr/share/doc/relational and + /usr/share/doc/relational-cli + * New maintainer (Closes: #590780) + + -- Salvo 'LtWorf' Tomaselli Wed, 04 Aug 2010 16:50:10 +0200 + +relational (0.11-1) unstable; urgency=low + + * New upstream release. + * Bump Standards-Version to 3.9.1. + + -- Chris Lamb Sun, 01 Aug 2010 23:50:50 -0400 + +relational (0.10-2) unstable; urgency=low + + * Set section to 'math', not Python. + * Remove architecture qualifier in Suggests; it applies to the current + package (which is Architecture: all), not the specified package. (Closes: + #583064) + * Switch to dpkg "3.0 (quilt)" source format. + * Add Build-Depends on python to appease lintian. + * Bump Standards-Version to 3.8.4. + + -- Chris Lamb Tue, 01 Jun 2010 11:35:05 +0100 + +relational (0.10-1) unstable; urgency=low + + * New upstream release (Closes: #536684) + * Install .desktop file. (Closes: #522045) + * Also override override_dh_auto_install so we don't run upstream's Makefile. + * Bump Standards-Version to 3.8.2. + * Add python-psyco to Suggests on i386. + + -- Chris Lamb Sun, 12 Jul 2009 21:21:22 +0100 + +relational (0.9-2) unstable; urgency=low + + * Use two setup.py files instead of installing relational_gui into + python-relational; although we don't ship the entry point in this package, + it is preferable that the code resides in package that has the required + Depends. + * Don't use find_packages() in setup.py files. + * Use distutils instead of setuptools. + * Only ship examples in 'relational' package. + * Bump Standards-Version to 3.8.1. + + -- Chris Lamb Sun, 22 Mar 2009 02:46:00 +0000 + +relational (0.9-1) unstable; urgency=low + + * Initial release. (Closes: #506770) + + -- Chris Lamb Sun, 08 Mar 2009 15:29:09 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e30e39b --- /dev/null +++ b/debian/control @@ -0,0 +1,39 @@ +Source: relational +Section: math +Priority: optional +Maintainer: Salvo 'LtWorf' Tomaselli +Build-Depends: debhelper (>= 7.0.50~), python, python-support +Standards-Version: 3.9.1 +Homepage: http://galileo.dmi.unict.it/wiki/relational/doku.php + +Package: python-relational +Architecture: all +Section: python +Depends: ${misc:Depends}, ${python:Depends} +Suggests: python-psyco +Description: Educational tool for relational algebra (standalone module) + Relational is primarily a tool to provide a workspace for experimenting with + relational algebra, an offshoot of first-order logic. + . + This package provides a standalone Python module that can be used for + executing relational queries. + +Package: relational +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-relational (>= ${binary:Version}), python-qt4 +Description: Educational tool for relational algebra (graphical user interface) + Relational is primarily a tool to provide a workspace for experimenting with + relational algebra, an offshoot of first-order logic. + . + This package provides a graphical user interface that can be used for + executing relational queries. + +Package: relational-cli +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-relational (>= ${binary:Version}) +Description: Educational tool for relational algebra (command line interface) + Relational is primarily a tool to provide a workspace for experimenting with + relational algebra, an offshoot of first-order logic. + . + This package provides a command line interface that can be used for + executing relational queries. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c2f8039 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,40 @@ +Author: Salvo "LtWorf" Tomaselli +Download: http://galileo.dmi.unict.it/wiki/relational/doku.php + +Files: * +Copyright: © 2008 Salvo "LtWorf" Tomaselli +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in the /usr/share/common-licenses/GPL-3 file. + +Files: debian/* +Copyright: © 2009 Chris Lamb +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in the /usr/share/common-licenses/GPL-3 file. diff --git a/debian/patches/debian-changes-0.11-2 b/debian/patches/debian-changes-0.11-2 new file mode 100644 index 0000000..14facf6 --- /dev/null +++ b/debian/patches/debian-changes-0.11-2 @@ -0,0 +1,150 @@ +Description: Upstream changes introduced in version 0.11-2 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + relational (0.11-2) unstable; urgency=low + . + * New package relational-cli + * Creates menu entry for relational + * Ships examples with the python-relational package + * Links examples from python-relational into /usr/share/doc/relational and + /usr/share/doc/relational-cli + * New maintainer (Closes: #590780) + . + The person named in the Author field signed this changelog entry. +Author: Salvo 'LtWorf' Tomaselli +Bug-Debian: http://bugs.debian.org/590780 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- /dev/null ++++ relational-0.11/relational_cli.py +@@ -0,0 +1,116 @@ ++#!/usr/bin/env python ++# -*- coding: utf-8 -*- ++# coding=UTF-8 ++# Relational ++# Copyright (C) 2008 Salvo "LtWorf" Tomaselli ++# ++# Relational is free software: you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation, either version 3 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++# ++# author Salvo "LtWorf" Tomaselli ++ ++import sys ++import os ++import os.path ++import getopt ++from relational import relation, parser ++version="0.11" ++ ++ ++def printver(exit=True): ++ print "Relational %s" % version ++ print "Copyright (C) 2008 Salvo 'LtWorf' Tomaselli." ++ print ++ print "This program comes with ABSOLUTELY NO WARRANTY." ++ print "This is free software, and you are welcome to redistribute it" ++ print "under certain conditions." ++ print "For details see the GPLv3 Licese." ++ print ++ print "Written by Salvo 'LtWorf' Tomaselli " ++ print ++ print "http://galileo.dmi.unict.it/wiki/relational/doku.php" ++ if exit: ++ sys.exit(0) ++ ++def printhelp(code=0): ++ print "Relational" ++ print ++ print "Usage: %s [options] [files]" % sys.argv[0] ++ print ++ print " -v Print version and exits" ++ print " -h Print this help and exits" ++ print " -q Uses QT user interface" ++ #print " -c Uses curses user interface" ++ print " -r Uses readline user interface (default)" ++ sys.exit(code) ++ ++if __name__ == "__main__": ++ x11=False #Will not try to use the x11 interface ++ ++ #Try to run the psyco optimizer ++ try: ++ import psyco ++ psyco.full() ++ except: ++ pass ++ ++ ++ #Getting command line ++ try: ++ switches,files=getopt.getopt(sys.argv[1:],"vhqr") ++ except: ++ printhelp(1) ++ ++ for i in switches: ++ if i[0]=='-v': ++ printver() ++ elif i[0]=='-h': ++ printhelp() ++ elif i[0]=='-q': ++ x11=True ++ elif i[0]=='-r': ++ x11=False ++ ++ if x11: ++ import sip ++ from PyQt4 import QtCore, QtGui ++ from relational_gui import maingui, about ++ about.version=version ++ ++ app = QtGui.QApplication(sys.argv) ++ Form = QtGui.QWidget() ++ ++ if os.name=='nt': ++ Form.setFont(QtGui.QFont("Dejavu Sans Bold")) ++ ++ ui = maingui.Ui_Form() ++ ui.setupUi(Form) ++ ++ for i in range(len(files)): ++ if not os.path.isfile(files[i]): ++ print >> sys.stderr, "%s is not a file" % files[i] ++ printhelp(12) ++ f=files[i].split('/') ++ defname=f[len(f)-1].lower() ++ if (defname.endswith(".csv") or defname.endswith(".tlb")): #removes the extension ++ defname=defname[:-4] ++ print 'Loading file "%s" with name "%s"' % (files[i],defname) ++ ui.loadRelation(files[i],defname) ++ ++ Form.show() ++ sys.exit(app.exec_()) ++ else: ++ printver(False) ++ import relational_readline.linegui ++ relational_readline.linegui.main(files) ++ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6e86bc2 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian-changes-0.11-2 diff --git a/debian/python-relational.examples b/debian/python-relational.examples new file mode 100644 index 0000000..781fb73 --- /dev/null +++ b/debian/python-relational.examples @@ -0,0 +1 @@ +samples/* diff --git a/debian/python-relational.setup.py b/debian/python-relational.setup.py new file mode 100644 index 0000000..ee5d1bb --- /dev/null +++ b/debian/python-relational.setup.py @@ -0,0 +1,3 @@ +from distutils.core import setup + +setup(name='relational', packages=('relational',)) diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000..b3dc41e --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.5- diff --git a/debian/relational-cli.1 b/debian/relational-cli.1 new file mode 100644 index 0000000..0595caf --- /dev/null +++ b/debian/relational-cli.1 @@ -0,0 +1,35 @@ +.TH "Relational" "1" +.SH "NAME" +relational-cli \(em Python implementation of Relational algebra. +.SH "SYNOPSIS" +.PP +\fBrelational\fR [OPTIONS\fR\fP] [ FILE .\|.\|.] + +.SH "DESCRIPTION" +.PP +Python implementation of Relational algebra. This program provides a command line interface to execute relational algebra queries. It is meant to be used for educational purposes. + +.SH "OPTIONS" +.PP +These programs follow the usual GNU command line syntax, +with long options starting with two dashes (`\-'). A summary of +options is included below. However, the ordering is very strict \- +.IP "\fB-v\fP +Show version information. + +.IP "\fB-h\fP +Shows help. + +.IP "\fB-q\fP +Using the Qt4 GUI. + +.IP "\fB-r\fP +Uses the readline UI (default). + +.SH "AUTHOR" +.PP +This manual page was written by Salvo 'LtWorf' Tomaselli for +the \fBDebian GNU/Linux\fP system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License +version 3 or any later version published by the Free Software Foundation. diff --git a/debian/relational-cli.links b/debian/relational-cli.links new file mode 100644 index 0000000..293c57a --- /dev/null +++ b/debian/relational-cli.links @@ -0,0 +1 @@ +usr/share/doc/python-relational/examples/ usr/share/doc/relational-cli/examples diff --git a/debian/relational-cli.manpages b/debian/relational-cli.manpages new file mode 100644 index 0000000..a6aad3b --- /dev/null +++ b/debian/relational-cli.manpages @@ -0,0 +1 @@ +debian/relational-cli.1 diff --git a/debian/relational-cli.setup.py b/debian/relational-cli.setup.py new file mode 100644 index 0000000..805270c --- /dev/null +++ b/debian/relational-cli.setup.py @@ -0,0 +1,3 @@ +from distutils.core import setup + +setup(name='relational_readline', packages=('relational_readline',)) diff --git a/debian/relational.examples b/debian/relational.examples new file mode 100644 index 0000000..81154dd --- /dev/null +++ b/debian/relational.examples @@ -0,0 +1 @@ +samples diff --git a/debian/relational.install b/debian/relational.install new file mode 100644 index 0000000..34bacc7 --- /dev/null +++ b/debian/relational.install @@ -0,0 +1 @@ +relational.desktop usr/share/applications diff --git a/debian/relational.links b/debian/relational.links new file mode 100644 index 0000000..e6966ef --- /dev/null +++ b/debian/relational.links @@ -0,0 +1 @@ +usr/share/doc/python-relational/examples/ usr/share/doc/relational/examples diff --git a/debian/relational.manpages b/debian/relational.manpages new file mode 100644 index 0000000..c89d608 --- /dev/null +++ b/debian/relational.manpages @@ -0,0 +1 @@ +relational.1 diff --git a/debian/relational.setup.py b/debian/relational.setup.py new file mode 100644 index 0000000..208964f --- /dev/null +++ b/debian/relational.setup.py @@ -0,0 +1,3 @@ +from distutils.core import setup + +setup(name='relational_gui', packages=('relational_gui',)) diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b707e9b --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f +SHELL=sh -e + +%: + dh $@ + +clean: + rm -rf build *.egg-info + dh $@ + +override_dh_auto_clean: +override_dh_auto_build: +override_dh_auto_install: + for pkg in relational-cli python-relational relational; do \ + python debian/$${pkg}.setup.py install --root=$(CURDIR)/debian/$${pkg}; \ + rm -rf build; \ + done + +override_dh_install: + install -D relational_gui.py debian/relational/usr/bin/relational + install -D relational_cli.py debian/relational-cli/usr/bin/relational-cli + dh_install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..6051573 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +opts=filenamemangle=s/.*:// http://galileo.dmi.unict.it/wiki/relational/doku.php?id=download /wiki/[^:]*:relational_([^(_mac)]*).tar.gz