[jsurf-alggeo] 02/02: Imported Debian patch 0.1.4+ds-1
Jerome Benoit
calculus-guest at moszumanska.debian.org
Tue Sep 8 21:50:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository jsurf-alggeo.
commit 79cec47658574cba70807736b36a13acdf9a02c7
Author: Jerome Benoit <calculus at rezozer.net>
Date: Tue Sep 8 23:06:58 2015 +0200
Imported Debian patch 0.1.4+ds-1
---
debian/adhoc/Makefile | 24 ++++
debian/adhoc/examples/Makefile | 46 ++++++
debian/changelog | 5 +
debian/clean | 1 +
debian/compat | 1 +
debian/control | 26 ++++
debian/copyright | 58 ++++++++
debian/javabuild | 1 +
debian/jsurf-alggeo.docs | 1 +
debian/jsurf-alggeo.examples | 2 +
debian/jsurf-alggeo.jlibs | 1 +
debian/jsurf-alggeo.links | 1 +
debian/jsurf-alggeo.manifest | 3 +
debian/jsurf-alggeo.manpages | 1 +
debian/jsurf-alggeo.poms | 1 +
debian/maven.rules | 1 +
debian/patches/debianization-documentation.patch | 25 ++++
debian/patches/debianization.patch | 19 +++
debian/patches/series | 3 +
debian/patches/upstream-java2help2man.patch | 170 +++++++++++++++++++++++
debian/poms/jsurf-alggeo.pom | 28 ++++
debian/rules | 36 +++++
debian/source/format | 1 +
debian/source/lintian-overrides | 1 +
debian/source/options | 2 +
debian/tests/compose-examples | 21 +++
debian/tests/control | 8 ++
debian/tests/make-RotationGrid | 22 +++
debian/tests/make-TestJSurf | 43 ++++++
debian/watch | 3 +
30 files changed, 555 insertions(+)
diff --git a/debian/adhoc/Makefile b/debian/adhoc/Makefile
new file mode 100644
index 0000000..8e80b07
--- /dev/null
+++ b/debian/adhoc/Makefile
@@ -0,0 +1,24 @@
+TOP_BUILDDIR ?= $(CURDIR)
+
+jsurf_alggeo_DESCRIPTION = "Java based renderer for ALGebraic GEOmetric SURFaces"
+
+HELP2MAN = help2man
+
+H2MFLAGS = \
+ --manual="IMAGINARY" \
+ --source="jsurf-alggeo $(DEB_PKG_VERSION)" \
+ --version-string="$(DEB_PKG_VERSION)" \
+ --no-info
+
+default:
+
+manpages: jsurf-alggeo.1
+
+jsurf-alggeo.1: debian/jsurf-alggeo/usr/bin/jsurf-alggeo
+ $(HELP2MAN) \
+ -s 1 \
+ $(H2MFLAGS) \
+ -I debian/man/$(basename $@).h2m \
+ -n $(if $($(subst -,_,$(basename $@))_DESCRIPTION), $($(subst -,_,$(basename $@))_DESCRIPTION), "manual page for $(basename $@)") \
+ -o $@ \
+ ./$<
diff --git a/debian/adhoc/examples/Makefile b/debian/adhoc/examples/Makefile
new file mode 100644
index 0000000..1a397bd
--- /dev/null
+++ b/debian/adhoc/examples/Makefile
@@ -0,0 +1,46 @@
+# /usr/share/doc/jsurf-alggeo/examples/Makefile
+#
+# Ad hoc Makefile for composing the sample jsurf scripts distributed
+# within the debian package jsurf-alggeo.
+#
+# Recommended usage:
+# create a dedicated folder somewhere in your HOME directory;
+# link all the files in /usr/share/doc/jsurf-alggeo/examples in the dedicated folder;
+# launch this Makefile in the dedicated folder:
+# $ make ;
+# for a cleanup, consider the clean target:
+# $ make clean ;
+# for other targets, just read the Makefile;
+# display the PNG images with `display' (graphicsmagick-imagemagick-compat Debian package):
+# $ for ff in $(ls *.png); do display $ff ; done
+# or if you do not like loops:
+# $ display tutorial_zitrus.png
+#
+# written for Debian by Jerome Benoit <calculus at rezozer.net>
+# on behalf of the Debian Science Team
+# copyright: 2015 Jerome Benoit <calculus at rezozer.net>
+# distributed under the terms and conditions of GPL version 3 or later
+#
+
+OPT_SIZE ?= 512
+OPT_QUALITY ?= 1
+
+JSURFALGGEO ?= /usr/bin/jsurf-alggeo
+
+JSURFSCRIPTS = $(wildcard *.jsurf)
+
+PNGIMAGES = $(patsubst %.jsurf,%.png, $(JSURFSCRIPTS))
+
+default: all
+
+all: png
+
+check: png
+
+png: $(PNGIMAGES)
+
+clean:
+ $(RM) $(PNGIMAGES)
+
+%.png: %.jsurf
+ $(JSURFALGGEO) --size $(OPT_SIZE) --quality $(OPT_QUALITY) --output $@ $<
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..56f6029
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jsurf-alggeo (0.1.4+ds-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #798379)
+
+ -- Jerome Benoit <calculus at rezozer.net> Tue, 08 Sep 2015 21:49:01 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..5041832
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+jsurf-alggeo.1
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..badc189
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: jsurf-alggeo
+Section: math
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends: debhelper (>= 9), javahelper, maven-repo-helper, help2man
+Build-Depends-Indep: default-jdk, jarwrapper, antlr3, libcommons-cli-java, libvecmath-java, rdfind, symlinks
+Standards-Version: 3.9.6
+Homepage: http://imaginary.org/program/jsurf
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/jsurf-alggeo.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/jsurf-alggeo.git
+
+Package: jsurf-alggeo
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Suggests: graphicsmagick-imagemagick-compat
+Description: Java based visualization library for real algebraic geometry
+ jsurf is a Java library to visualize some real algebraic geometry.
+ It is and can be used as the visualization component in Java programs.
+ .
+ Beside the library, this package also provides a simple script driven
+ tool for drawing real algebraic geometric surfaces, as well as some
+ script samples. (This simple tool is similar to, but not comptible with,
+ the tool surf-alggeo distributed within the package surf-alggeo.)
+ .
+ jsurf is free software distributed under the Apache 2.0 License.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f645031
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,58 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: jsurf
+Upstream-Contact: info at imaginary.org
+Source: http://imaginary.org/program/jsurf
+Comment:
+ The jsurf-alggeo program is part of IMAGINARY <http://www.imaginary.org> by
+ the Mathematisches Forschungsinstitut Oberwolfach <http://www.mfo.de>.
+Files-Excluded:
+ .gitignore
+ settings.gradle
+ build.gradle
+ gradle
+ gradlew
+ gradlew.bat
+ README.md
+
+Files: *
+Copyright:
+ 2008-2015 Mathematisches Forschungsinstitut Oberwolfach <http://www.mfo.de>
+License: Apache-2.0
+
+Files: debian/*
+Copyright:
+ 2015 Jerome Benoit <calculus at rezozer.net>
+License: GPL-3+
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in `/usr/share/common-licenses/Apache-2.0'.
+
+License: GPL-3+
+ This package 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 package 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 package. 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 `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/javabuild b/debian/javabuild
new file mode 100644
index 0000000..054a204
--- /dev/null
+++ b/debian/javabuild
@@ -0,0 +1 @@
+jsurf-alggeo.jar src/main
diff --git a/debian/jsurf-alggeo.docs b/debian/jsurf-alggeo.docs
new file mode 100644
index 0000000..6d5ee1d
--- /dev/null
+++ b/debian/jsurf-alggeo.docs
@@ -0,0 +1 @@
+NOTICE
diff --git a/debian/jsurf-alggeo.examples b/debian/jsurf-alggeo.examples
new file mode 100644
index 0000000..4240134
--- /dev/null
+++ b/debian/jsurf-alggeo.examples
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/doc/jsurf-alggeo/examples/*
+debian/adhoc/examples/Makefile
diff --git a/debian/jsurf-alggeo.jlibs b/debian/jsurf-alggeo.jlibs
new file mode 100644
index 0000000..094e172
--- /dev/null
+++ b/debian/jsurf-alggeo.jlibs
@@ -0,0 +1 @@
+jsurf-alggeo.jar
diff --git a/debian/jsurf-alggeo.links b/debian/jsurf-alggeo.links
new file mode 100644
index 0000000..d57339a
--- /dev/null
+++ b/debian/jsurf-alggeo.links
@@ -0,0 +1 @@
+usr/share/java/jsurf-alggeo.jar usr/bin/jsurf-alggeo
diff --git a/debian/jsurf-alggeo.manifest b/debian/jsurf-alggeo.manifest
new file mode 100644
index 0000000..8d53c3c
--- /dev/null
+++ b/debian/jsurf-alggeo.manifest
@@ -0,0 +1,3 @@
+usr/share/java/jsurf-alggeo.jar:
+ Main-Class: de.mfo.jsurf.Main
+ Debian-Java-Home: /usr/lib/jvm/default-java
diff --git a/debian/jsurf-alggeo.manpages b/debian/jsurf-alggeo.manpages
new file mode 100644
index 0000000..5041832
--- /dev/null
+++ b/debian/jsurf-alggeo.manpages
@@ -0,0 +1 @@
+jsurf-alggeo.1
diff --git a/debian/jsurf-alggeo.poms b/debian/jsurf-alggeo.poms
new file mode 100644
index 0000000..cef01ba
--- /dev/null
+++ b/debian/jsurf-alggeo.poms
@@ -0,0 +1 @@
+debian/poms/jsurf-alggeo.pom --no-parent --usj-name=jsurf-alggeo
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..9278bb0
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+##* * * s/.*/debian/ *
diff --git a/debian/patches/debianization-documentation.patch b/debian/patches/debianization-documentation.patch
new file mode 100644
index 0000000..f0ad895
--- /dev/null
+++ b/debian/patches/debianization-documentation.patch
@@ -0,0 +1,25 @@
+Description: debianization -- documentation
+ Address Debian Policy requirements for documentation.
+ This is a Debian centric patch.
+Origin: debian
+Forwarded: not-needed
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2015-09-05
+
+--- /dev/null
++++ b/examples/Makefile
+@@ -0,0 +1,14 @@
++PKGDOCDIR ?= /usr/share/doc/jsurf-alggeo
++PKGEXAMPLESDIR = $(PKGDOCDIR)/examples
++
++JSURFSCRIPTS = $(wildcard *.jsurf)
++
++default:
++
++install:
++ $(INSTALL) -d $(DESTDIR)$(PKGEXAMPLESDIR)
++ $(INSTALL) -m 644 -t $(DESTDIR)$(PKGEXAMPLESDIR) $(JSURFSCRIPTS)
++ rdfind -outputname /dev/null -removeidentinode false -makesymlinks true $(DESTDIR)$(PKGDOCDIR)
++ symlinks -r -c -s -v $(DESTDIR)$(PKGDOCDIR)
++
++INSTALL ?= /usr/bin/install
diff --git a/debian/patches/debianization.patch b/debian/patches/debianization.patch
new file mode 100644
index 0000000..a233b5d
--- /dev/null
+++ b/debian/patches/debianization.patch
@@ -0,0 +1,19 @@
+Description: debianization
+ Meant to maintain a minimal debian/rules, to fix warnings,
+ to address Debian specific stuff in general.
+Origin: debian
+Forwarded: not-needed
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2015-09-07
+
+--- a/src/main/java/de/mfo/jsurf/Main.java
++++ b/src/main/java/de/mfo/jsurf/Main.java
+@@ -38,7 +38,7 @@
+ import de.mfo.jsurf.util.FileFormat;
+
+ public class Main {
+- public static final String PROGRAM_NAME = "jsurf";
++ public static final String PROGRAM_NAME = "jsurf-alggeo";
+
+ private static Options options = new Options();
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1f9a743
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+upstream-java2help2man.patch
+debianization.patch
+debianization-documentation.patch
diff --git a/debian/patches/upstream-java2help2man.patch b/debian/patches/upstream-java2help2man.patch
new file mode 100644
index 0000000..d04755c
--- /dev/null
+++ b/debian/patches/upstream-java2help2man.patch
@@ -0,0 +1,170 @@
+Description: format usages and helps
+ Attempt to format and harmonize the help message of jsurf-alggeo front-end
+ programs wrt UN*X customs in view to employ help2man to generate manpages;
+ meant to be submitted to the upstream maintainer.
+Origin: debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2015-09-06
+
+--- a/src/main/java/de/mfo/jsurf/Main.java
++++ b/src/main/java/de/mfo/jsurf/Main.java
+@@ -37,7 +37,10 @@
+ import de.mfo.jsurf.rendering.cpu.CPUAlgebraicSurfaceRenderer.AntiAliasingMode;
+ import de.mfo.jsurf.util.FileFormat;
+
+-public class Main {
++public class Main {
++ public static final String PROGRAM_NAME = "jsurf";
++
++ private static Options options = new Options();
+
+ static int size = 100;
+ static AntiAliasingMode aam;
+@@ -64,45 +67,52 @@
+ AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
+ return op.filter(bi, null);
+ }
+-
++
++ private static void help ( int exit_value )
++ {
++ HelpFormatter formatter = new HelpFormatter();
++ formatter.setSyntaxPrefix("Usage: ");
++ String cmd_line_syntax = PROGRAM_NAME + " [options] jsurf_script";
++ String help_header = PROGRAM_NAME + " is a renderer for algebraic geometric surfaces. "
++ + "If - is specified as a filename the jsurf script is read from standard input.";
++ String help_footer = "";
++ formatter.printHelp( cmd_line_syntax, help_header, options, help_footer );
++ System.exit( exit_value );
++ }
++
+ /**
+ * @param args
+ */
+- public static void main(String[] args) {
+-
++ public static void main(String[] args) {
++
+ String jsurf_filename = "";
+ String output_filename = null;
+-
+- Options options = new Options();
+-
++
+ options.addOption("s","size", true, "width (and height) of a image (default: " + size + ")");
+ options.addOption("q","quality",true,"quality of the rendering: 0 (low), 1 (medium, default), 2 (high), 3 (extreme)");
+- options.addOption("o","output",true,"output PNG into this file (- means standard output. Use ./- to denote a file literally named -.)");
++ options.addOption("o","output",true,"output PNG into this file (- means standard output)");
++ options.addOption("h","help",false,"display this help and exit");
++
++ CommandLineParser parser = new PosixParser();
+
+- CommandLineParser parser = new PosixParser();
+- HelpFormatter formatter = new HelpFormatter();
+- String cmd_line_syntax = "jsurf [options] jsurf_file";
+- String help_header = "jsurf is a renderer for algebraic surfaces. If - is specified as a filename the jsurf file is read from standard input. " +
+- "Use ./- to denote a file literally named -.";
+- String help_footer = "";
+ try
+ {
+ CommandLine cmd = parser.parse( options, args );
+-
++
++ if( cmd.hasOption( "help" ) )
++ help( 0 );
++
+ if( cmd.getArgs().length > 0)
+ jsurf_filename = cmd.getArgs()[ 0 ];
+ else
+- {
+- formatter.printHelp( cmd_line_syntax, help_header, options, help_footer );
+- return;
+- }
+-
++ help( 0 );
++
+ if( cmd.hasOption( "output" ) )
+ output_filename = cmd.getOptionValue("output");
+-
++
+ if( cmd.hasOption("size") )
+ size = Integer.parseInt( cmd.getOptionValue("size") );
+-
++
+ int quality = 1;
+ if( cmd.hasOption("quality") )
+ quality = Integer.parseInt( cmd.getOptionValue( "quality" ) );
+@@ -125,16 +135,16 @@
+ aap = AntiAliasingPattern.QUINCUNX;
+ }
+ }
+- catch( ParseException exp ) {
++ catch( ParseException exp )
++ {
+ System.out.println( "Unexpected exception:" + exp.getMessage() );
+ System.exit( -1 );
+ }
+ catch( NumberFormatException nfe )
+- {
+- formatter.printHelp( cmd_line_syntax, help_header, options, help_footer );
+- System.exit( -1 );
+- }
+-
++ {
++ help( -1 );
++ }
++
+ try
+ {
+ Properties jsurf = new Properties();
+@@ -142,25 +152,24 @@
+ jsurf.load( System.in );
+ else
+ jsurf.load( new FileReader( jsurf_filename ) );
+- FileFormat.load( jsurf, asr );
++ FileFormat.load( jsurf, asr );
+ }
+- catch( Exception e )
++ catch( Exception e )
+ {
+- System.err.println( "Unable to read jsurf file " + jsurf_filename );
++ System.err.println( "Unable to read jsurf script " + jsurf_filename );
+ e.printStackTrace();
+ System.exit( -2 );
+ }
+-
++
+ asr.setAntiAliasingMode( aam );
+ asr.setAntiAliasingPattern( aap );
+-
++
+ BufferedImage bi = null;
+ try
+ {
+ ImgBuffer ib = new ImgBuffer( size, size );
+ asr.draw( ib.rgbBuffer, size, size );
+ bi = flipV( createBufferedImageFromRGB( ib ) );
+-
+ }
+ catch( Exception e )
+ {
+@@ -168,7 +177,7 @@
+ e.printStackTrace();
+ System.exit( -3 );
+ }
+-
++
+ if( output_filename != null )
+ {
+ // save to file
+@@ -191,8 +200,8 @@
+ }
+ else
+ {
+- // display the image in a window
+- final String window_title = "jsurf: " + jsurf_filename;
++ // display the image in a window
++ final String window_title = PROGRAM_NAME + ": " + jsurf_filename;
+ final BufferedImage window_image = bi;
+ SwingUtilities.invokeLater( new Runnable() {
+ public void run()
diff --git a/debian/poms/jsurf-alggeo.pom b/debian/poms/jsurf-alggeo.pom
new file mode 100644
index 0000000..5e9fb44
--- /dev/null
+++ b/debian/poms/jsurf-alggeo.pom
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>de.mfo.jsurf</groupId>
+ <artifactId>jsurf</artifactId>
+ <version>0.1.4</version>
+ <dependencies>
+ <dependency>
+ <groupId>javax</groupId>
+ <artifactId>vecmath</artifactId>
+ <version>1.2.0-hiranabe</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr-runtime</artifactId>
+ <version>3.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-cli</groupId>
+ <artifactId>commons-cli</artifactId>
+ <version>1.2</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..936c52e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+export DEB_PKG_VERSION = $(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/Version: //p')
+
+export JAVA_HOME ?= /usr/lib/jvm/default-java
+export CLASSPATH = /usr/share/java/vecmath.jar:/usr/share/java/antlr3-runtime.jar:/usr/share/java/commons-cli.jar
+
+export JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF8
+
+default:
+ @uscan --no-conf --dehs --report || true
+
+%:
+ dh $@ --with javahelper --with jh_maven_repo_helper
+
+override_jh_build-indep:
+ jh_build --javacopts="-source 1.7 -target 1.7" --javadoc-opts="-source 1.7"
+
+override_dh_auto_install-indep:
+ $(MAKE) -C examples install DESTDIR=$(CURDIR)/debian/tmp
+
+override_dh_installman-indep:
+
+override_jh_installlibs-indep:
+ jh_installlibs -i -v --version-strip=+ds
+
+override_jh_exec:
+ jh_exec
+ $(MAKE) -f debian/adhoc/Makefile manpages
+ dh_installman -i
+
+override_dh_compress-indep:
+ dh_compress -Xexamples
+
+get-orig-source:
+ uscan --no-conf --download-current-version --compression xz --verbose
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8b06cb1
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1 @@
+debian-watch-may-check-gpg-signature
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/tests/compose-examples b/debian/tests/compose-examples
new file mode 100755
index 0000000..58981c7
--- /dev/null
+++ b/debian/tests/compose-examples
@@ -0,0 +1,21 @@
+#!/bin/sh
+# autopkgtest check: compose image examples
+set -ue
+cd $ADTTMP
+
+cp -prd /usr/share/doc/jsurf-alggeo/examples .
+cd examples
+
+make OPT_SIZE=512 OPT_QUALITY=0
+make clean
+
+make OPT_SIZE=512 OPT_QUALITY=1
+make clean
+
+make OPT_SIZE=512 OPT_QUALITY=2
+make clean
+
+make OPT_SIZE=512 OPT_QUALITY=3
+make clean
+
+exit 0
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8c07e2e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,8 @@
+Tests: compose-examples
+Depends: make, jsurf-alggeo
+
+Tests: make-TestJSurf
+Depends: xvfb, xauth, junit4, jsurf-alggeo
+
+#Tests: make-RotationGrid
+#Depends: jsurf-alggeo
diff --git a/debian/tests/make-RotationGrid b/debian/tests/make-RotationGrid
new file mode 100755
index 0000000..e3672fb
--- /dev/null
+++ b/debian/tests/make-RotationGrid
@@ -0,0 +1,22 @@
+#!/bin/sh
+# autopkgtest check: compose image examples
+set -ue
+cd $ADTTMP
+
+cp -p /usr/share/doc/jsurf-alggeo/examples/fantasy_zitrus.jsurf .
+
+cat > AdHocJob.java << EOJS
+public class AdHocJob {
+ public static void main(String[] argv) {
+ de.mfo.jsurf.grid.RotationGrid.main(argv);
+ }
+ }
+EOJS
+
+export CLASSPATH=/usr/share/java/jsurf-alggeo.jar:
+
+javac AdHocJob.java
+
+java AdHocJob --output fantasy_zitrus.png fantasy_zitrus.jsurf
+
+exit 0
diff --git a/debian/tests/make-TestJSurf b/debian/tests/make-TestJSurf
new file mode 100755
index 0000000..5fa510b
--- /dev/null
+++ b/debian/tests/make-TestJSurf
@@ -0,0 +1,43 @@
+#!/bin/sh
+# autopkgtest check: compose image examples
+set -ue
+
+cp -p src/test/java/de/mfo/jsurf/test/TestJSurf.java $ADTTMP
+cp -p src/test/resources/de/mfo/jsurf/test/* $ADTTMP
+
+cd $ADTTMP
+
+sed -i -e 's|^package \(.*\)$|//pacakge \1|g;s|t < 200|t < 5003|' TestJSurf.java
+
+cat > JUnitJob.java << EOJS
+import org.junit.runner.JUnitCore;
+import org.junit.runner.Result;
+import org.junit.runner.notification.Failure;
+
+public class JUnitJob {
+ public static void main(String[] args) {
+
+ Result result = JUnitCore.runClasses(TestJSurf.class);
+ for (Failure fail : result.getFailures()) {
+ System.out.println(fail.toString());
+ }
+ if (result.wasSuccessful()) {
+ System.out.println("PASS");
+ System.exit(0);
+ }
+ else {
+ System.out.println("FAIL");
+ System.exit(1);
+ }
+
+ }
+ }
+EOJS
+
+export CLASSPATH=/usr/share/java/jsurf-alggeo.jar:/usr/share/java/junit4.jar:/usr/share/java/hamcrest-core.jar:
+
+javac JUnitJob.java TestJSurf.java
+
+xvfb-run --auto-servernum --server-num=1 java JUnitJob
+
+exit 0
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8969181
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+ds//,repacksuffix=+ds,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/jsurf-alggeo-$1\.tar\.gz/ \
+https://github.com/IMAGINARY/jsurf/releases .*/v?(\d+\.\d+\.\d+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/jsurf-alggeo.git
More information about the debian-science-commits
mailing list