[Pkg-octave-commit] [octave-cgi.git] 02/02: Add initial version of debian/* files

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Wed Aug 31 21:21:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-cgi.git.

commit dca16cb43dc79e2e40d17f378c47dc5dc4333244
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Wed Aug 31 18:03:51 2016 -0300

    Add initial version of debian/* files
    
    Gbp-Dch: Ignore
---
 .gitignore                                         |  7 ++++
 debian/changelog                                   |  5 +++
 debian/check.m                                     |  3 ++
 debian/compat                                      |  1 +
 debian/control                                     | 19 ++++++++++
 debian/copyright                                   | 44 ++++++++++++++++++++++
 debian/patches/load-cgi-package-in-unit-test.patch | 30 +++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  4 ++
 debian/source/format                               |  1 +
 debian/watch                                       |  2 +
 11 files changed, 117 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f1da40c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+/.pc/
+/debian/files
+/debian/octave-cgi.debhelper.log
+/debian/octave-cgi.substvars
+/debian/octave-cgi/
+/global-list
+/local-list
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c794f03
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+octave-cgi (0.1.1-1) unstable; urgency=low
+
+  * Initial release (closes: #XXXXXX)
+
+ -- Rafael Laboissiere <rafael at debian.org>  Sat, 20 Aug 2016 16:19:02 -0300
diff --git a/debian/check.m b/debian/check.m
new file mode 100644
index 0000000..99aa75e
--- /dev/null
+++ b/debian/check.m
@@ -0,0 +1,3 @@
+disp ("[test_cgi.sh]")
+cd doc
+system ("sh test_cgi.sh")
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f11c82a
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c938c1f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: octave-cgi
+Section: math
+Priority: optional
+Maintainer: Debian Octave Group <pkg-octave-devel at lists.alioth.debian.org>
+Uploaders: Rafael Laboissiere <rafael at debian.org>
+Build-Depends: debhelper (>= 9), cdbs, octave-pkg-dev (>= 1.4.2)
+Standards-Version: 3.9.8
+Homepage: http://octave.sourceforge.net/cgi/
+Vcs-Git: https://anonscm.debian.org/git/pkg-octave/octave-cgi.git
+Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-octave/octave-cgi.git
+
+Package: octave-cgi
+Architecture: all
+Depends: ${misc:Depends}, ${octave:Depends}
+Description: Common Gateway Interface for Octave
+ This package allow the creation of CGI (Common Gateway Interface)
+ objects and the parsing of CGI query string from GET or POST requests.
+ .
+ This Octave add-on package is part of the Octave-Forge project.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e5bcf82
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,44 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Common Gatway Interface for Octave
+Upstream-Contact: Alexander Barth <barth.alexander at gmail.com>
+Source: Source: http://octave.sourceforge.net/cgi/index.html
+
+Files: *
+Copyright: 2012, Alexander Barth <barth.alexander at gmail.com>
+License: GPL-2+
+ 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 2 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, version 3, can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+Files: debian/*
+Copyright: 2016 Rafael Laboissiere <rafael at 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, version 3, can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/patches/load-cgi-package-in-unit-test.patch b/debian/patches/load-cgi-package-in-unit-test.patch
new file mode 100644
index 0000000..2ea3421
--- /dev/null
+++ b/debian/patches/load-cgi-package-in-unit-test.patch
@@ -0,0 +1,30 @@
+Description: Load the cgi pacakge when running the unit tests
+Author: Rafael Laboissiere <rafael at debian.org>
+Forwarded: https://savannah.gnu.org/bugs/index.php?48966
+Last-Update: 2016-08-31
+
+--- octave-cgi-0.1.1.orig/doc/test_cgi.sh
++++ octave-cgi-0.1.1/doc/test_cgi.sh
+@@ -5,6 +5,7 @@ export QUERY_STRING="x=50%2C1,2&y=1,2,3&
+ 
+ echo "Test GET request"
+ octave -q <<EOF
++pkg load cgi
+ CGI = cgi();
+ disp(CGI.form.y)
+ assert(strcmp(CGI.form.y,'1,2,3'))
+@@ -17,6 +18,7 @@ echo "Test GET request (with semicolon)"
+ export QUERY_STRING="x=50%2C1,2;y=1,2,3;len=10;name=test;field=random_field" 
+ 
+ octave -q <<EOF
++pkg load cgi
+ CGI = cgi();
+ assert(strcmp(CGI.form.y,'1,2,3'))
+ assert(strcmp(CGI.form.field,'random_field'))
+@@ -31,5 +33,5 @@ export CONTENT_TYPE=application/x-www-fo
+ export CONTENT_LENGTH=54
+ 
+ echo "x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" | \
+-    octave -qH --eval "CGI = cgi(); assert(strcmp(CGI.form.y,'1,2,3')); disp('All tests passed');";
++    octave -qH --eval "pkg load cgi; CGI = cgi(); assert(strcmp(CGI.form.y,'1,2,3')); disp('All tests passed');";
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ec5c7ab
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+load-cgi-package-in-unit-test.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..71fb86c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+include /usr/share/cdbs/1/class/octave-pkg.mk
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..6d25646
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/octave/cgi-(.+)\.tar\.gz

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-cgi.git.git



More information about the Pkg-octave-commit mailing list