summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog21
-rw-r--r--debian/clean2
-rw-r--r--debian/compat1
-rw-r--r--debian/control151
-rw-r--r--debian/copyright133
-rw-r--r--debian/gudhi-utils.install1
-rw-r--r--debian/gudhui.112
-rw-r--r--debian/gudhui.install1
-rw-r--r--debian/gudhui.manpages1
-rw-r--r--debian/libgudhi-dev.docs1
-rw-r--r--debian/libgudhi-dev.install2
-rw-r--r--debian/libgudhi-doc.doc-base8
-rw-r--r--debian/libgudhi-doc.install1
-rw-r--r--debian/libgudhi-examples.docs1
-rw-r--r--debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch32
-rw-r--r--debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch28
-rw-r--r--debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch107
-rw-r--r--debian/patches/0004-Use-system-MathJax.patch21
-rw-r--r--debian/patches/0005-Don-t-set-runtime_library_dirs-for-the-Python-extens.patch22
-rw-r--r--debian/patches/0007-CGAL-4.12-compatibility.patch72
-rw-r--r--debian/patches/0008-Force-linking-of-Python-module-with-CGAL.patch21
-rw-r--r--debian/patches/0009-Rounding-workaround-on-i686.patch21
-rw-r--r--debian/patches/0010-Force-linking-against-libatomic-for-parts-that-use-T.patch21
-rw-r--r--debian/patches/no-external-doc-resources.patch88
-rw-r--r--debian/patches/series10
-rw-r--r--debian/python3-gudhi.install1
-rwxr-xr-xdebian/rules43
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control2
-rwxr-xr-xdebian/tests/python-upstream19
-rw-r--r--debian/watch5
31 files changed, 850 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..2e3189c6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,21 @@
+gudhi (2.1.0+dfsg-3) unstable; urgency=medium
+
+ * Add patch for floating point rounding problem on some architectures.
+ * Add patch that forces linking against libatomic. This hopefully fixes
+ building on MIPS et al.
+ * Install utilities (gudhi-utils).
+
+ -- Gard Spreemann <gspreemann@gmail.com> Thu, 14 Jun 2018 20:07:51 +0200
+
+gudhi (2.1.0+dfsg-2) unstable; urgency=medium
+
+ * Add patches for CGAL 4.12 compatibility.
+ * Bump standards-version to 4.1.4. No changes needed.
+
+ -- Gard Spreemann <gspreemann@gmail.com> Thu, 24 May 2018 11:46:12 +0200
+
+gudhi (2.1.0+dfsg-1) unstable; urgency=medium
+
+ * Initial packaging. (Closes: #840686)
+
+ -- Gard Spreemann <gspreemann@gmail.com> Sun, 25 Mar 2018 23:52:14 +0200 \ No newline at end of file
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 00000000..1258531f
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+GUDHIVersion.cmake
+doc/html/
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..b4de3947
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..75a8fd73
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,151 @@
+Source: gudhi
+Maintainer: Gard Spreemann <gspreemann@gmail.com>
+Section: math
+Priority: optional
+Standards-Version: 4.1.4
+Build-Depends: cmake,
+ cython3,
+ debhelper (>= 11),
+ dh-python,
+ libboost-chrono-dev,
+ libboost-filesystem-dev,
+ libboost-program-options-dev,
+ libboost-system-dev,
+ libboost-test-dev,
+ libboost-timer-dev,
+ libcgal-dev (>> 4.11.0),
+ libcgal-qt5-dev (>> 4.11.0),
+ libeigen3-dev,
+ libgmp-dev,
+ libqglviewer-dev-qt5,
+ libtbb-dev,
+ python3-all,
+ python3-dev,
+ python3-matplotlib,
+ python3-pytest,
+ python3-tk,
+ qtbase5-dev
+Build-Depends-Indep: doxygen,
+ graphviz
+Homepage: http://gudhi.gforge.inria.fr/
+Vcs-Browser: https://git.nonempty.org/debian-gudhi
+Vcs-Git: https://git.nonempty.org/debian-gudhi -b debian/sid
+
+Package: libgudhi-dev
+Section: libdevel
+Architecture: all
+Multi-Arch: foreign
+Depends: libboost-chrono-dev (>= 1.48),
+ libboost-filesystem-dev (>= 1.48),
+ libboost-program-options-dev (>= 1.48),
+ libboost-system-dev (>= 1.48),
+ libboost-test-dev (>= 1.48),
+ libboost-timer-dev (>= 1.48),
+ libcgal-dev (>> 4.11.0),
+ libeigen3-dev (>= 3.1.0),
+ libgmp-dev (>= 4.2),
+ libtbb-dev,
+ ${misc:Depends}
+Suggests: libgudhi-doc, libgudhi-examples
+Description: Generic open source C++ library for topological data analysis
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains the header files. See the libgudhi-examples
+ package for example programs using the library.
+
+Package: libgudhi-examples
+Section: misc
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}
+Suggests: libgudhi-dev, libgudhi-doc
+Description: Example programs for the GUDHI library
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains some source code examples.
+
+Package: libgudhi-doc
+Section: doc
+Architecture: all
+Multi-Arch: foreign
+Depends: libjs-mathjax, ${misc:Depends}
+Description: Documentation for the GUDHI library for topological data analysis
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains documentation for the package.
+
+Package: python3-gudhi
+Section: python
+Architecture: any
+Multi-Arch: same
+Depends: python3-matplotlib,
+ python3-tk,
+ ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends}
+Description: Python 3 interface to the GUDHI library for topological data analysis
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains GUDHI's Python (3) interface.
+
+Package: gudhui
+Section: math
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: GUI for some of the functionality of the GUDHI library
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains GudhUI, a graphical interface to a few of GUDHI's
+ features. Be aware that it is quite rough around the edges.
+
+Package: gudhi-utils
+Section: math
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Utilities from the GUDHI library
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains some utilities built with the GUDHI library.
+ \ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..a01a405b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,133 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gudhi
+Files-Excluded: GudhUI/utils/homsimpl data/filtered_simplicial_complex/bunny_5000_complex.fsc data/points/COIL_database data/points/SO3* data/points/bunny* doc/common/MathJax.* include/gudhi_patches/CGAL/*
+Source: http://gudhi.gforge.inria.fr
+ Deleted unnecessary precompiled binary and upstream data files of unclear licensing status. Deleted also bundled MathJax.
+
+Files: *
+Copyright: 2014-2017 INRIA
+ 2016 INRIA (France)
+ 2014 INRIA Sophia Antipolis - Méditerranée (France)
+ 2015 INRIA Saclay - Île-de-France
+License: GPL-3+
+Comment: The exact copyright statement varies between various INRIA research
+ centers throughout the files. Upstream made a statement that the correct
+ copyright holder is simply "Inria". See https://lists.gforge.inria.fr/pipermail/gudhi-users/2018-March/000120.html
+
+Files: cmake/modules/FindEigen3.cmake
+Copyright: 2006, 2007 Montel Laurent <montel@kde.org>
+ 2008, 2009 Gael Guennebaud <g.gael@free.fr>
+ 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
+License: BSD-2-clause
+
+Files: cmake/modules/FindTBB.cmake
+Copyright: Hannes Hofmann
+License: MIT
+
+Files: cmake/modules/FindCython.cmake
+Copyright: 2011 Kitware, Inc.
+License: Apache-2.0
+
+Files: utilities/Nerve_GIC/km.py*
+Copyright: 2015 Triskelion - HJ van Veen <info@mlwave.com>
+License: MIT
+
+Files: include/gudhi/Contraction/CGAL_queue/Modifiable_priority_queue.h
+Copyright: 2006-2011 GeometryFactory
+License: LGPL-3+
+ This file is part of CGAL (www.cgal.org); you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 3 of the License,
+ or (at your option) any later version.
+ .
+ Licensees holding a valid commercial license may use this file in
+ accordance with the commercial license agreement provided with the software.
+ .
+ This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 3 can be found in "/usr/share/common-licenses/LGPL-3".
+
+Files: debian/*
+Copyright: 2016-2018 Gard Spreemann <gspreemann@gmail.com>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: BSD-2-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.
+ .
+ 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.
+
+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: MIT
+ 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/gudhi-utils.install b/debian/gudhi-utils.install
new file mode 100644
index 00000000..71e8eb9f
--- /dev/null
+++ b/debian/gudhi-utils.install
@@ -0,0 +1 @@
+debian/tmp/usr/bin/gudhi-* usr/bin/
diff --git a/debian/gudhui.1 b/debian/gudhui.1
new file mode 100644
index 00000000..53ce0867
--- /dev/null
+++ b/debian/gudhui.1
@@ -0,0 +1,12 @@
+.TH GUDHUI 1 "" "" ""
+.SH NAME
+GudhUI \- graphical interface for some of the GUDHI library's features
+.SH SYNOPSIS
+.B gudhui
+[\fIQt options\fR]
+.SH DESCRIPTION
+.B gudhui
+is a graphical interface for some of the GUDHI library's features. It
+can aid the exploratory steps of topological data analysis.
+.SH OPTIONS
+The program accepts only standard Qt options.
diff --git a/debian/gudhui.install b/debian/gudhui.install
new file mode 100644
index 00000000..9f140378
--- /dev/null
+++ b/debian/gudhui.install
@@ -0,0 +1 @@
+debian/tmp/usr/bin/gudhui
diff --git a/debian/gudhui.manpages b/debian/gudhui.manpages
new file mode 100644
index 00000000..4ffbdc9f
--- /dev/null
+++ b/debian/gudhui.manpages
@@ -0,0 +1 @@
+debian/gudhui.1 \ No newline at end of file
diff --git a/debian/libgudhi-dev.docs b/debian/libgudhi-dev.docs
new file mode 100644
index 00000000..3d523db3
--- /dev/null
+++ b/debian/libgudhi-dev.docs
@@ -0,0 +1 @@
+biblio
diff --git a/debian/libgudhi-dev.install b/debian/libgudhi-dev.install
new file mode 100644
index 00000000..3035131d
--- /dev/null
+++ b/debian/libgudhi-dev.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/include/gudhi/ usr/include/
+debian/tmp/usr/share/gudhi/*.cmake usr/lib/cmake/gudhi/
diff --git a/debian/libgudhi-doc.doc-base b/debian/libgudhi-doc.doc-base
new file mode 100644
index 00000000..f8175ee1
--- /dev/null
+++ b/debian/libgudhi-doc.doc-base
@@ -0,0 +1,8 @@
+Document: libgudhi-doc
+Title: GUDHI C++ library manual
+Abstract: This Doxygen manual describes the GUDHI C++ API
+Section: Science/Mathematics
+
+Format: HTML
+Index: /usr/share/doc/libgudhi/html/index.html
+Files: /usr/share/doc/libgudhi/html/*.html
diff --git a/debian/libgudhi-doc.install b/debian/libgudhi-doc.install
new file mode 100644
index 00000000..ceccbc47
--- /dev/null
+++ b/debian/libgudhi-doc.install
@@ -0,0 +1 @@
+doc/html/* usr/share/doc/libgudhi/html/
diff --git a/debian/libgudhi-examples.docs b/debian/libgudhi-examples.docs
new file mode 100644
index 00000000..253d5377
--- /dev/null
+++ b/debian/libgudhi-examples.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/libgudhi-examples/*
diff --git a/debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch b/debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch
new file mode 100644
index 00000000..12978cfe
--- /dev/null
+++ b/debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch
@@ -0,0 +1,32 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 9 Oct 2017 11:46:06 +0200
+Subject: [PATCH 1/5] Force Python 3 detection to avoid mixing 2 and 3.
+
+---
+ cmake/modules/FindCython.cmake | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/cmake/modules/FindCython.cmake b/cmake/modules/FindCython.cmake
+index 04aed1f..f3a5b7b 100644
+--- a/cmake/modules/FindCython.cmake
++++ b/cmake/modules/FindCython.cmake
+@@ -24,16 +24,16 @@
+
+ # Use the Cython executable that lives next to the Python executable
+ # if it is a local installation.
+-find_package( PythonInterp )
++find_package( PythonInterp 3 )
+ if( PYTHONINTERP_FOUND )
+ get_filename_component( _python_path ${PYTHON_EXECUTABLE} PATH )
+ find_program( CYTHON_EXECUTABLE
+- NAMES cython cython.bat cython3
++ NAMES cython3
+ HINTS ${_python_path}
+ )
+ else()
+ find_program( CYTHON_EXECUTABLE
+- NAMES cython cython.bat cython3
++ NAMES cython3
+ )
+ endif()
+
diff --git a/debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch b/debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch
new file mode 100644
index 00000000..cd17e0f1
--- /dev/null
+++ b/debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch
@@ -0,0 +1,28 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 9 Oct 2017 12:05:01 +0200
+Subject: [PATCH 2/5] Disable the Sphinx test. We're not using it,
+ as it requires the Sphinx bibtex module (#800358).
+
+---
+ cython/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt
+index afca9d6..ec3cb8f 100644
+--- a/cython/CMakeLists.txt
++++ b/cython/CMakeLists.txt
+@@ -305,10 +305,10 @@ if(CYTHON_FOUND)
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/gudhi.so"
+ COMMENT "${GUDHI_SPHINX_MESSAGE}" VERBATIM)
+
+- add_test(NAME sphinx_py_test
+- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+- COMMAND ${CMAKE_COMMAND} -E env "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}"
+- ${SPHINX_PATH} -b doctest ${CMAKE_CURRENT_SOURCE_DIR}/doc ${CMAKE_CURRENT_BINARY_DIR}/doctest)
++# add_test(NAME sphinx_py_test
++# WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
++# COMMAND ${CMAKE_COMMAND} -E env "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}"
++# ${SPHINX_PATH} -b doctest ${CMAKE_CURRENT_SOURCE_DIR}/doc ${CMAKE_CURRENT_BINARY_DIR}/doctest)
+
+ endif(SPHINX_PATH AND NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.8.1)
+ endif(CYTHON_FOUND)
diff --git a/debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch b/debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch
new file mode 100644
index 00000000..4edf1caa
--- /dev/null
+++ b/debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch
@@ -0,0 +1,107 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 5 Feb 2018 10:15:40 +0100
+Subject: [PATCH 3/5] Disable tests that use DFSG-deleted data files.
+
+---
+ example/Nerve_GIC/CMakeLists.txt | 10 +++++-----
+ example/Persistent_cohomology/CMakeLists.txt | 8 ++++----
+ example/Simplex_tree/CMakeLists.txt | 4 ++--
+ example/common/CMakeLists.txt | 4 ++--
+ utilities/Nerve_GIC/CMakeLists.txt | 10 +++++-----
+ 5 files changed, 18 insertions(+), 18 deletions(-)
+
+diff --git a/example/Nerve_GIC/CMakeLists.txt b/example/Nerve_GIC/CMakeLists.txt
+index f262692..825974c 100644
+--- a/example/Nerve_GIC/CMakeLists.txt
++++ b/example/Nerve_GIC/CMakeLists.txt
+@@ -13,14 +13,14 @@ if (NOT CGAL_VERSION VERSION_LESS 4.8.1)
+
+ # Copy files for not to pollute sources when testing
+ file(COPY "${CMAKE_SOURCE_DIR}/data/points/tore3D_1307.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
+- file(COPY "${CMAKE_SOURCE_DIR}/data/points/COIL_database/lucky_cat.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
+- file(COPY "${CMAKE_SOURCE_DIR}/data/points/COIL_database/lucky_cat_PCA1" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
++ #file(COPY "${CMAKE_SOURCE_DIR}/data/points/COIL_database/lucky_cat.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
++ #file(COPY "${CMAKE_SOURCE_DIR}/data/points/COIL_database/lucky_cat_PCA1" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
+
+ add_test(NAME Nerve_GIC_example_CoordGIC COMMAND $<TARGET_FILE:CoordGIC>
+ "tore3D_1307.off" "0")
+
+- add_test(NAME Nerve_GIC_example_FuncGIC COMMAND $<TARGET_FILE:FuncGIC>
+- "lucky_cat.off"
+- "lucky_cat_PCA1")
++ #add_test(NAME Nerve_GIC_example_FuncGIC COMMAND $<TARGET_FILE:FuncGIC>
++ # "lucky_cat.off"
++ # "lucky_cat_PCA1")
+
+ endif (NOT CGAL_VERSION VERSION_LESS 4.8.1)
+diff --git a/example/Persistent_cohomology/CMakeLists.txt b/example/Persistent_cohomology/CMakeLists.txt
+index 18e2913..e2dca6d 100644
+--- a/example/Persistent_cohomology/CMakeLists.txt
++++ b/example/Persistent_cohomology/CMakeLists.txt
+@@ -29,10 +29,10 @@ add_test(NAME Persistent_cohomology_example_from_rips_step_by_step_on_tore_3D CO
+ "${CMAKE_SOURCE_DIR}/data/points/tore3D_1307.off" "-r" "0.25" "-m" "0.5" "-d" "3" "-p" "3")
+ add_test(NAME Persistent_cohomology_example_via_boundary_matrix COMMAND $<TARGET_FILE:rips_persistence_via_boundary_matrix>
+ "${CMAKE_SOURCE_DIR}/data/points/Kl.off" "-r" "0.16" "-d" "3" "-p" "3" "-m" "100")
+-add_test(NAME Persistent_cohomology_example_from_file_3_2_0 COMMAND $<TARGET_FILE:persistence_from_file>
+- "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/bunny_5000_complex.fsc" "-p" "2" "-m" "0")
+-add_test(NAME Persistent_cohomology_example_from_file_3_3_100 COMMAND $<TARGET_FILE:persistence_from_file>
+- "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/bunny_5000_complex.fsc" "-p" "3" "-m" "100")
++#add_test(NAME Persistent_cohomology_example_from_file_3_2_0 COMMAND $<TARGET_FILE:persistence_from_file>
++# "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/bunny_5000_complex.fsc" "-p" "2" "-m" "0")
++#add_test(NAME Persistent_cohomology_example_from_file_3_3_100 COMMAND $<TARGET_FILE:persistence_from_file>
++# "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/bunny_5000_complex.fsc" "-p" "3" "-m" "100")
+
+ install(TARGETS plain_homology DESTINATION bin)
+ install(TARGETS persistence_from_simple_simplex_tree DESTINATION bin)
+diff --git a/example/Simplex_tree/CMakeLists.txt b/example/Simplex_tree/CMakeLists.txt
+index b33b2d0..1cba524 100644
+--- a/example/Simplex_tree/CMakeLists.txt
++++ b/example/Simplex_tree/CMakeLists.txt
+@@ -30,8 +30,8 @@ if(GMP_FOUND AND CGAL_FOUND)
+ if (TBB_FOUND)
+ target_link_libraries(Simplex_tree_example_alpha_shapes_3_from_off ${TBB_LIBRARIES})
+ endif()
+- add_test(NAME Simplex_tree_example_alpha_shapes_3_from_off COMMAND $<TARGET_FILE:Simplex_tree_example_alpha_shapes_3_from_off>
+- "${CMAKE_SOURCE_DIR}/data/points/bunny_5000.off")
++# add_test(NAME Simplex_tree_example_alpha_shapes_3_from_off COMMAND $<TARGET_FILE:Simplex_tree_example_alpha_shapes_3_from_off>
++# "${CMAKE_SOURCE_DIR}/data/points/bunny_5000.off")
+
+ install(TARGETS Simplex_tree_example_alpha_shapes_3_from_off DESTINATION bin)
+
+diff --git a/example/common/CMakeLists.txt b/example/common/CMakeLists.txt
+index afe865d..2ad4a64 100644
+--- a/example/common/CMakeLists.txt
++++ b/example/common/CMakeLists.txt
+@@ -3,8 +3,8 @@ project(Common_examples)
+
+ add_executable ( vector_double_off_reader example_vector_double_points_off_reader.cpp )
+ target_link_libraries(vector_double_off_reader ${CGAL_LIBRARY})
+-add_test(NAME Common_example_vector_double_off_reader COMMAND $<TARGET_FILE:vector_double_off_reader>
+- "${CMAKE_SOURCE_DIR}/data/points/SO3_10000.off")
++#add_test(NAME Common_example_vector_double_off_reader COMMAND $<TARGET_FILE:vector_double_off_reader>
++# "${CMAKE_SOURCE_DIR}/data/points/SO3_10000.off")
+
+ install(TARGETS vector_double_off_reader DESTINATION bin)
+
+diff --git a/utilities/Nerve_GIC/CMakeLists.txt b/utilities/Nerve_GIC/CMakeLists.txt
+index 7762c8a..c41898b 100644
+--- a/utilities/Nerve_GIC/CMakeLists.txt
++++ b/utilities/Nerve_GIC/CMakeLists.txt
+@@ -13,12 +13,12 @@ if (NOT CGAL_VERSION VERSION_LESS 4.8.1)
+
+ file(COPY KeplerMapperVisuFromTxtFile.py km.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
+ # Copy files for not to pollute sources when testing
+- file(COPY "${CMAKE_SOURCE_DIR}/data/points/human.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
++ #file(COPY "${CMAKE_SOURCE_DIR}/data/points/human.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
+
+- add_test(NAME Nerve_GIC_utilities_nerve COMMAND $<TARGET_FILE:Nerve>
+- "human.off" "2" "10" "0.3")
++ #add_test(NAME Nerve_GIC_utilities_nerve COMMAND $<TARGET_FILE:Nerve>
++ # "human.off" "2" "10" "0.3")
+
+- add_test(NAME Nerve_GIC_utilities_VoronoiGIC COMMAND $<TARGET_FILE:VoronoiGIC>
+- "human.off" "100")
++ #add_test(NAME Nerve_GIC_utilities_VoronoiGIC COMMAND $<TARGET_FILE:VoronoiGIC>
++ # "human.off" "100")
+
+ endif (NOT CGAL_VERSION VERSION_LESS 4.8.1)
diff --git a/debian/patches/0004-Use-system-MathJax.patch b/debian/patches/0004-Use-system-MathJax.patch
new file mode 100644
index 00000000..c3346d1e
--- /dev/null
+++ b/debian/patches/0004-Use-system-MathJax.patch
@@ -0,0 +1,21 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 9 Oct 2017 16:06:36 +0200
+Subject: [PATCH 4/5] Use system MathJax.
+
+---
+ Doxyfile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Doxyfile b/Doxyfile
+index f1981e2..991645b 100644
+--- a/Doxyfile
++++ b/Doxyfile
+@@ -1453,7 +1453,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 = ../common
++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/0005-Don-t-set-runtime_library_dirs-for-the-Python-extens.patch b/debian/patches/0005-Don-t-set-runtime_library_dirs-for-the-Python-extens.patch
new file mode 100644
index 00000000..9f4c6412
--- /dev/null
+++ b/debian/patches/0005-Don-t-set-runtime_library_dirs-for-the-Python-extens.patch
@@ -0,0 +1,22 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 16 Oct 2017 13:46:22 +0200
+Subject: [PATCH 5/5] Don't set runtime_library_dirs for the Python extension.
+ Avoid RPATH in the shared object.
+
+---
+ cython/setup.py.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cython/setup.py.in b/cython/setup.py.in
+index c767e93..d00f65a 100644
+--- a/cython/setup.py.in
++++ b/cython/setup.py.in
+@@ -36,7 +36,7 @@ gudhi = Extension(
+ libraries=[@GUDHI_CYTHON_LIBRARIES@],
+ library_dirs=[@GUDHI_CYTHON_LIBRARY_DIRS@],
+ include_dirs = [@GUDHI_CYTHON_INCLUDE_DIRS@],
+- runtime_library_dirs=[@GUDHI_CYTHON_RUNTIME_LIBRARY_DIRS@],
++ runtime_library_dirs=[],
+ )
+
+ setup(
diff --git a/debian/patches/0007-CGAL-4.12-compatibility.patch b/debian/patches/0007-CGAL-4.12-compatibility.patch
new file mode 100644
index 00000000..604c40e7
--- /dev/null
+++ b/debian/patches/0007-CGAL-4.12-compatibility.patch
@@ -0,0 +1,72 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Fri, 18 May 2018 19:13:09 +0200
+Subject: CGAL 4.12 compatibility.
+
+---
+ utilities/Alpha_complex/alpha_complex_3d_persistence.cpp | 1 +
+ utilities/Alpha_complex/exact_alpha_complex_3d_persistence.cpp | 1 +
+ utilities/Alpha_complex/periodic_alpha_complex_3d_persistence.cpp | 1 +
+ utilities/Alpha_complex/weighted_alpha_complex_3d_persistence.cpp | 1 +
+ .../Alpha_complex/weighted_periodic_alpha_complex_3d_persistence.cpp | 1 +
+ 5 files changed, 5 insertions(+)
+
+diff --git a/utilities/Alpha_complex/alpha_complex_3d_persistence.cpp b/utilities/Alpha_complex/alpha_complex_3d_persistence.cpp
+index 8ef5ffb..6491dac 100644
+--- a/utilities/Alpha_complex/alpha_complex_3d_persistence.cpp
++++ b/utilities/Alpha_complex/alpha_complex_3d_persistence.cpp
+@@ -36,6 +36,7 @@
+ #include <CGAL/Delaunay_triangulation_3.h>
+ #include <CGAL/Alpha_shape_3.h>
+ #include <CGAL/iterator.h>
++#include <CGAL/Alpha_shape_vertex_base_3.h>
+
+ #include <fstream>
+ #include <cmath>
+diff --git a/utilities/Alpha_complex/exact_alpha_complex_3d_persistence.cpp b/utilities/Alpha_complex/exact_alpha_complex_3d_persistence.cpp
+index cceac46..f762024 100644
+--- a/utilities/Alpha_complex/exact_alpha_complex_3d_persistence.cpp
++++ b/utilities/Alpha_complex/exact_alpha_complex_3d_persistence.cpp
+@@ -31,6 +31,7 @@
+ #include <CGAL/Delaunay_triangulation_3.h>
+ #include <CGAL/Alpha_shape_3.h>
+ #include <CGAL/iterator.h>
++#include <CGAL/Alpha_shape_vertex_base_3.h>
+
+ #include <fstream>
+ #include <cmath>
+diff --git a/utilities/Alpha_complex/periodic_alpha_complex_3d_persistence.cpp b/utilities/Alpha_complex/periodic_alpha_complex_3d_persistence.cpp
+index 188cf60..a69ba9f 100644
+--- a/utilities/Alpha_complex/periodic_alpha_complex_3d_persistence.cpp
++++ b/utilities/Alpha_complex/periodic_alpha_complex_3d_persistence.cpp
+@@ -33,6 +33,7 @@
+ #include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
+ #include <CGAL/Alpha_shape_3.h>
+ #include <CGAL/iterator.h>
++#include <CGAL/Alpha_shape_vertex_base_3.h>
+
+ #include <fstream>
+ #include <cmath>
+diff --git a/utilities/Alpha_complex/weighted_alpha_complex_3d_persistence.cpp b/utilities/Alpha_complex/weighted_alpha_complex_3d_persistence.cpp
+index 93be8a0..b35ae31 100644
+--- a/utilities/Alpha_complex/weighted_alpha_complex_3d_persistence.cpp
++++ b/utilities/Alpha_complex/weighted_alpha_complex_3d_persistence.cpp
+@@ -32,6 +32,7 @@
+ #include <CGAL/Regular_triangulation_3.h>
+ #include <CGAL/Alpha_shape_3.h>
+ #include <CGAL/iterator.h>
++#include <CGAL/Alpha_shape_vertex_base_3.h>
+
+ // For CGAL < 4.11
+ #if CGAL_VERSION_NR < 1041100000
+diff --git a/utilities/Alpha_complex/weighted_periodic_alpha_complex_3d_persistence.cpp b/utilities/Alpha_complex/weighted_periodic_alpha_complex_3d_persistence.cpp
+index 5321bb0..16864b5 100644
+--- a/utilities/Alpha_complex/weighted_periodic_alpha_complex_3d_persistence.cpp
++++ b/utilities/Alpha_complex/weighted_periodic_alpha_complex_3d_persistence.cpp
+@@ -32,6 +32,7 @@
+ #include <CGAL/Periodic_3_regular_triangulation_3.h>
+ #include <CGAL/Alpha_shape_3.h>
+ #include <CGAL/iterator.h>
++#include <CGAL/Alpha_shape_vertex_base_3.h>
+
+ #include <fstream>
+ #include <cmath>
diff --git a/debian/patches/0008-Force-linking-of-Python-module-with-CGAL.patch b/debian/patches/0008-Force-linking-of-Python-module-with-CGAL.patch
new file mode 100644
index 00000000..2b3a91ba
--- /dev/null
+++ b/debian/patches/0008-Force-linking-of-Python-module-with-CGAL.patch
@@ -0,0 +1,21 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Thu, 24 May 2018 11:24:43 +0200
+Subject: Force linking of Python module with CGAL.
+
+---
+ cython/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt
+index ec3cb8f..87b2846 100644
+--- a/cython/CMakeLists.txt
++++ b/cython/CMakeLists.txt
+@@ -103,7 +103,7 @@ if(CYTHON_FOUND)
+ if(CGAL_HEADER_ONLY)
+ set(GUDHI_CYTHON_EXTRA_COMPILE_ARGS "${GUDHI_CYTHON_EXTRA_COMPILE_ARGS}'-DCGAL_HEADER_ONLY', ")
+ else(CGAL_HEADER_ONLY)
+- add_gudhi_cython_lib(${CGAL_LIBRARIES})
++ add_gudhi_cython_lib("${CGAL_LIBRARIES_DIR}/libCGAL.so")
+ set(GUDHI_CYTHON_LIBRARY_DIRS "${GUDHI_CYTHON_LIBRARY_DIRS}'${CGAL_LIBRARIES_DIR}', ")
+ # If CGAL is not header only, CGAL library may link with boost system,
+ add_gudhi_cython_lib(${Boost_SYSTEM_LIBRARY})
diff --git a/debian/patches/0009-Rounding-workaround-on-i686.patch b/debian/patches/0009-Rounding-workaround-on-i686.patch
new file mode 100644
index 00000000..39629fe1
--- /dev/null
+++ b/debian/patches/0009-Rounding-workaround-on-i686.patch
@@ -0,0 +1,21 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Mon, 11 Jun 2018 15:42:51 +0200
+Subject: Rounding workaround on i686.
+
+---
+ include/gudhi/Bottleneck.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/gudhi/Bottleneck.h b/include/gudhi/Bottleneck.h
+index 7aee07b..ffa87a8 100644
+--- a/include/gudhi/Bottleneck.h
++++ b/include/gudhi/Bottleneck.h
+@@ -42,7 +42,7 @@ double bottleneck_distance_approx(Persistence_graph& g, double e) {
+ Graph_matching m(g);
+ Graph_matching biggest_unperfect(g);
+ while (b_upper_bound - b_lower_bound > 2 * e) {
+- double step = b_lower_bound + (b_upper_bound - b_lower_bound) / alpha;
++ volatile double step = b_lower_bound + (b_upper_bound - b_lower_bound) / alpha;
+ if (step <= b_lower_bound || step >= b_upper_bound) // Avoid precision problem
+ break;
+ m.set_r(step);
diff --git a/debian/patches/0010-Force-linking-against-libatomic-for-parts-that-use-T.patch b/debian/patches/0010-Force-linking-against-libatomic-for-parts-that-use-T.patch
new file mode 100644
index 00000000..cbf39039
--- /dev/null
+++ b/debian/patches/0010-Force-linking-against-libatomic-for-parts-that-use-T.patch
@@ -0,0 +1,21 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Tue, 12 Jun 2018 15:20:07 +0200
+Subject: Force linking against libatomic for parts that use TBB.
+
+---
+ cmake/modules/FindTBB.cmake | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake
+index 13f4d92..6baa8d7 100644
+--- a/cmake/modules/FindTBB.cmake
++++ b/cmake/modules/FindTBB.cmake
+@@ -375,6 +375,8 @@ if (TBB_INCLUDE_DIR)
+ endif(NOT TBB_without_pthread)
+ endif(UNIX AND NOT APPLE)
+
++ list(APPEND ALL_TBB_LIBRARIES atomic)
++
+ set (TBB_LIBRARIES ${ALL_TBB_LIBRARIES}
+ CACHE PATH "TBB libraries" FORCE)
+
diff --git a/debian/patches/no-external-doc-resources.patch b/debian/patches/no-external-doc-resources.patch
new file mode 100644
index 00000000..735ac63b
--- /dev/null
+++ b/debian/patches/no-external-doc-resources.patch
@@ -0,0 +1,88 @@
+From: Gard Spreemann <gspreemann@gmail.com>
+Date: Fri, 18 May 2018 19:09:11 +0200
+Subject: no-external-doc-resources
+
+Remove external resource references from Doxygen header. Later upstream
+versions will include an alternative header that does the job.
+---
+ doc/common/header.html | 60 --------------------------------------------------
+ 1 file changed, 60 deletions(-)
+
+diff --git a/doc/common/header.html b/doc/common/header.html
+index 9c51438..6a02a89 100644
+--- a/doc/common/header.html
++++ b/doc/common/header.html
+@@ -8,8 +8,6 @@
+ <meta name="generator" content="Doxygen $doxygenversion"/>
+ <!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
+ <!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
+-<!-- GUDHI website css for header BEGIN -->
+-<link rel="stylesheet" type="text/css" href="http://pages.saclay.inria.fr/vincent.rouvreau/gudhi/gudhi-doc-2.0.0/assets/css/styles_feeling_responsive.css" />
+ <!-- GUDHI website css for header END -->
+ <link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
+ <script type="text/javascript" src="$relpath^jquery.js"></script>
+@@ -22,64 +20,6 @@ $extrastylesheet
+ </head>
+ <body>
+
+-<!-- GUDHI website header BEGIN -->
+-<div id="navigation" class="sticky">
+- <nav class="top-bar" role="navigation" data-topbar>
+- <ul class="title-area">
+- <li class="name">
+- <h1 class="show-for-small-only"><a href="http://gudhi.gforge.inria.fr" class="icon-tree"> GUDHI C++ library</a></h1>
+- </li>
+- <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
+- <li class="toggle-topbar menu-icon"><a href="#"><span>Navigation</span></a></li>
+- </ul>
+- <section class="top-bar-section">
+- <ul class="right">
+- <li class="divider"></li>
+- <li><a href="http://gudhi.gforge.inria.fr/contact/">Contact</a></li>
+- </ul>
+- <ul class="left">
+- <li><a href="http://gudhi.gforge.inria.fr/"> <img src="http://gudhi.gforge.inria.fr/assets/img/home.png" alt="&nbsp;&nbsp;GUDHI">&nbsp;&nbsp;GUDHI </a></li>
+- <li class="divider"></li>
+- <li class="has-dropdown">
+- <a href="#">Project</a>
+- <ul class="dropdown">
+- <li><a href="http://gudhi.gforge.inria.fr/people/">People</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/keepintouch/">Keep in touch</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/partners/">Partners and Funding</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/relatedprojects/">Related projects</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/theyaretalkingaboutus/">They are talking about us</a></li>
+- </ul>
+- </li>
+- <li class="divider"></li>
+- <li class="has-dropdown">
+- <a href="#">Download</a>
+- <ul class="dropdown">
+- <li><a href="http://gudhi.gforge.inria.fr/licensing/">Licensing</a></li>
+- <li><a href="https://gforge.inria.fr/frs/?group_id=3865" target="_blank">Get the sources</a></li>
+- <li><a href="https://gforge.inria.fr/frs/download.php/file/37113/GUDHI_2.0.0_OSX_UTILS.beta.tar.gz" target="_blank">Utils for Mac OSx</a></li>
+- <li><a href="https://gforge.inria.fr/frs/download.php/file/37112/GUDHI_2.0.0_WIN64_UTILS.beta.zip" target="_blank">Utils for Win x64</a></li>
+- </ul>
+- </li>
+- <li class="divider"></li>
+- <li class="has-dropdown">
+- <a href="#">Documentation</a>
+- <ul class="dropdown">
+- <li><a href="http://gudhi.gforge.inria.fr/doc/latest/">C++ documentation</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/doc/latest/installation.html">C++ installation manual</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/python/latest/">Python documentation</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/python/latest/installation.html">Python installation manual</a></li>
+- <li><a href="http://gudhi.gforge.inria.fr/utils/">Utilities</a></li>
+- <li><a href="http://bertrand.michel.perso.math.cnrs.fr/Enseignements/TDA-Gudhi-Python.html" target="_blank">Tutorial</a></li>
+- </ul>
+- </li>
+- <li class="divider"></li>
+- <li><a href="http://gudhi.gforge.inria.fr/interfaces/">Interfaces</a></li>
+- <li class="divider"></li>
+- </ul>
+- </section>
+- </nav>
+-</div><!-- /#navigation -->
+-<!-- GUDHI website header BEGIN -->
+
+ <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..d1e36399
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,10 @@
+0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch
+0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch
+0003-Disable-tests-that-use-DFSG-deleted-data-files.patch
+0004-Use-system-MathJax.patch
+0005-Don-t-set-runtime_library_dirs-for-the-Python-extens.patch
+no-external-doc-resources.patch
+0007-CGAL-4.12-compatibility.patch
+0008-Force-linking-of-Python-module-with-CGAL.patch
+0009-Rounding-workaround-on-i686.patch
+0010-Force-linking-against-libatomic-for-parts-that-use-T.patch
diff --git a/debian/python3-gudhi.install b/debian/python3-gudhi.install
new file mode 100644
index 00000000..22b018bc
--- /dev/null
+++ b/debian/python3-gudhi.install
@@ -0,0 +1 @@
+build/cython/gudhi*.so usr/lib/python3/dist-packages/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..5f8617be
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
+%:
+# The --buildirectory=build is there so that we can easily get a hold
+# of documentation and examples, which are not installed by upstream.
+ dh $@ --with=python3 --builddirectory=build
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DWITH_GUDHI_BENCHMARK=true -DWITH_GUDHI_EXAMPLE=true -DWITH_GUDHI_PYTHON=true -DWITH_GUDHI_TEST=true -DWITH_GUDHI_UTILITIES=true
+
+override_dh_auto_build-indep:
+ make -C build doxygen
+ dh_auto_build --builddirectory=build
+
+override_dh_auto_test:
+ dh_auto_test --no-parallel --builddirectory=build
+
+override_dh_auto_install:
+ find example -type f \( -name '*.cpp' -o \( -name '*.txt' -a ! -iname 'cmake*' \) \) -exec sh -c 'install -D -m 644 $$0 debian/tmp/usr/share/doc/libgudhi-examples/$$0' {} \;
+ dh_auto_install --builddirectory=build
+ mv debian/tmp/usr/bin/Witness_complex_strong_witness_persistence debian/tmp/usr/bin/gudhi-witness-complex-strong-witness-persistence
+ mv debian/tmp/usr/bin/Witness_complex_weak_witness_persistence debian/tmp/usr/bin/gudhi-witness-complex-weak-witness-persistence
+ mv debian/tmp/usr/bin/alpha_complex_3d_persistence debian/tmp/usr/bin/gudhi-alpha-complex-3d-persistence
+ mv debian/tmp/usr/bin/alpha_complex_persistence debian/tmp/usr/bin/gudhi-alpha-complex-persistence
+ mv debian/tmp/usr/bin/bottleneck_distance debian/tmp/usr/bin/gudhi-bottleneck-distance
+ mv debian/tmp/usr/bin/cubical_complex_persistence debian/tmp/usr/bin/gudhi-cubical-complex-persistence
+ mv debian/tmp/usr/bin/exact_alpha_complex_3d_persistence debian/tmp/usr/bin/gudhi-exact-alpha-complex-3d-persistence
+ mv debian/tmp/usr/bin/off_file_from_shape_generator debian/tmp/usr/bin/gudhi-off-file-from-shape-generator
+ mv debian/tmp/usr/bin/periodic_alpha_complex_3d_persistence debian/tmp/usr/bin/gudhi-periodic-alpha-complex-3d-persistence
+ mv debian/tmp/usr/bin/periodic_cubical_complex_persistence debian/tmp/usr/bin/gudhi-periodic-cubical-complex-persistence
+ mv debian/tmp/usr/bin/rips_distance_matrix_persistence debian/tmp/usr/bin/gudhi-rips-distance-matrix-persistence
+ mv debian/tmp/usr/bin/rips_persistence debian/tmp/usr/bin/gudhi-rips-persistence
+ mv debian/tmp/usr/bin/weighted_alpha_complex_3d_persistence debian/tmp/usr/bin/gudhi-weighted-alpha-complex-3d-persistence
+ mv debian/tmp/usr/bin/weighted_periodic_alpha_complex_3d_persistence debian/tmp/usr/bin/gudhi-weighted-periodic-alpha-complex-3d-persistence
+ install -D build/GudhUI/GudhUI debian/tmp/usr/bin/gudhui
+
+override_dh_compress:
+ dh_compress -X.cpp
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 00000000..163aaf8d
--- /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 00000000..49eabb3f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: python-upstream
+Depends: python3-gudhi, python3-pytest \ No newline at end of file
diff --git a/debian/tests/python-upstream b/debian/tests/python-upstream
new file mode 100755
index 00000000..ed1c6027
--- /dev/null
+++ b/debian/tests/python-upstream
@@ -0,0 +1,19 @@
+#!/usr/bin/python3 -B
+
+import pytest
+import os
+
+tmpdir = os.getenv("AUTOPKGTEST_TMP")
+
+if tmpdir is None:
+ print("Need the environment variable AUTOPKGTEST_TMP.")
+ exit(1)
+
+cwd = os.getcwd()
+test_path = cwd + "/cython/test"
+
+os.chdir(tmpdir)
+
+print("Running tests from %s with cwd %s." %(test_path, os.getcwd()))
+
+exit(pytest.main([test_path]))
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 00000000..d518384a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+
+opts="dversionmangle=s/\+dfsg(\.\d+)?$//,filenamemangle=s/\S+\/v?(\S+)\.tar\.gz/gudhi-$1\.tar\.gz/" \
+ https://gforge.inria.fr/frs/?group_id=3865 \
+ .*\/.*GUDHI_(\d[\d.-]*)\.tar\.gz