[r-cran-rgenoud] 02/04: Initial packaging

Andreas Tille tille at debian.org
Fri Oct 20 07:02:25 UTC 2017


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

tille pushed a commit to branch master
in repository r-cran-rgenoud.

commit 4dedea1b5338b9152b0535d3533d8aacb17cebef
Author: Andreas Tille <tille at debian.org>
Date:   Fri Oct 20 08:56:33 2017 +0200

    Initial packaging
---
 debian/changelog           |  5 +++++
 debian/compat              |  1 +
 debian/control             | 21 +++++++++++++++++++++
 debian/copyright           | 27 +++++++++++++++++++++++++++
 debian/docs                |  2 ++
 debian/rules               |  5 +++++
 debian/source/format       |  1 +
 debian/tests/control       |  9 +++++++++
 debian/tests/run-unit-test | 17 +++++++++++++++++
 debian/tests/vignette      |  7 +++++++
 debian/watch               |  2 ++
 11 files changed, 97 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a8d3cb7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-rgenoud (5.7-12.4-1) UNRELEASED; urgency=medium
+
+  * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org>  Fri, 20 Oct 2017 08:48:19 +0200
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..a3bc005
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: r-cran-rgenoud
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-r
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-rgenoud.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/r-cran-rgenoud.git
+Homepage: https://cran.r-project.org/package=rgenoud
+
+Package: r-cran-rgenoud
+Architecture: any
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: R Version of GENetic Optimization Using Derivatives
+ A genetic algorithm plus derivative optimizer.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..15230ba
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rgenoud
+Upstream-Contact: Jasjeet Singh Sekhon <sekhon at berkeley.edu>
+Source: https://cran.r-project.org/package=rgenoud
+
+Files: *
+Copyright: 2008-2015 Walter R. Mebane, Jr. <wmebane at umich.edu>,
+                     Jasjeet Singh Sekhon <sekhon at berkeley.edu>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2017 Andreas Tille <tille at debian.org>
+License: GPL-3+
+
+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.
+ .
+ On Debian systems you can find the full text of the GNU General Public
+ License version 3 at /usr/share/common-licenses/GPL-3.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..67ce40b
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+debian/tests/run-unit-test
+tests
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..cc500cf
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,9 @@
+Tests: vignette
+Depends: @
+Restrictions: allow-stderr
+
+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..43ad509
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=rgenoud
+debname=r-cran-rgenoud
+
+if [ "$ADTTMP" = "" ] ; then
+    ADTTMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
+    trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/$debname/tests/* $ADTTMP
+gunzip -r *
+for testfile in *.R; do
+    echo "BEGIN TEST $testfile"
+    LC_ALL=C R --no-save < $testfile
+done
+
diff --git a/debian/tests/vignette b/debian/tests/vignette
new file mode 100644
index 0000000..fdf4c2b
--- /dev/null
+++ b/debian/tests/vignette
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+for vignette in $(find vignettes -iname '*.rnw' -or -iname '*.rmd'); do
+    echo "BEGIN VIGNETTE $vignette"
+    LC_ALL=C R CMD Sweave $vignette
+done
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a9bb5c7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/rgenoud_([-\d.]*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-rgenoud.git



More information about the debian-science-commits mailing list