[med-svn] [r-cran-mockery] 02/02: Initial packaging
Andreas Tille
tille at debian.org
Fri Nov 24 16:50:12 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-mockery.
commit 90493a5801f2e8048bad93e5ad9551b160ac79e6
Author: Andreas Tille <tille at debian.org>
Date: Fri Nov 24 17:43:58 2017 +0100
Initial packaging
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 28 ++++++++++++++++++++++++++++
debian/copyright | 32 ++++++++++++++++++++++++++++++++
debian/docs | 2 ++
debian/rules | 5 +++++
debian/source/format | 1 +
debian/tests/control | 5 +++++
debian/tests/run-unit-test | 17 +++++++++++++++++
debian/watch | 2 ++
10 files changed, 98 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..576e05f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-mockery (0.4.1-1) UNRELEASED; urgency=medium
+
+ * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org> Fri, 24 Nov 2017 17:40:41 +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..c94a62d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: r-cran-mockery
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 10),
+ dh-r,
+ r-base-dev,
+ r-cran-testthat
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/r-cran-mockery.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/r-cran-mockery.git
+Homepage: https://cran.r-project.org/package=mockery
+
+Package: r-cran-mockery
+Architecture: all
+Depends: ${R:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: mocking library for GNU R
+ The two main functionalities of this package are creating mock
+ objects (functions) and selectively intercepting calls to a given
+ function that originate in some other function. It can be used
+ with any testing framework available for R. Mock objects can
+ be injected with either this package's own stub() function or a
+ similar with_mock() facility present in the testthat package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ae07329
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mockery
+Upstream-Contact: Noam Finkelstein <noam.finkelstein at jhu.edu>
+Source: https://cran.r-project.org/package=mockery
+
+Files: *
+Copyright: 2015-2017 Noam Finkelstein, Lukasz Bartnik
+License: MIT
+
+Files: debian/*
+Copyright: 2017 Andreas Tille <tille at debian.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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..d6849ad
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+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..b76b0fa
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=mockery
+debname=r-cran-mockery
+
+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/watch b/debian/watch
new file mode 100644
index 0000000..3b6f24b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/mockery_([-\d.]*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-mockery.git
More information about the debian-med-commit
mailing list