- Added in trunk debian/ dir to build the debian package. It won't be added in the source tar.gz
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@248 014f5005-505e-4b48-8d0a-63407b615a7cmaster
parent
9032f1c674
commit
557fcabb01
@ -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 <tiposchi@tiscali.it> 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 <lamby@debian.org> 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 <lamby@debian.org> 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 <lamby@debian.org> 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 <lamby@debian.org> Sun, 22 Mar 2009 02:46:00 +0000
|
||||
|
||||
relational (0.9-1) unstable; urgency=low
|
||||
|
||||
* Initial release. (Closes: #506770)
|
||||
|
||||
-- Chris Lamb <lamby@debian.org> Sun, 08 Mar 2009 15:29:09 +0000
|
@ -0,0 +1 @@
|
||||
7
|
@ -0,0 +1,39 @@
|
||||
Source: relational
|
||||
Section: math
|
||||
Priority: optional
|
||||
Maintainer: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>
|
||||
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.
|
@ -0,0 +1,40 @@
|
||||
Author: Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||
Download: http://galileo.dmi.unict.it/wiki/relational/doku.php
|
||||
|
||||
Files: *
|
||||
Copyright: © 2008 Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||
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 <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
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 <lamby@debian.org>
|
||||
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 <http://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public License
|
||||
can be found in the /usr/share/common-licenses/GPL-3 file.
|
@ -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 <tiposchi@tiscali.it>
|
||||
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: <vendor|upstream|other>, <url of original patch>
|
||||
Bug: <url in upstream bugtracker>
|
||||
Bug-Debian: http://bugs.debian.org/<bugnumber>
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
|
||||
Forwarded: <no|not-needed|url proving that it has been forwarded>
|
||||
Reviewed-By: <name and email of someone who approved the patch>
|
||||
Last-Update: <YYYY-MM-DD>
|
||||
|
||||
--- /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 <http://www.gnu.org/licenses/>.
|
||||
+#
|
||||
+# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
|
||||
+
|
||||
+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 <tiposchi@tiscali.it>"
|
||||
+ 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)
|
||||
+
|
@ -0,0 +1 @@
|
||||
debian-changes-0.11-2
|
@ -0,0 +1 @@
|
||||
samples/*
|
@ -0,0 +1,3 @@
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name='relational', packages=('relational',))
|
@ -0,0 +1 @@
|
||||
2.5-
|
@ -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 <tiposchi@tiscali.it> 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.
|
@ -0,0 +1 @@
|
||||
usr/share/doc/python-relational/examples/ usr/share/doc/relational-cli/examples
|
@ -0,0 +1 @@
|
||||
debian/relational-cli.1
|
@ -0,0 +1,3 @@
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name='relational_readline', packages=('relational_readline',))
|
@ -0,0 +1 @@
|
||||
samples
|
@ -0,0 +1 @@
|
||||
relational.desktop usr/share/applications
|
@ -0,0 +1 @@
|
||||
usr/share/doc/python-relational/examples/ usr/share/doc/relational/examples
|
@ -0,0 +1 @@
|
||||
relational.1
|
@ -0,0 +1,3 @@
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name='relational_gui', packages=('relational_gui',))
|
@ -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
|
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
@ -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
|
Loading…
Reference in New Issue