diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 110 | ||||
-rw-r--r-- | debian/copyright | 86 | ||||
-rw-r--r-- | debian/gudhui.install | 1 | ||||
-rw-r--r-- | debian/libgudhi-dev.docs | 1 | ||||
-rw-r--r-- | debian/libgudhi-dev.install | 2 | ||||
-rw-r--r-- | debian/libgudhi-doc.install | 1 | ||||
-rw-r--r-- | debian/libgudhi-examples.docs | 1 | ||||
-rw-r--r-- | debian/libgudhi-examples.install | 1 | ||||
-rw-r--r-- | debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch | 36 | ||||
-rw-r--r-- | debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch | 32 | ||||
-rw-r--r-- | debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch | 63 | ||||
-rw-r--r-- | debian/patches/0004-Use-system-MathJax.patch | 25 | ||||
-rw-r--r-- | debian/patches/series | 4 | ||||
-rw-r--r-- | debian/python3-gudhi.install | 1 | ||||
-rwxr-xr-x | debian/rules | 33 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tests/control | 2 | ||||
-rwxr-xr-x | debian/tests/python-upstream | 19 | ||||
-rw-r--r-- | debian/watch | 5 |
21 files changed, 430 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..1d43f2b6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +gudhi (2.0.1+dfsg-1) unstable; urgency=medium + + * Initial packaging. (Closes: #840686) + + -- Gard Spreemann <gspreemann@gmail.com> Mon, 09 Oct 2017 10:50:00 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..8a554ecd --- /dev/null +++ b/debian/control @@ -0,0 +1,110 @@ +Source: gudhi +Maintainer: Gard Spreemann <gspreemann@gmail.com> +Section: math +Priority: optional +Standards-Version: 4.0.0 +Build-Depends: cmake (>= 2.6), cython3, debhelper (>= 10), dh-python, doxygen, + graphviz, 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.8.1), libcgal-qt5-dev (>= 4.8.1), libeigen3-dev (>= 3.1.0), + libgmp-dev (>= 4.2), libqglviewer-dev-qt5, libtbb-dev, python3-dev, + python3-matplotlib, python3-tk, qtbase5-dev +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 +Testsuite: autopkgtest + +Package: libgudhi-dev +Section: libdevel +Architecture: all +Multi-Arch: foreign +Depends: ${misc: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.8.1), + libeigen3-dev (>= 3.1.0), libgmp-dev (>= 4.2), libtbb-dev +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: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: libgudhi-dev, libgudhi-doc +Description: Example programs 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 some upstream example programs and their source + code. + +Package: libgudhi-doc +Section: doc +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends}, libjs-mathjax +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: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} +Recommends: python3-matplotlib +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: ${shlibs:Depends}, ${misc: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. +
\ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..25754d81 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,86 @@ +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* +Source: http://gudhi.gforge.inria.fr + Deleted unnecessary precompiled binary and upstream data files of unclear licensing status. + +Files: * +Copyright: 2014-2017 Inria Sophia Antipolis - Méditerranée + 2014-2017 Inria Saclay - Île-de-France + 2014-2017 Université Nice Sophia Antipolis +License: GPL-3.0+ + +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 + 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: debian/* +Copyright: 2016 Gard Spreemann <gspreemann@gmail.com> +License: GPL-3.0+ + +License: GPL-3.0+ + 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.
\ No newline at end of file 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/libgudhi-dev.docs b/debian/libgudhi-dev.docs new file mode 100644 index 00000000..e9849ee8 --- /dev/null +++ b/debian/libgudhi-dev.docs @@ -0,0 +1 @@ +biblio
\ No newline at end of file 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.install b/debian/libgudhi-doc.install new file mode 100644 index 00000000..e3362a5f --- /dev/null +++ b/debian/libgudhi-doc.install @@ -0,0 +1 @@ +doc/html/* usr/share/doc/libgudhi/html/
\ No newline at end of file diff --git a/debian/libgudhi-examples.docs b/debian/libgudhi-examples.docs new file mode 100644 index 00000000..dbf60533 --- /dev/null +++ b/debian/libgudhi-examples.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/libgudhi-examples/*
\ No newline at end of file diff --git a/debian/libgudhi-examples.install b/debian/libgudhi-examples.install new file mode 100644 index 00000000..c1e7a4f5 --- /dev/null +++ b/debian/libgudhi-examples.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/libgudhi-example-* 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..b6e05ed7 --- /dev/null +++ b/debian/patches/0001-Force-Python-3-detection-to-avoid-mixing-2-and-3.patch @@ -0,0 +1,36 @@ +From e92363ab8125cff24a9c2ef5eec159ff09afc381 Mon Sep 17 00:00:00 2001 +From: Gard Spreemann <gspreemann@gmail.com> +Date: Mon, 9 Oct 2017 11:46:06 +0200 +Subject: [PATCH 1/4] 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() + +-- +2.11.0 + 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..2eb76f06 --- /dev/null +++ b/debian/patches/0002-Disable-the-Sphinx-test.-We-re-not-using-it-as-it-re.patch @@ -0,0 +1,32 @@ +From 2511e115a28311263e7ed85e98296c6af12ea960 Mon Sep 17 00:00:00 2001 +From: Gard Spreemann <gspreemann@gmail.com> +Date: Mon, 9 Oct 2017 12:05:01 +0200 +Subject: [PATCH 2/4] 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) +-- +2.11.0 + 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..eade3da7 --- /dev/null +++ b/debian/patches/0003-Disable-tests-that-use-DFSG-deleted-data-files.patch @@ -0,0 +1,63 @@ +From f31347031ea99c60d11064ec28bc27805b5c28b9 Mon Sep 17 00:00:00 2001 +From: Gard Spreemann <gspreemann@gmail.com> +Date: Mon, 9 Oct 2017 14:15:02 +0200 +Subject: [PATCH 3/4] Disable tests that use DFSG-deleted data files. + +--- + example/Persistent_cohomology/CMakeLists.txt | 8 ++++---- + example/Simplex_tree/CMakeLists.txt | 4 ++-- + example/common/CMakeLists.txt | 4 ++-- + 3 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/example/Persistent_cohomology/CMakeLists.txt b/example/Persistent_cohomology/CMakeLists.txt +index f47de4c..8f11ea0 100644 +--- a/example/Persistent_cohomology/CMakeLists.txt ++++ b/example/Persistent_cohomology/CMakeLists.txt +@@ -41,10 +41,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 e22cc92..99da80f 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) + +-- +2.11.0 + diff --git a/debian/patches/0004-Use-system-MathJax.patch b/debian/patches/0004-Use-system-MathJax.patch new file mode 100644 index 00000000..916d23b9 --- /dev/null +++ b/debian/patches/0004-Use-system-MathJax.patch @@ -0,0 +1,25 @@ +From 46fdbaf1a91c320d7f731d061ef6d8d6da73232a Mon Sep 17 00:00:00 2001 +From: Gard Spreemann <gspreemann@gmail.com> +Date: Mon, 9 Oct 2017 16:06:36 +0200 +Subject: [PATCH 4/4] Use system MathJax. + +--- + Doxyfile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Doxyfile b/Doxyfile +index 0ef81e5..51df82e 100644 +--- a/Doxyfile ++++ b/Doxyfile +@@ -1450,7 +1450,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 +-- +2.11.0 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..d1117f4a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,4 @@ +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 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..73d0e213 --- /dev/null +++ b/debian/rules @@ -0,0 +1,33 @@ +#!/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_clean: + rm -f GUDHIVersion.cmake + rm -rf doc/html + dh_auto_clean --builddirectory=build + +override_dh_auto_build: + 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 build/example -executable -type f -exec sh -c 'install -D $$0 debian/tmp/usr/bin/libgudhi-example-$$(basename $$0)' {} \; + 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' {} \; + install -D build/GudhUI/GudhUI debian/tmp/usr/bin/gudhui + dh_auto_install --builddirectory=build + 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 |