[r-cran-spdep] 10/26: Upgrade packaging and add autopkgtest
Sébastien Villemot
sebastien at debian.org
Sun Nov 19 15:23:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository r-cran-spdep.
commit 90b2ecbdfac6c94bb4511a4d1071c808f144f365
Author: Andreas Tille <tille at debian.org>
Date: Tue Nov 10 13:33:13 2015 +0000
Upgrade packaging and add autopkgtest
---
debian/README.test | 8 ++++++++
debian/changelog | 4 ++--
debian/control | 6 +++---
debian/copyright | 13 ++-----------
debian/docs | 2 ++
debian/examples | 1 +
debian/patches/series | 1 +
debian/patches/use_libjs_mathjax.patch | 15 +++++++++++++++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 18 ++++++++++++++++++
10 files changed, 55 insertions(+), 16 deletions(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+ sh run-unit-test
+
+in this directory.
diff --git a/debian/changelog b/debian/changelog
index 64e6fb7..6c7046d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-r-cran-spdep (0.5-74-1) unstable; urgency=low
+r-cran-spdep (0.5-88-1) unstable; urgency=low
* Initial release (Closes: #752876).
- -- Andreas Tille <tille at debian.org> Mon, 23 Jun 2014 09:24:05 +0200
+ -- Andreas Tille <tille at debian.org> Tue, 10 Nov 2015 14:04:08 +0100
diff --git a/debian/control b/debian/control
index b090e64..5191218 100644
--- a/debian/control
+++ b/debian/control
@@ -1,8 +1,8 @@
Source: r-cran-spdep
-Section: gnu-r
-Priority: optional
Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
Build-Depends: debhelper (>= 9.0),
cdbs,
r-base-dev,
@@ -14,7 +14,7 @@ Build-Depends: debhelper (>= 9.0),
r-cran-nlme,
r-cran-mass,
r-cran-learnbayes
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/R/r-cran-spdep/trunk/
Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/R/r-cran-spdep/trunk/
Homepage: http://cran.r-project.org/web/packages/spdep/
diff --git a/debian/copyright b/debian/copyright
index 81320b1..c008af2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -39,8 +39,7 @@ Copyright: 1994-1999 W. N. Venables and B. D. Ripley
2001-2003 Roger Bivand
License: GPL-2+
-Files: src/dfs_comp.c
- src/gabriel.c
+Files: src/gabriel.c
src/relative.c
R/components.R
R/gabrielneigh.R
@@ -54,14 +53,6 @@ Files: src/dfs_comp.c
Copyright: 2001 Nicholas Lewin-Koh
License: GPL-2+
-Files: src/soigraph.c
-Copyright: 2001 Nicholas Lewin-Koh
-License: GPL-2+
-Remark: The subroutines TwoCirclesxx and SubVec are adapted for R and Double
- precision coordinates by Nicholas Lewin-Koh, from Computational Geometry in
- C, Joseph O.Rourke, Cambridge University Press (1998). Copyright for those
- subroutines remains his.
-
Files: R/lag.spsarlm.R
Copyright: 1998-2002 Roger Bivand and Andrew Bernat
License: GPL-2+
@@ -94,7 +85,7 @@ Files: R/SpatialFiltering.R
Copyright: 2005 Yongwan Chun, Michael Tiefelsdorf and Roger Bivand
License: GPL-2+
-Files: src/soigraph.c
+Files: R/bptest.sarlm.R
Copyright: 1998 Joseph O'Rourke <orourke at cs.smith.edu>
License: freelyredistributable
This code may be freely redistributed in its entirety provided that this
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..9a4f4f8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..18244c8
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+vignettes
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..16b17ee
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_libjs_mathjax.patch
diff --git a/debian/patches/use_libjs_mathjax.patch b/debian/patches/use_libjs_mathjax.patch
new file mode 100644
index 0000000..e2d9eac
--- /dev/null
+++ b/debian/patches/use_libjs_mathjax.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 10 Nov 2015 14:04:08 +0100
+Description: Avoid privacy breach by using local MathJax
+
+--- a/inst/doc/nb_igraph.html
++++ b/inst/doc/nb_igraph.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ </script>
+
+
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..7e4705a
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+oname=LearnBayes
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+gunzip *.gz
+for rnw in `ls *.[rR]nw` ; do
+rfile=`echo $rnw | sed 's/\.[rR]nw/.R/'`
+R --no-save <<EOT
+ Stangle("$rnw")
+ source("$rfile", echo=TRUE)
+EOT
+done
+rm -rf *
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-spdep.git
More information about the debian-science-commits
mailing list