[xtensor] 01/02: Initial debianisation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Apr 6 10:22:05 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository xtensor.

commit 74a7c3e44cd91e8040423aba72ffa6ff95ee78b3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Apr 6 11:13:53 2017 +0100

    Initial debianisation
---
 debian/changelog            |  5 ++++
 debian/compat               |  1 +
 debian/control              | 62 +++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright            | 37 +++++++++++++++++++++++++++
 debian/gbp.conf             |  7 +++++
 debian/rules                | 33 ++++++++++++++++++++++++
 debian/source/format        |  1 +
 debian/tests/control        | 17 +++++++++++++
 debian/watch                |  3 +++
 debian/xtensor-dev.install  |  2 ++
 debian/xtensor-doc.doc-base |  9 +++++++
 debian/xtensor-doc.docs     |  1 +
 12 files changed, 178 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f7505f7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+xtensor (0.8.2-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #858067)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Thu, 06 Apr 2017 11:12:39 +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..b41101f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: xtensor
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: libs
+Priority: optional
+Build-Depends: cmake (>= 3.1),
+               debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
+               googletest <!nocheck>,
+               python3-breathe <!nodoc>,
+               python3-sphinx <!nodoc>,
+               python3-sphinx-rtd-theme <!nodoc>,
+               sphinx-common
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/xtensor.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/xtensor.git
+Homepage: http://quantstack.net/xtensor
+
+Package: xtensor-dev
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: xtensor-doc <!nodoc>
+Description: multi-dimensional arrays with broadcasting and lazy computing
+ xtensor is a C++ library meant for numerical analysis with multi-dimensional
+ array expressions.
+ .
+ xtensor provides:
+ .
+   - an extensible expression system enabling lazy broadcasting.
+   - an API following the idioms of the C++ standard library.
+   - tools to manipulate array expressions and build upon xtensor.
+ .
+ Containers of xtensor are inspired by NumPy, the Python array programming
+ library. In fact, xtensor can be used to process numpy data structures inplace
+ using Python's buffer protocol. For more details on the numpy bindings, check
+ out the xtensor-python project.
+ .
+ This package provides the header-only library.
+
+Package: xtensor-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Description: documentation for xtensor
+ xtensor is a C++ library meant for numerical analysis with multi-dimensional
+ array expressions.
+ .
+ xtensor provides:
+ .
+   - an extensible expression system enabling lazy broadcasting.
+   - an API following the idioms of the C++ standard library.
+   - tools to manipulate array expressions and build upon xtensor.
+ .
+ Containers of xtensor are inspired by NumPy, the Python array programming
+ library. In fact, xtensor can be used to process numpy data structures inplace
+ using Python's buffer protocol. For more details on the numpy bindings, check
+ out the xtensor-python project.
+ .
+ This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3b580d7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: xtensor
+Source: https://github.com/QuantStack/xtensor
+
+Files: *
+Copyright: 2016 Johan Mabille and Sylvain Corlay
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ .
+ 3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c30bda8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+BUILD_OPTIONS = -DXTENSOR_CMAKECONFIG_INSTALL_DIR="lib/cmake/xtensor"
+
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+BUILD_OPTIONS += -DBUILD_TESTS=ON \
+		 -DGTEST_SRC_DIR="/usr/src/googletest"
+else
+BUILD_OPTIONS += -DBUILD_TESTS=OFF
+endif
+
+%:
+	dh $@ --with sphinxdoc
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(BUILD_OPTIONS)
+
+override_dh_auto_build:
+	dh_auto_build
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
+	$(MAKE) -C docs html
+endif
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+	dh_auto_test -- xtest
+endif
+
+override_dh_auto_install:
+	dh_auto_install --destdir=debian/tmp
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..1cb4399
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,17 @@
+Test-Command: set -e
+ ; export CC=gcc CXX=g++
+ ; cp -r test/* "$AUTOPKGTEST_TMP"
+ ; cd "$AUTOPKGTEST_TMP"
+ ; cmake . -DGTEST_SRC_DIR="/usr/src/googletest"
+ ; make xtest
+Depends: cmake, g++, googletest, xtensor-dev
+Restrictions: allow-stderr
+
+Test-Command: set -e
+ ; export CC=clang CXX=clang++
+ ; cp -r test/* "$AUTOPKGTEST_TMP"
+ ; cd "$AUTOPKGTEST_TMP"
+ ; cmake . -DGTEST_SRC_DIR="/usr/src/googletest"
+ ; make xtest
+Depends: clang, cmake, googletest, xtensor-dev
+Restrictions: allow-stderr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f8cb163
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/xtensor-$1\.tar\.gz/ \
+https://github.com/QuantStack/xtensor/tags .*/v?(\d\S*)\.tar\.gz
diff --git a/debian/xtensor-dev.install b/debian/xtensor-dev.install
new file mode 100644
index 0000000..ed71a1d
--- /dev/null
+++ b/debian/xtensor-dev.install
@@ -0,0 +1,2 @@
+usr/include/xtensor
+usr/lib/cmake/xtensor
diff --git a/debian/xtensor-doc.doc-base b/debian/xtensor-doc.doc-base
new file mode 100644
index 0000000..7934455
--- /dev/null
+++ b/debian/xtensor-doc.doc-base
@@ -0,0 +1,9 @@
+Document: xtensor-doc
+Title: xtensor documentation
+Author: Johan Mabille and Sylvain Corlay
+Abstract: This is the reference documentation for the xtensor library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/xtensor-doc/html/index.html
+Files: /usr/share/doc/xtensor-doc/html/*.html
diff --git a/debian/xtensor-doc.docs b/debian/xtensor-doc.docs
new file mode 100644
index 0000000..a213c54
--- /dev/null
+++ b/debian/xtensor-doc.docs
@@ -0,0 +1 @@
+docs/build/html

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



More information about the debian-science-commits mailing list