[r-cran-rprotobuf] 01/01: Added debian/ directory contents

Jonathon Love jon at thon.cc
Thu Apr 21 10:08:24 UTC 2016


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

jonathon-guest pushed a commit to branch master
in repository r-cran-rprotobuf.

commit ab32e52588fe43b06107ddcdea20a2151f95663a
Author: Jonathon Love <jon at thon.cc>
Date:   Thu Apr 21 20:03:40 2016 +1000

    Added debian/ directory contents
---
 debian/README.source       |  8 ++++++++
 debian/README.test         |  9 +++++++++
 debian/changelog           |  6 ++++++
 debian/compat              |  1 +
 debian/control             | 30 ++++++++++++++++++++++++++++++
 debian/copyright           | 34 ++++++++++++++++++++++++++++++++++
 debian/rules               |  8 ++++++++
 debian/source/format       |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 20 ++++++++++++++++++++
 debian/watch               |  3 +++
 11 files changed, 123 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..9dcdb02
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+Explanation for binary files inside source package according to
+  http://lists.debian.org/debian-devel/2013/09/msg00332.html
+
+This package contains a vignette table of contents, encoded as an R data.frame
+
+Files: build/vignette.rds
+  A vignette table of contents, encoded as an R data.frame
+
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..ab9ca74
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+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
new file mode 100644
index 0000000..7689044
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+r-cran-rprotobuf (0.4.3-1) unstable; urgency=low
+
+  * Initial release. (Closes: #822090)
+
+ -- Jonathon Love <jon at thon.cc>  Thu, 21 Apr 2016 16:40:47 +1000
+
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..b0b6cdc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: r-cran-rprotobuf
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jonathon Love <jon at thon.cc>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cdbs,
+               r-base-dev,
+               r-cran-rcpp,
+               r-cran-rcurl,
+               libprotobuf-dev,
+               libprotoc-dev
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-rprotobuf.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/r-cran-rprotobuf.git
+Homepage: http://cran.r-project.org/package=RProtoBuf
+
+Package: r-cran-rprotobuf
+Architecture: any
+Depends: ${R:Depends},
+         ${misc:Depends},
+         ${shlibs:Depends},
+         r-base,
+         r-cran-rcpp,
+         r-cran-rcurl
+Description: GNU R package providing an interface to the Protocol Buffers API
+ r-cran-protobuf is a GNU R package providing an interface to the
+ Protocol Buffers API. Protocol Buffers are a way of encoding structured
+ data in an efficient yet extensible format. Google uses Protocol Buffers
+ for almost all of its internal RPC protocols and file formats.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3c894c6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: RProtoBuf
+Upstream-Contact: Dirk Eddelbuettel <edd at debian.org>
+Source: http://cran.r-project.org/web/packages/RProtoBuf
+
+Files: *
+Copyright: 2010-2015 Romain Francois, Dirk Eddelbuettel, Murray Stokely, Jeroen Ooms
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2016 Jonathon Love <jon at thon.cc>
+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.
+ .
+ You should have received a copy of the GNU General Public
+ License along with this package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6f03015
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+include /usr/share/R/debian/r-cran.mk
+
+install/$(package)::
+	chmod -x $(debRlib)/RProtoBuf/unitTests/runit.addressbook.R
+	chmod -x $(debRlib)/RProtoBuf/unitTests/runit.bytes.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..25377fc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..f4d0cea
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+pkg=r-cran-rprotobuf
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip -r *.gz
+for runtest in `ls *.R` ; do
+   LC_ALL=C R --no-save < $runtest >/dev/null
+   if [ ! $? ] ; then
+     echo "Test ${runtest} failed"
+     exit 1
+   else
+     echo "Test ${runtest} passed"
+   fi
+done
+rm -rf $ADTTMP/*
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..98478bc
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://cran.r-project.org/src/contrib/RProtoBuf_([\d\.-]*).tar.gz
+

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



More information about the debian-science-commits mailing list