[Git][java-team/tcode][master] 10 commits: Add autopkgtests
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sun Jul 11 08:36:33 BST 2021
Nilesh Patra pushed to branch master at Debian Java Maintainers / tcode
Commits:
74fa27c6 by Nilesh Patra at 2021-07-11T12:16:54+05:30
Add autopkgtests
- - - - -
7095e1fc by Nilesh Patra at 2021-07-11T12:20:14+05:30
d/p/reproducible: Remove build date from doc to make build reproducible
- - - - -
51c0bdac by Nilesh Patra at 2021-07-11T12:46:05+05:30
Declare compliance with policy 4.5.1
- - - - -
303fccda by Nilesh Patra at 2021-07-11T12:46:05+05:30
Drop compat, switch to debhelper-compat 13
- - - - -
fca69c5b by Nilesh Patra at 2021-07-11T12:46:05+05:30
Add "Rules-Requires-Root: no"
- - - - -
10d74b2b by Nilesh Patra at 2021-07-11T12:46:05+05:30
Bump watch file version to 4
- - - - -
ed58593a by Nilesh Patra at 2021-07-11T12:46:05+05:30
Minor fixes
- - - - -
669cb04b by Nilesh Patra at 2021-07-11T12:46:05+05:30
Migrate to secure urls (s/http/https/)
- - - - -
49fe764e by Nilesh Patra at 2021-07-11T12:52:37+05:30
Add d/salsa-ci.yml
- - - - -
96587232 by Nilesh Patra at 2021-07-11T12:52:37+05:30
Interim changelog entry
- - - - -
13 changed files:
- debian/changelog
- − debian/compat
- debian/control
- debian/copyright
- + debian/examples
- + debian/patches/reproducible
- debian/patches/series
- debian/rules
- + debian/salsa-ci.yml
- + debian/tests/control
- + debian/tests/example-texjava.java
- + debian/tests/run-unit-test
- debian/watch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,18 @@
+tcode (0.1.20080918-4) UNRELEASED; urgency=medium
+
+ * Team Upload.
+ * Add autopkgtests (Closes: #990768)
+ * d/p/reproducible: Remove build date from
+ doc to make build reproducible (Closes: #990770)
+ * Declare compliance with policy 4.5.1
+ * Drop compat, switch to debhelper-compat 13
+ * Add "Rules-Requires-Root: no"
+ * Bump watch file version to 4
+ * Migrate to secure urls (s/http/https/)
+ * Add d/salsa-ci.yml
+
+ -- Nilesh Patra <nilesh at debian.org> Sun, 11 Jul 2021 12:52:09 +0530
+
tcode (0.1.20080918-3) unstable; urgency=medium
* Point Vcs-fields to Salsa
=====================================
debian/compat deleted
=====================================
@@ -1 +0,0 @@
-11
=====================================
debian/control
=====================================
@@ -4,17 +4,18 @@ Uploaders: Tim Booth <tbooth at ceh.ac.uk>,
Andreas Tille <tille at debian.org>
Section: java
Priority: optional
-Build-Depends: debhelper (>= 11~),
+Build-Depends: debhelper-compat (= 13),
default-jdk,
ant,
latex2html,
texlive-latex-base,
texlive-latex-extra,
texlive-bibtex-extra
-Standards-Version: 4.1.4
+Standards-Version: 4.5.1
Vcs-Browser: https://salsa.debian.org/java-team/tcode
Vcs-Git: https://salsa.debian.org/java-team/tcode.git
-Homepage: http://www.iro.umontreal.ca/~simardr/ssj/ssj-source.html
+Homepage: https://www.iro.umontreal.ca/~simardr/ssj/ssj-source.html
+Rules-Requires-Root: no
Package: tcode
Architecture: all
=====================================
debian/copyright
=====================================
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Tcode
Source: http://www.iro.umontreal.ca/~simardr/ssj/tcode-20080917.zip
Comment: TCode is distributed along with SSJ
@@ -10,9 +10,9 @@ Remark: Since this code is distributed together with SSJ, this license
statement is valid also here:
www.iro.umontreal.ca/~simardr/ssj/
which links to
- http://www.iro.umontreal.ca/~simardr/ssj/ssj-licence.html
- The upstream auther confirmed GPL-3 in public at
- http://lists.alioth.debian.org/pipermail/debian-med-packaging/2014-April/026143.html
+ https://www.iro.umontreal.ca/~simardr/ssj/ssj-licence.html
+ The upstream author confirmed GPL-3 in public at
+ https://alioth-lists.debian.net/pipermail/debian-med-packaging/2014-April/026143.html
Files: debian/*
Copyright: 2014 Tim Booth <tbooth at ceh.ac.uk>,
=====================================
debian/examples
=====================================
@@ -0,0 +1 @@
+debian/tests/example-texjava.java
=====================================
debian/patches/reproducible
=====================================
@@ -0,0 +1,21 @@
+Description: Do not vendor build date to make build reproducible
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2021-07-11
+--- a/tcode.tex
++++ b/tcode.tex
+@@ -5,7 +5,6 @@
+ \usepackage{tcode}
+
+ \mytwoheads
+-\dateheadtrue
+ \tolerance=500
+ \textwidth=6.5in
+ \textheight=9.5in
+@@ -33,7 +32,6 @@
+ {\Large\bf TCode} \\[20pt]
+ {\Large\bf User Guide } \\[20pt]
+ {\Large\bf Tools for documenting Java programs in \LaTeX }\\[15pt]
+- Version: \today \\
+ \vfill\vfill
+ \end {center}
+
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
fix_interpreter
+reproducible
=====================================
debian/rules
=====================================
@@ -9,7 +9,7 @@
export JAVA_HOME=/usr/lib/jvm/default-java
%:
- dh $@
+ dh $@
override_dh_auto_clean:
ant cleanbuild cleanlib cleandoc
=====================================
debian/salsa-ci.yml
=====================================
@@ -0,0 +1,4 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, default-jdk-headless
+Restrictions: allow-stderr
=====================================
debian/tests/example-texjava.java
=====================================
@@ -0,0 +1,52 @@
+\defclass{Complex}
+This class allows one to work with complex numbers of
+the form $a + bi$, where $a$ is the \emph{real} part of
+the number, \emph{b} is the imaginary part and
+$i=\sqrt{-1}$.
+\bigskip\hrule\bigskip
+\begin{code}
+public class Complex\begin{hide} {
+private double realPart;
+private double imagPart;\end{hide}
+public Complex (double realPart, double imagPart)\begin{hide} {
+this.realPart = realPart;
+this.imagPart = imagPart;
+}\end{hide}
+\end{code}
+\begin{tabb} Constructs a new {\tt Complex} number.
+\param{realPart}{The real part corresponding to $a$}
+\param{imagPart}{The imaginary part corresponding to $b$}
+\end{tabb}
+\begin{code}
+public Complex add (Complex c)\begin{hide} {
+realPart += c.realPart;
+imagPart += c.realPart;
+return this;
+}\end{hide}
+
+\end{code}
+\begin{tabb} Adds two complex numbers.
+\param{c}{The complex number to add to this one.}
+\return{This object, allowing to perform more than one operation
+on a single line of code.}
+\end{tabb}
+\begin{code}
+// other methods...
+public String toString()\begin{hide} {
+return "(" + realPart + " + " + imagPart + "i)";
+}
+// Test code
+public static void main(String[] args) {
+ Complex c1 = new Complex(1, 2);
+ Complex c2 = new Complex(2, 3);
+ assert c1.add(c2).toString().equals("(3.0 + 4.0i)");
+ System.out.println("PASS");
+}
+}\end{hide}
+\end{code}
+\begin{tabb}
+ Converts the number to a {\tt String} of
+the form {\tt a + bi}.
+\end{tabb}
+
+
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+pkg=tcode
+CUR_DIR=`pwd`
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+cd "${AUTOPKGTEST_TMP}"
+
+# Running texjava
+texjava -savelatex example-texjava.java Complex.java
+
+# Verify that the latex part indeed is saved
+fgrep -q "This class allows one to work with complex numbers of" Complex.java
+
+# Running the code
+javac Complex.java
+java -enableassertions Complex
+
+# Cleanup
+rm -f Complex*
=====================================
debian/watch
=====================================
@@ -1,3 +1,3 @@
-version=3
+version=4
opts="uversionmangle=s/^/0.1./" \
-http://www.iro.umontreal.ca/~simardr/ssj/ssj-source.html tcode-(.*)\.zip
+https://www.iro.umontreal.ca/~simardr/ssj/ssj-source.html tcode-(.*)\.zip
View it on GitLab: https://salsa.debian.org/java-team/tcode/-/compare/2c200f51e4fe896bcbf6423dd1dc2341e77bbef7...965872324369d713760fcdd66ab912610f88958f
--
View it on GitLab: https://salsa.debian.org/java-team/tcode/-/compare/2c200f51e4fe896bcbf6423dd1dc2341e77bbef7...965872324369d713760fcdd66ab912610f88958f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210711/63820398/attachment.htm>
More information about the pkg-java-commits
mailing list