[clsparse] 01/02: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 9 12:10:01 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository clsparse.

commit 0521b19cd4ff96b4a9150e853e21e8de746c75c1
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Nov 5 15:44:32 2016 +0000

    Initial debianization.
---
 debian/changelog                                   |   5 +
 debian/clean                                       |   2 +
 debian/clsparse-doc.doc-base                       |   9 ++
 debian/clsparse-doc.docs                           |   1 +
 debian/clsparse-doc.examples                       |   1 +
 debian/compat                                      |   1 +
 debian/control                                     |  72 ++++++++++
 debian/copyright                                   | 153 +++++++++++++++++++++
 debian/gbp.conf                                    |   9 ++
 debian/libclsparse-dev.install                     |   3 +
 debian/libclsparse1.install                        |   1 +
 .../Disable-multilib-compiler-options.patch        |  28 ++++
 debian/patches/Use-system-MathJax.patch            |  21 +++
 debian/patches/series                              |   2 +
 debian/rules                                       |  41 ++++++
 debian/source/format                               |   1 +
 debian/tests/control                               |   4 +
 debian/upstream/metadata                           |   6 +
 debian/watch                                       |   3 +
 19 files changed, 363 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9d4052f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+clsparse (0.10.2.0-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #794552)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sat, 05 Nov 2016 15:44:20 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8e50154
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+# Artifacts from build of documentation.
+docs/docBin/
diff --git a/debian/clsparse-doc.doc-base b/debian/clsparse-doc.doc-base
new file mode 100644
index 0000000..79b4cca
--- /dev/null
+++ b/debian/clsparse-doc.doc-base
@@ -0,0 +1,9 @@
+Document: clsparse-doc
+Title: API documentation for clSPARSE
+Author: Advanced Micro Devices, Inc.
+Abstract: This is the reference documentation for clSPARSE.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/clsparse-doc/html/index.html
+Files: /usr/share/doc/clsparse-doc/html/*.html
diff --git a/debian/clsparse-doc.docs b/debian/clsparse-doc.docs
new file mode 100644
index 0000000..f8189b9
--- /dev/null
+++ b/debian/clsparse-doc.docs
@@ -0,0 +1 @@
+docs/docBin/html
diff --git a/debian/clsparse-doc.examples b/debian/clsparse-doc.examples
new file mode 100644
index 0000000..781fb73
--- /dev/null
+++ b/debian/clsparse-doc.examples
@@ -0,0 +1 @@
+samples/*
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..944549b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,72 @@
+Source: clsparse
+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.0),
+               debhelper (>= 10),
+               ocl-icd-opencl-dev | opencl-dev,
+               opencl-clhpp-headers
+Build-Depends-Indep: doxygen
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/clsparse.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/clsparse.git
+Homepage: https://github.com/clMathLibraries/clSPARSE
+
+Package: libclsparse1
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: OpenCL library for sparse linear algebra
+ clSPARSE provides fundamental sparse operations for OpenCL, including:
+ .
+   * Sparse Matrix - dense Vector multiply (SpM-dV)
+   * Sparse Matrix - dense Matrix multiply (SpM-dM)
+   * Iterative conjugate gradient solver (CG)
+   * Iterative biconjugate gradient stabilized solver (BiCGStab)
+   * Dense to CSR conversions (& converse)
+   * COO to CSR conversions (& converse)
+   * Functions to read matrix market files in COO or CSR format
+ .
+ This package provides the shared library.
+
+Package: libclsparse-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends},
+         libclsparse1 (= ${binary:Version}),
+         ocl-icd-opencl-dev | opencl-dev
+Suggests: clsparse-doc
+Description: development files for clSPARSE
+ clSPARSE provides fundamental sparse operations for OpenCL, including:
+ .
+   * Sparse Matrix - dense Vector multiply (SpM-dV)
+   * Sparse Matrix - dense Matrix multiply (SpM-dM)
+   * Iterative conjugate gradient solver (CG)
+   * Iterative biconjugate gradient stabilized solver (BiCGStab)
+   * Dense to CSR conversions (& converse)
+   * COO to CSR conversions (& converse)
+   * Functions to read matrix market files in COO or CSR format
+ .
+ This package provides the development files.
+
+Package: clsparse-doc
+Architecture: all
+Multi-Arch: foreign
+Section: doc
+Depends: ${misc:Depends},
+         libjs-mathjax
+Description: documentation for clSPARSE
+ clSPARSE provides fundamental sparse operations for OpenCL, including:
+ .
+   * Sparse Matrix - dense Vector multiply (SpM-dV)
+   * Sparse Matrix - dense Matrix multiply (SpM-dM)
+   * Iterative conjugate gradient solver (CG)
+   * Iterative biconjugate gradient stabilized solver (BiCGStab)
+   * Dense to CSR conversions (& converse)
+   * COO to CSR conversions (& converse)
+   * Functions to read matrix market files in COO or CSR format
+ .
+ This package provides the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2a5eecb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,153 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: clSPARSE
+Upstream-Contact: Kent Knox <kent.knox at amd.com>
+Source: https://github.com/clMathLibraries/clSPARSE
+
+Files: *
+Copyright: 2015 Advanced Micro Devices, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant
+License: Apache-2.0
+
+Files: samples/*.*
+ src/benchmarks/clsparse-bench/functions/clfunc_xBiCGStab.hpp
+ src/benchmarks/clsparse-bench/functions/clfunc_xCG.hpp
+ src/benchmarks/clsparse-bench/include/io-exception.hpp
+ src/benchmarks/cusparse-bench/include/io-exception.hpp
+ src/cmake/cl2c.cmake
+ src/cmake/cl2cpp.cmake
+ src/cmake/cl2cpp_raw.cmake
+ src/library/blas1/*.*
+ src/library/blas2/clsparse-csrmv.*
+ src/library/blas2/csrmv-vector.hpp
+ src/library/include/clSPARSE-1x.hpp
+ src/library/include/clSPARSE-2x.hpp
+ src/library/internal/clsparse-internal.hpp
+ src/library/internal/clsparse-validate.*
+ src/library/internal/kernel-cache.*
+ src/library/internal/kernel-wrap.*
+ src/library/internal/ocl-type-traits.*
+ src/library/internal/source-provider.hpp
+ src/library/kernels/atomic_reduce.cl
+ src/library/kernels/blas1.cl
+ src/library/kernels/control.cl
+ src/library/kernels/conversion_utils.cl
+ src/library/kernels/csrmv_general.cl
+ src/library/kernels/dot.cl
+ src/library/kernels/elementwise_transform.cl
+ src/library/kernels/matrix_utils.cl
+ src/library/kernels/reduce.cl
+ src/library/kernels/reduce_by_key.cl
+ src/library/kernels/scan.cl
+ src/library/solvers/*.*
+ src/library/transform/conversion-utils.hpp
+ src/tests/test-blas1.cpp
+ src/tests/test-blas2.cpp
+ src/tests/test-clsparse-utils.cpp
+ src/tests/test-conversion.cpp
+ src/tests/test-solvers.cpp
+ src/tests/resources/blas1_environment.h
+ src/tests/resources/clsparse_environment.h
+ src/tests/resources/csr_matrix_environment.cpp
+ src/tests/resources/csr_matrix_environment.h
+ src/tests/resources/matrix_utils.h
+ src/tests/resources/opencl_utils.cpp
+ src/tests/resources/opencl_utils.h
+Copyright: 2015 Vratis, Ltd.
+License: Apache-2.0
+
+Files: src/benchmarks/cusparse-bench/src/mm_reader.cpp
+ src/library/io/mm-reader.cpp
+Copyright: The National Institute of Standards and Technology (NIST)
+License: NIST-Disclaimer
+
+Files: src/include/clSPARSE.h
+ src/library/clsparse-init.cpp
+ src/library/blas2/csrmv-adaptive.hpp
+ src/library/include/clSPARSE-1x.hpp
+ src/library/include/clSPARSE-2x.hpp 
+ src/library/internal/clsparse-control.*
+ src/library/internal/data-types/clarray-*.*
+ src/library/internal/data-types/clarray-base.hpp
+ src/library/internal/data-types/clarray.hpp
+ src/library/internal/data-types/clvector.hpp
+ src/library/internal/data-types/iterator-base.hpp
+ src/library/internal/data-types/reference-base.hpp
+Copyright: 2015 Vratis, Ltd.
+ 2015 Advanced Micro Devices, Inc.
+License: Apache-2.0
+
+Files: src/library/blas3/clsparse-spm-spm.cpp
+ src/library/kernels/SpGEMM_*.cl
+Copyright: 2014-2015 University of Copenhagen
+License: Expat
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+     http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS"BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache License,
+ Version 2.0 can be found in '/usr/share/common-licenses/Apache-2.0'.
+
+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.
+
+License: NIST-Disclaimer
+ Portions of this file include code provided by The National Institute of
+ Standards and Technology (NIST).  The code includes
+ macro definitions from mmio.h and is subject to the following disclaimer.
+ .
+ Software Disclaimer
+ .
+ NIST-developed software is provided by NIST as a public service. You may use,
+ copy and distribute copies of the software in any medium, provided that you
+ keep intact this entire notice. You may improve, modify and create derivative
+ works of the software or any portion of the software, and you may copy and
+ distribute such modifications or works. Modified works should carry a notice
+ stating that you changed the software and should note the date and nature of
+ any such change. Please explicitly acknowledge the National Institute of
+ Standards and Technology as the source of the software.
+ .
+ NIST-developed software is expressly provided "AS IS" NIST MAKES NO WARRANTY
+ OF ANY KIND, EXPRESS, IMPLIED, IN FACT OR ARISING BY OPERATION OF LAW,
+ INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT AND DATA ACCURACY. NIST
+ NEITHER REPRESENTS NOR WARRANTS THAT THE OPERATION OF THE SOFTWARE WILL BE
+ UNINTERRUPTED OR ERROR-FREE, OR THAT ANY DEFECTS WILL BE CORRECTED. NIST DOES
+ NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF THE SOFTWARE OR
+ THE RESULTS THEREOF, INCLUDING BUT NOT LIMITED TO THE CORRECTNESS, ACCURACY,
+ RELIABILITY, OR USEFULNESS OF THE SOFTWARE.
+ .
+ You are solely responsible for determining the appropriateness of using and
+ distributing the software and you assume all risks associated with its use,
+ including but not limited to the risks and costs of program errors, compliance
+ with applicable laws, damage to or loss of data, programs or equipment, and
+ the unavailability or interruption of operation. This software is not intended
+ to be used in any situation where a failure could cause risk of injury or
+ damage to property. The software developed by NIST employees is not subject
+ to copyright protection within the United States.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ea5c858
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+upstream-branch = upstream/latest
+debian-branch = debian/master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[pq]
+patch-numbers = False
diff --git a/debian/libclsparse-dev.install b/debian/libclsparse-dev.install
new file mode 100644
index 0000000..bb72267
--- /dev/null
+++ b/debian/libclsparse-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*/*.so
+usr/lib/*/cmake
diff --git a/debian/libclsparse1.install b/debian/libclsparse1.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libclsparse1.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/patches/Disable-multilib-compiler-options.patch b/debian/patches/Disable-multilib-compiler-options.patch
new file mode 100644
index 0000000..4319724
--- /dev/null
+++ b/debian/patches/Disable-multilib-compiler-options.patch
@@ -0,0 +1,28 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 23 Aug 2016 08:37:54 +0100
+Subject: Disable multilib compiler options.
+
+---
+ src/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index aebe3ac..66e7c11 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -141,11 +141,11 @@ elseif( CMAKE_COMPILER_IS_GNUCC )
+ 	message( STATUS "Detected GNU compiler collection" )
+ 
+ 	if( clSPARSE_BUILD64 )
+-		set( CMAKE_CXX_FLAGS "-m64 ${CMAKE_CXX_FLAGS}" )
+-		set( CMAKE_C_FLAGS "-m64 ${CMAKE_C_FLAGS}" )
++#		set( CMAKE_CXX_FLAGS "-m64 ${CMAKE_CXX_FLAGS}" )
++#		set( CMAKE_C_FLAGS "-m64 ${CMAKE_C_FLAGS}" )
+ 	else( )
+-		set( CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}" )
+-		set( CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
++#		set( CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}" )
++#		set( CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
+ 	endif( )
+ else( )
+ 	message( AUTHOR_WARNING "Compiler not recognized.  Using default flags." )
diff --git a/debian/patches/Use-system-MathJax.patch b/debian/patches/Use-system-MathJax.patch
new file mode 100644
index 0000000..43844c6
--- /dev/null
+++ b/debian/patches/Use-system-MathJax.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 23 Aug 2016 08:35:42 +0100
+Subject: Use system MathJax.
+
+---
+ docs/Doxyfile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/Doxyfile b/docs/Doxyfile
+index 9b76fab..38f8c6f 100644
+--- a/docs/Doxyfile
++++ b/docs/Doxyfile
+@@ -1532,7 +1532,7 @@ MATHJAX_FORMAT         = HTML-CSS
+ # The default value is: http://cdn.mathjax.org/mathjax/latest.
+ # This tag requires that the tag USE_MATHJAX is set to YES.
+ 
+-MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
++MATHJAX_RELPATH        = /usr/share/javascript/mathjax
+ 
+ # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
+ # extension names that should be enabled during MathJax rendering. For example
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9947578
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Use-system-MathJax.patch
+Disable-multilib-compiler-options.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c46d67c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+# Hardening options.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# NOTE: Possible overlinkage with librt.
+# See: https://github.com/clMathLibraries/clSPARSE/issues/195
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture --query DEB_HOST_MULTIARCH)
+
+# NOTE: Testing is disabled (BUILD_TESTS is set to OFF), since it relies on
+# remote content.
+# See: https://github.com/clMathLibraries/clSPARSE/issues/194
+BUILD_OPTIONS = \
+	-DBUILD_BENCHMARKS=OFF \
+	-DBUILD_SHARED_LIBS=ON \
+	-DBUILD_TESTS=OFF \
+	-DSUFFIX_LIB="/$(DEB_HOST_MULTIARCH)" \
+	-DUSE_SYSTEM_CL2HPP=ON
+
+%:
+	dh $@ --sourcedirectory=src
+
+override_dh_auto_configure-arch:
+	dh_auto_configure -- $(BUILD_OPTIONS)
+
+override_dh_auto_configure-indep:
+
+override_dh_auto_build-indep:
+	cd docs && doxygen Doxyfile
+
+override_dh_installdocs-indep:
+	dh_installdocs --indep
+	dh_doxygen --indep
+
+override_dh_compress-indep:
+	dh_compress --indep --exclude=examples
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..49c203a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Test-Command: cd $AUTOPKGTEST_TMP;
+ cmake /usr/share/doc/clsparse-doc/examples -DUSE_SYSTEM_CL2HPP=ON; make
+Restrictions: allow-stderr
+Depends: @, cmake, g++ | c++-compiler, opencl-clhpp-headers
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..e3ad516
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/clMathLibraries/clSPARSE/issues
+Bug-Submit: https://github.com/clMathLibraries/clSPARSE/issues/new
+Contact: https://groups.google.com/forum/#!forum/clmath
+Name: clSPARSE
+Repository: git at github.com:clMathLibraries/clSPARSE.git
+Repository-Browse: https://github.com/clMathLibraries/clSPARSE.git
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c51ac43
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/clSPARSE-$1\.tar\.gz/ \
+https://github.com/clMathLibraries/clSPARSE/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list