[r-cran-modelmetrics] 02/02: Add debian packaging
Andreas Tille
tille at debian.org
Tue Nov 29 14:17:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository r-cran-modelmetrics.
commit 85374ebaae8d54131b4b22a12191ce1518364cad
Author: Andreas Tille <tille at debian.org>
Date: Tue Nov 29 15:16:59 2016 +0100
Add debian packaging
---
debian/README.test | 9 +++++++++
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 25 +++++++++++++++++++++++++
debian/copyright | 29 +++++++++++++++++++++++++++++
debian/docs | 3 +++
debian/rules | 5 +++++
debian/source/format | 1 +
debian/tests/control | 3 +++
debian/tests/run-unit-test | 13 +++++++++++++
debian/watch | 2 ++
11 files changed, 96 insertions(+)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..8d70ca3
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+cd tests
+LC_ALL=C R --no-save < testthat.R
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1d32052
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-modelmetrics (1.1.0-1) UNRELEASED; urgency=medium
+
+ * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org> Tue, 29 Nov 2016 14:51:04 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..605d4b2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: r-cran-modelmetrics
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Balint Reczey <balint at balintreczey.hu>,
+ Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 10),
+ dh-r,
+ r-base-dev,
+ r-cran-rcpp
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-modelmetrics.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/r-cran-modelmetrics.git
+Homepage: https://cran.r-project.org/package=ModelMetrics
+
+Package: r-cran-modelmetrics
+Architecture: any
+Depends: ${R:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: GNU R Rapid Calculation of Model Metrics
+ This GNU R package provides a collection of metrics for evaluating models
+ written in C++ using 'Rcpp'.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4a2c632
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ModelMetrics
+Upstream-Contact: Tyler Hunt <thunt at snapfinance.com>
+Source: https://cran.r-project.org/package=ModelMetrics
+
+Files: *
+Copyright: Tyler Hunt
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2016 Andreas Tille <tille at debian.org>
+License: GPL-2+
+
+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.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 is available at /usr/share/common-licenses/GPL-2.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..960011c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+tests
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..529c38a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem R
+
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b044b0c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..b9ff3be
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=ModelMetrics
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+ trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+LC_ALL=C R --no-save < testthat.R
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7541e69
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/ModelMetrics_([-\d.]*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-modelmetrics.git
More information about the debian-science-commits
mailing list