From 0ccbdf61cd4d0c2b051f196302b09a5bfd577fba Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Wed, 30 Oct 2019 12:27:22 +0100 Subject: Initial Debian packaging. --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 21 +++++++++++++++++++++ debian/copyright | 33 +++++++++++++++++++++++++++++++++ debian/ripser.install | 1 + debian/rules | 20 ++++++++++++++++++++ debian/source/format | 1 + 7 files changed, 82 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/ripser.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9b746ad --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ripser (1.1-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #943817) + + -- Gard Spreemann Wed, 30 Oct 2019 11:59:50 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..63fa63a --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: ripser +Section: math +Priority: optional +Maintainer: Gard Spreemann +Build-Depends: + debhelper (>= 12) +Standards-Version: 4.4.0 +Rules-Requires-Root: no +Homepage: http://ripser.org +Vcs-Browser: https://git.nonempty.org/debian-ripser +Vcs-Git: https://git.nonempty.org/debian-ripser -b debian/sid + +Package: ripser +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: fast computation of persistent homology of flag complexes + Ripser computes persistent homology of flag complexes (such as + Vietoris-Rips complexes) only, allowing significant gains in + computation time and memory usage over the general situation. + . + See https://arxiv.org/abs/1908.02518. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..67f7327 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ripser +Source: http://ripser.org +License: MIT + +Files: * +Copyright: 2015-2019 Ulrich Bauer +License: MIT + +Files: debian/* +Copyright: 2019 Gard Spreemann +License: MIT + +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/ripser.install b/debian/ripser.install new file mode 100644 index 0000000..8dd1c67 --- /dev/null +++ b/debian/ripser.install @@ -0,0 +1 @@ +build/* usr/bin/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8ef0cd9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/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) + +%: + dh $@ + +override_dh_auto_configure: + mkdir -p build + +override_dh_auto_build: + c++ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o build/ripser ripser.cpp + c++ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DUSE_COEFFICIENTS -o build/ripser-coeff ripser.cpp + +override_dh_auto_clean: + rm -rf build + dh_auto_clean 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) -- cgit v1.2.3