[xtensor] 01/02: Initial debianisation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Apr 6 16:04:17 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 2e8817444dabdd4db9334926d7b28d8056cba435
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Apr 6 16:10:58 2017 +0100

    Initial debianisation
---
 debian/changelog                             |  5 +++
 debian/compat                                |  1 +
 debian/control                               | 62 ++++++++++++++++++++++++++++
 debian/copyright                             | 37 +++++++++++++++++
 debian/gbp.conf                              |  7 ++++
 debian/patches/Fixup-docs-clean-target.patch | 21 ++++++++++
 debian/patches/series                        |  1 +
 debian/rules                                 | 37 +++++++++++++++++
 debian/source/format                         |  1 +
 debian/tests/control                         | 25 +++++++++++
 debian/watch                                 |  3 ++
 debian/xtensor-dev.install                   |  2 +
 debian/xtensor-doc.doc-base                  |  9 ++++
 debian/xtensor-doc.docs                      |  1 +
 14 files changed, 212 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6b3efe6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+xtensor (0.8.3-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #858067)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Thu, 06 Apr 2017 16:10: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/patches/Fixup-docs-clean-target.patch b/debian/patches/Fixup-docs-clean-target.patch
new file mode 100644
index 0000000..61f475a
--- /dev/null
+++ b/debian/patches/Fixup-docs-clean-target.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at users.noreply.github.com>
+Date: Thu, 6 Apr 2017 14:01:51 +0100
+Subject: Fixup docs clean target
+
+Remove the additional `xml` folder generated by `doxygen`
+---
+ docs/Makefile | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/docs/Makefile b/docs/Makefile
+index a198dfc..835afee 100644
+--- a/docs/Makefile
++++ b/docs/Makefile
+@@ -49,6 +49,7 @@ help:
+ 
+ clean:
+ 	rm -rf $(BUILDDIR)/*
++	rm -rf xml
+ 
+ html:
+ 	doxygen
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6833571
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fixup-docs-clean-target.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d81bc53
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,37 @@
+#!/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_clean:
+	dh_auto_clean
+	$(MAKE) -C docs clean
+
+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..22233f8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,25 @@
+Test-Command: set -e
+ ; cp -r ./test/* "$AUTOPKGTEST_TMP"
+ ; cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with gcc:"
+ ; mkdir build && cd build
+ ; CC=gcc CXX=g++ cmake .. -DGTEST_SRC_DIR="/usr/src/googletest"
+ ; make -j $(nproc) xtest
+Depends: cmake,
+         g++,
+         googletest,
+         xtensor-dev
+Restrictions: allow-stderr
+
+Test-Command: set -e
+ ; cp -r ./test/* "$AUTOPKGTEST_TMP"
+ ; cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with clang:"
+ ; mkdir build && cd build
+ ; CC=clang CXX=clang++ cmake .. -DGTEST_SRC_DIR="/usr/src/googletest"
+ ; make -j $(nproc) xtest
+Depends: clang,
+         cmake,
+         googletest,
+         xtensor-dev
+Restrictions: allow-stderr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..69c6a36
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?@ANY_VERSION@\.tar\.gz/xtensor-$1\.tar\.gz/ \
+https://github.com/QuantStack/xtensor/tags .*/v?@ANY_VERSION@\.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..57e34ff
--- /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