[libgpuarray] 01/21: Import Debian patch 0.0+git160929.29ce960-1

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jul 17 09:13:38 UTC 2017


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

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

commit 0695b6c508b3646535e1fc92986360dc166944d4
Author: Daniel Stender <stender at debian.org>
Date:   Sun Oct 2 12:48:55 2016 +0200

    Import Debian patch 0.0+git160929.29ce960-1
---
 debian/changelog                          |   5 ++
 debian/clean                              |  14 ++++
 debian/compat                             |   1 +
 debian/control                            | 103 +++++++++++++++++++++++++++++
 debian/copyright                          | 106 ++++++++++++++++++++++++++++++
 debian/gbp.conf                           |   8 +++
 debian/libgpuarray-dev.install            |   3 +
 debian/libgpuarray0.install               |   1 +
 debian/patches/provide-import-paths.patch |  23 +++++++
 debian/patches/series                     |   2 +
 debian/patches/set-soversion.patch        |  15 +++++
 debian/rules                              |  23 +++++++
 debian/source/format                      |   1 +
 debian/source/options                     |   1 +
 debian/watch                              |   3 +
 15 files changed, 309 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d06badc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libgpuarray (0.0+git160929.29ce960-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #819012).
+
+ -- Daniel Stender <stender at debian.org>  Sun, 02 Oct 2016 12:48:55 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..b47fdef
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,14 @@
+Makefile.conf
+src/private_config.h
+lib/
+build/
+pygpu/_elemwise.c
+pygpu/blas.c
+pygpu/blas_api.h
+pygpu/collectives.c
+pygpu/collectives.h
+pygpu/collectives_api.h
+pygpu/gpuarray.c
+pygpu/gpuarray.h
+pygpu/gpuarray_api.h
+pygpu.egg-info/
\ No newline at end of file
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..f88e66c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,103 @@
+Source: libgpuarray
+Section: libs
+Priority: optional
+Maintainer: Daniel Stender <stender at debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ cmake,
+ libclblas-dev,
+ opencl-dev,
+ python-all-dev,
+ python3-all-dev,
+ python-setuptools,
+ python3-setuptools,
+ cython,
+ cython3,
+ python-numpy,
+ python3-numpy
+Standards-Version: 3.9.8
+Homepage: https://github.com/Theano/libgpuarray
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libgpuarray.git
+Vcs-Git: https://anonscm.debian.org/git/collab-maint/libgpuarray.git
+
+Package: libgpuarray-dev
+Section: libdevel
+Architecture: any
+Depends:
+ libgpuarray0 (= ${binary:Version}),
+ ${misc:Depends}
+Description: library to compute tensors on the GPU (development)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package contains the development headers and the static library.
+
+Package: libgpuarray0
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: library to compute tensors on the GPU (runtime)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package contains the shared library.
+
+Package: python-pygpu
+Architecture: any
+Section: python
+Depends:
+ libgpuarray0 (= ${binary:Version}),
+ ${python:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends:
+ python-nose
+Description: library to compute tensors on the GPU (Python bindings)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package contains the Python bindings which are build in the top
+ of NumPy.
+
+Package: python3-pygpu
+Architecture: any
+Section: python
+Depends:
+ libgpuarray0 (= ${binary:Version}),
+ ${python3:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends:
+ python3-nose
+Description: library to compute tensors on the GPU (Python 3 bindings)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package contains the bindings for Python 3 which are build in the
+ top of NumPy.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..484e169
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,106 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libgpuarray
+Source: https://github.com/Theano/libgpuarray
+
+Files: *
+Copyright: 2012-2016 Arnaud Begeron <abergeron at gmail.com>
+                     Frédéric Bastien <frederic.bastien at gmail.com>
+                     Christos Tsirigotis <tsirif at gmail.com>
+License: ISC
+
+Files: debian/*
+Copyright: 2016 Daniel Stender <stender at debian.org>
+License: ISC
+
+Files: src/gpuarray_strl.c
+Copyright: 1998 Todd C. Miller <Todd.Miller at courtesan.com>
+License: ISC
+
+License: ISC
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Files: pygpu/dtypes.py
+Copyright: 2011 Andreas Kloeckner
+License: Expat
+ 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.
+
+Files: src/gpuarray/wincompat/stdint.h
+Copyright: 2006-2008 Alexander Chemeris
+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. The name of the author may be used to endorse or promote products
+    derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+
+Files: src/util/xxhash.c
+       src/util/xxhash.h
+Copyright: 2012-2015 Yann Collet
+License: BSB-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ * Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+ * 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.
+ .
+ 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
+ OWNER 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.
\ No newline at end of file
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..78ab127
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[import-orig]
+upstream-branch = upstream
+debian-branch = master
diff --git a/debian/libgpuarray-dev.install b/debian/libgpuarray-dev.install
new file mode 100644
index 0000000..b66179b
--- /dev/null
+++ b/debian/libgpuarray-dev.install
@@ -0,0 +1,3 @@
+usr/include/gpuarray/
+usr/lib/libgpuarray.so
+usr/lib/libgpuarray-static.a
diff --git a/debian/libgpuarray0.install b/debian/libgpuarray0.install
new file mode 100644
index 0000000..f226a76
--- /dev/null
+++ b/debian/libgpuarray0.install
@@ -0,0 +1 @@
+usr/lib/libgpuarray.so.*
\ No newline at end of file
diff --git a/debian/patches/provide-import-paths.patch b/debian/patches/provide-import-paths.patch
new file mode 100644
index 0000000..ba5ca59
--- /dev/null
+++ b/debian/patches/provide-import-paths.patch
@@ -0,0 +1,23 @@
+Description: import paths are also needed on Debian
+Author: Daniel Stender <stender at debian.org>
+Forwarded: not-needed
+Last-Update: 2016-10-03
+
+--- a/setup.py
++++ b/setup.py
+@@ -70,13 +70,13 @@
+ 
+ include_dirs = [np.get_include()]
+ library_dirs = []
+-if sys.platform == 'win32':
++if sys.platform:
+     # This is a hack so users don't need to do many steps for windows install
+     # Just use the default location.
+     current_dir = os.path.abspath(os.path.dirname(__file__))
+     include_dirs += [os.path.join(current_dir, 'src')]
+ 
+-    default_bin_dir = os.path.join(current_dir, 'lib', 'Release')
++    default_bin_dir = os.path.join(current_dir, 'lib')
+     if not os.path.isdir(default_bin_dir):
+         raise RuntimeError('default binary dir {} does not exist, you may need to build the C library in release mode')
+     library_dirs += [default_bin_dir]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b818d46
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+provide-import-paths.patch
+set-soversion.patch
diff --git a/debian/patches/set-soversion.patch b/debian/patches/set-soversion.patch
new file mode 100644
index 0000000..2ce2c93
--- /dev/null
+++ b/debian/patches/set-soversion.patch
@@ -0,0 +1,15 @@
+Description: set SONAME for shared library
+Author: Daniel Stender <stender at debian.org>
+Forwarded: no
+Last-Update: 2016-10-03
+
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -161,6 +161,7 @@
+   COMPILE_FLAGS "-DGPUARRAY_BUILDING_DLL -DGPUARRAY_SHARED"
+   INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib
+   MACOSX_RPATH OFF
++  SOVERSION 0
+   )
+ 
+ add_library(gpuarray-static STATIC ${GPUARRAY_SRC})
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c709b5d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+
+%:
+	dh $@ --with python2,python3
+
+override_dh_auto_configure:
+	dh_auto_configure --buildsystem=cmake
+
+override_dh_auto_test:
+
+override_dh_auto_install:
+	dh_auto_install
+	for i in $$(pyversions -i); do $$i setup.py install --root=debian/python-pygpu --install-layout=deb; done
+	for i in $$(py3versions -i); do $$i setup.py install --root=debian/python3-pygpu --install-layout=deb; done
+	rm -rfv debian/python*-pygpu/usr/pygpu
+	# todo: build docs package
+
+override_dh_gencontrol:
+	dh_numpy
+	dh_numpy3
+	dh_gencontrol
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/source/options b/debian/source/options
new file mode 100644
index 0000000..c4bb464
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore=Makefile.conf
\ No newline at end of file
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..17b47e7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/(?:.*\/)?v-?(\d[\d\.]+)\.tar\.gz/libgpuarray-$1.tar.gz/" \
+https://github.com/Theano/libgpuarray/releases (?:.*/)?v-?(\d[\d\.]+)\.tar\.gz
\ No newline at end of file

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



More information about the debian-science-commits mailing list