[clsparse] 01/02: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 7 16:09: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 15b8ea8e95ff34d1629d39068fc6b2dc26b76c0f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Sep 7 11:49:14 2016 +0100

    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                                   | 50 +++++++++++++++
 debian/gbp.conf                                    |  9 +++
 debian/libclsparse-dev.install                     |  3 +
 debian/libclsparse1.install                        |  1 +
 .../Disable-multilib-compiler-options.patch        | 28 +++++++++
 .../Move-OpenCL-detection-to-root-list.patch       | 49 +++++++++++++++
 debian/patches/Use-system-MathJax.patch            | 21 +++++++
 debian/patches/series                              |  3 +
 debian/rules                                       | 38 ++++++++++++
 debian/source/format                               |  1 +
 debian/tests/control                               |  4 ++
 debian/upstream/metadata                           |  6 ++
 debian/watch                                       |  3 +
 20 files changed, 307 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8cbd6e4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+clsparse (0.10.1.0-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #794552)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Sun, 04 Sep 2016 15:20:04 +0100
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..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d1e0c9b
--- /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
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: cmake (>= 3.0),
+               debhelper (>= 9),
+               ocl-icd-opencl-dev | opencl-dev
+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..562eb8e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,50 @@
+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.
+ 2015 Vratis, Ltd.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant
+License: Apache-2.0
+
+Files: src/library/blas3/clsparse-spm-spm.cpp
+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.
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/Move-OpenCL-detection-to-root-list.patch b/debian/patches/Move-OpenCL-detection-to-root-list.patch
new file mode 100644
index 0000000..a1b2c0a
--- /dev/null
+++ b/debian/patches/Move-OpenCL-detection-to-root-list.patch
@@ -0,0 +1,49 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 23 Aug 2016 10:21:34 +0100
+Subject: Move OpenCL detection to root list.
+
+---
+ src/CMakeLists.txt         | 9 +++++++++
+ src/library/CMakeLists.txt | 9 ---------
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 66e7c11..6e1503e 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -163,6 +163,15 @@ message( STATUS "CMAKE_CXX_COMPILER release flags: " ${CMAKE_CXX_FLAGS_RELEASE}
+ message( STATUS "CMAKE_CXX_COMPILER relwithdebinfo flags: " ${CMAKE_CXX_FLAGS_RELWITHDEBINFO} )
+ message( STATUS "CMAKE_EXE_LINKER link flags: " ${CMAKE_EXE_LINKER_FLAGS} )
+ 
++# Query the user for which version of OpenCL they wish to build the library for
++set( BUILD_CLVERSION "1.2" CACHE STRING "The version of OpenCL we wish to compile the library against" )
++set_property( CACHE BUILD_CLVERSION PROPERTY STRINGS 2.0 1.2 1.1 )
++message( STATUS "clSPARSE is building using CL interface ='${BUILD_CLVERSION}'" )
++
++# clSPARSE library requires OpenCL
++# A standard FindOpenCL.cmake module ships with cmake 3.1, but we supply our own until 3.1 becomes more $
++find_package( OpenCL ${BUILD_CLVERSION} REQUIRED )
++
+ # configure a header file to pass the CMake version settings to the source, and package the header files in the output archive
+ message( STATUS "PROJECT SRC DIR = ${PROJECT_SOURCE_DIR}")
+ configure_file( "${PROJECT_SOURCE_DIR}/include/clSPARSE-version.h.in" "${PROJECT_BINARY_DIR}/include/clSPARSE-version.h" )
+diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
+index d11a919..3959858 100644
+--- a/src/library/CMakeLists.txt
++++ b/src/library/CMakeLists.txt
+@@ -17,15 +17,6 @@
+ 
+ include( GenerateExportHeader )
+ 
+-# Query the user for which version of OpenCL they wish to build the library for
+-set( BUILD_CLVERSION "1.2" CACHE STRING "The version of OpenCL we wish to compile the library against" )
+-set_property( CACHE BUILD_CLVERSION PROPERTY STRINGS 2.0 1.2 1.1 )
+-message( STATUS "clSPARSE is building using CL interface ='${BUILD_CLVERSION}'" )
+-
+-# clSPARSE library requires OpenCL
+-# A standard FindOpenCL.cmake module ships with cmake 3.1, but we supply our own until 3.1 becomes more prevalent
+-find_package( OpenCL ${BUILD_CLVERSION} REQUIRED )
+-
+ # clSPARSE library requires clBLAS
+ # find_package( clBLAS REQUIRED )
+ 
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..afa5c3a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+Use-system-MathJax.patch
+Disable-multilib-compiler-options.patch
+Move-OpenCL-detection-to-root-list.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8d6f8c1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+# Hardening options.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# Possible overlinkage with librt.
+# See: https://github.com/clMathLibraries/clSPARSE/issues/195
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Testing is disabled, as 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_TARGET_MULTIARCH)" \
+	-DUSE_SYSTEM_CL2HPP=ON
+
+%:
+	dh $@ --parallel --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..8e814f2
--- /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
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