summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tille <tille@debian.org>2023-02-07 09:05:03 +0100
committerAndreas Tille <tille@debian.org>2023-02-07 09:05:03 +0100
commit557fb16509d9b931a479ccfc02f3f147efc47572 (patch)
treeacd34173c5612807085f612391735eb54eeca498
parent2237ffc27902716bdcb3a608044043aa51dc7728 (diff)
parentcdef95b47b854e350fa1dae2e15ac5d999654c21 (diff)
libvbz-hdf-plugin (1.0.2-2) unstable; urgency=medium
* Remove symbols file according to https://wiki.debian.org/UsingSymbolsFiles#C.2B-.2B-_libraries * Add lintian-overrides to express that symbols file was removed intentionally * Standards-Version: 4.6.2 (routine-update) [dgit import unpatched libvbz-hdf-plugin 1.0.2-2]
-rw-r--r--debian/changelog51
-rw-r--r--debian/control56
-rw-r--r--debian/copyright254
-rw-r--r--debian/libvbz-hdf-plugin-dev.install4
-rw-r--r--debian/libvbz-hdf-plugin0.install1
-rw-r--r--debian/libvbz-hdf-plugin0.lintian-overrides2
-rw-r--r--debian/patches/fix-install-location.patch15
-rw-r--r--debian/patches/series3
-rw-r--r--debian/patches/soversion.patch13
-rw-r--r--debian/patches/use-packaged-streamvbyte.patch79
-rwxr-xr-xdebian/rules25
-rw-r--r--debian/salsa-ci.yml7
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata7
-rw-r--r--debian/watch4
15 files changed, 522 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3ef3792
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,51 @@
+libvbz-hdf-plugin (1.0.2-2) unstable; urgency=medium
+
+ * Remove symbols file according to
+ https://wiki.debian.org/UsingSymbolsFiles#C.2B-.2B-_libraries
+ * Add lintian-overrides to express that symbols file was removed
+ intentionally
+ * Standards-Version: 4.6.2 (routine-update)
+
+ -- Andreas Tille <tille@debian.org> Tue, 07 Feb 2023 09:05:03 +0100
+
+libvbz-hdf-plugin (1.0.2-1) unstable; urgency=medium
+
+ * New upstream version
+ * Standards-Version: 4.6.1 (routine-update)
+ * Drop unnecessary dependency on build-essential.
+ * Apply multi-arch hints.
+ + libvbz-hdf-plugin-dev: Add Multi-Arch: same.
+ * Refresh use-packaged-streamvbyte.patch.
+ * Refresh fix-install-location.patch.
+ * Delete update-catch2.patch: applied upstream.
+ * d/rules: enable hardening.
+ * Add symbols tracking for libvbz-hdf-plugin0.
+
+ -- Étienne Mollier <emollier@debian.org> Sun, 03 Jul 2022 14:23:31 +0200
+
+libvbz-hdf-plugin (1.0.1-3) unstable; urgency=medium
+
+ [ Steve Langasek ]
+ * Import catch2 version 2.13.8 to fix build failure with glibc 2.34
+ Closes: #1009620
+
+ [ Andreas Tille ]
+ * Fix watchfile to detect new versions on github
+ * Standards-Version: 4.6.0 (routine-update)
+
+ -- Nilesh Patra <nilesh@debian.org> Thu, 14 Apr 2022 23:58:47 +0530
+
+libvbz-hdf-plugin (1.0.1-2) unstable; urgency=medium
+
+ * Use DEB_HOST_GNU type for every arch since
+ $(DEB_HOST_MULTIARCH) does not match the default
+ build directory used by debhelper
+ * d/salsa-ci.yml: disable reprotest for now
+
+ -- Nilesh Patra <nilesh@debian.org> Fri, 20 Aug 2021 00:23:50 +0530
+
+libvbz-hdf-plugin (1.0.1-1) unstable; urgency=medium
+
+ * Initial release (Closes: #988993)
+
+ -- Andreas Tille <tille@debian.org> Sun, 23 May 2021 10:28:06 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..83b8858
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,56 @@
+Source: libvbz-hdf-plugin
+Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille@debian.org>,
+ Étienne Mollier <emollier@debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper-compat (= 13),
+ cmake,
+ libzstd-dev,
+ libhdf5-dev,
+ libstreamvbyte-dev,
+ dh-exec
+Standards-Version: 4.6.2
+Vcs-Browser: https://salsa.debian.org/med-team/libvbz-hdf-plugin
+Vcs-Git: https://salsa.debian.org/med-team/libvbz-hdf-plugin.git
+Homepage: https://github.com/nanoporetech/vbz_compression/
+Rules-Requires-Root: no
+
+Package: libvbz-hdf-plugin0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Multi-Arch: same
+Description: VBZ compression plugin for nanopore signal data
+ VBZ Compression uses variable byte integer encoding to compress nanopore
+ signal data.
+ .
+ The performance of VBZ is achieved by taking advantage of the properties
+ of the raw signal and therefore is most effective when applied to the
+ signal dataset. Other datasets you may have in your Fast5 files will not
+ be able to take advantage of the default VBZ settings for compression.
+ VBZ will be used as the default compression scheme in a future release
+ of MinKNOW.
+ .
+ This package contains the shared object library.
+
+Package: libvbz-hdf-plugin-dev
+Architecture: any
+Section: libdevel
+Depends: libvbz-hdf-plugin0 (= ${binary:Version}),
+ ${shlibs:Depends},
+ ${misc:Depends}
+Multi-Arch: same
+Description: VBZ compression plugin for nanopore signal data (devel)
+ VBZ Compression uses variable byte integer encoding to compress nanopore
+ signal data.
+ .
+ The performance of VBZ is achieved by taking advantage of the properties
+ of the raw signal and therefore is most effective when applied to the
+ signal dataset. Other datasets you may have in your Fast5 files will not
+ be able to take advantage of the default VBZ settings for compression.
+ VBZ will be used as the default compression scheme in a future release
+ of MinKNOW.
+ .
+ This package contains the header files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5ffeaba
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,254 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: vbz-compression
+Source: https://github.com/nanoporetech/vbz_compression/releases
+
+Files: *
+Copyright: Oxford Nanopore Technologies
+License: MPL-2.0
+
+Files: third_party/gsl/*
+ third_party/gsl.h
+Copyright: 2015, Martin Moene
+ 2015, Microsoft Corporation.
+License: Expat
+
+Files: third_party/catch2/catch.hpp
+Copyright: 2018, Two Blue Cubes Ltd.
+License: Boost-1.0
+
+Files: third_party/catch2/fakeit.hpp
+Copyright: Eran Pe'er 2013
+License: Expat
+
+Files: third_party/hdf5/*
+Copyright: HDF Group <help@hdfgroup.org>
+License: BSD-3-clause
+Comment: Same copyright is also mentioned in src:hdf5
+
+Files: cmake/asan-wrapper
+ cmake/FindASan.cmake
+ cmake/FindMSan.cmake
+ cmake/FindSanitizers.cmake
+ cmake/FindTSan.cmake
+ cmake/FindUBSan.cmake
+ cmake/sanitize-helpers.cmake
+Copyright: 2013, Matthew Arsenault
+ 2015-2016 RWTH Aachen University, Federal Republic of Germany
+License: Expat
+
+Files: cmake/conan.cmake
+Copyright: 2018 JFrog
+License: Expat
+
+Files: debian/*
+Copyright: 2020 Andreas Tille <tille@debian.org>
+ 2021 Nilesh Patra <nilesh@debian.org>
+License: MPL-2.0
+
+License: MPL-2.0
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ .
+ On Debian systems, the complete text of the MPL-2.0 license can be found
+ in "/usr/share/common-licenses/MPL-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: Boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: BSD-3-clause
+ Copyright Notice and License Terms for
+ HDF5 (Hierarchical Data Format 5) Software Library and Utilities
+ -----------------------------------------------------------------------------
+ .
+ HDF5 (Hierarchical Data Format 5) Software Library and Utilities
+ Copyright (c) 2006-2018, The HDF Group.
+ .
+ NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
+ Copyright (c) 1998-2006, The Board of Trustees of the University of Illinois.
+ .
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted for any purpose (including commercial purposes)
+ 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 materials provided with the distribution.
+ .
+ 3. Neither the name of The HDF Group, the name of the University, nor the
+ name of any Contributor may be used to endorse or promote products derived
+ from this software without specific prior written permission from
+ The HDF Group, the University, or the Contributor, respectively.
+ .
+ DISCLAIMER:
+ THIS SOFTWARE IS PROVIDED BY THE HDF GROUP AND THE CONTRIBUTORS
+ "AS IS" WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO EVENT
+ SHALL THE HDF GROUP OR THE CONTRIBUTORS BE LIABLE FOR ANY DAMAGES SUFFERED BY
+ THE USERS ARISING OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ You are under no obligation whatsoever to provide any bug fixes, patches, or
+ upgrades to the features, functionality or performance of the source code
+ ("Enhancements") to anyone; however, if you choose to make your Enhancements
+ available either publicly, or directly to The HDF Group, without imposing a
+ separate written license agreement for such Enhancements, then you hereby grant
+ the following license: a non-exclusive, royalty-free perpetual license to
+ install, use, modify, prepare derivative works, incorporate into other computer
+ software, distribute, and sublicense such enhancements or derivative works
+ thereof, in binary and source code form.
+ .
+ -----------------------------------------------------------------------------
+ -----------------------------------------------------------------------------
+ .
+ Limited portions of HDF5 were developed by Lawrence Berkeley National
+ Laboratory (LBNL). LBNL's Copyright Notice and Licensing Terms can be
+ found here: COPYING_LBNL_HDF5 file in this directory or at
+ http://support.hdfgroup.org/ftp/HDF5/releases/COPYING_LBNL_HDF5.
+ .
+ -----------------------------------------------------------------------------
+ -----------------------------------------------------------------------------
+ .
+ Contributors: National Center for Supercomputing Applications (NCSA) at
+ the University of Illinois, Fortner Software, Unidata Program Center (netCDF),
+ The Independent JPEG Group (JPEG), Jean-loup Gailly and Mark Adler (gzip), and
+ Digital Equipment Corporation (DEC).
+ .
+ -----------------------------------------------------------------------------
+ .
+ Portions of HDF5 were developed with support from the Lawrence Berkeley
+ National Laboratory (LBNL) and the United States Department of Energy
+ under Prime Contract No. DE-AC02-05CH11231.
+ .
+ -----------------------------------------------------------------------------
+ .
+ Portions of HDF5 were developed with support from the University of
+ California, Lawrence Livermore National Laboratory (UC LLNL).
+ The following statement applies to those portions of the product and must
+ be retained in any redistribution of source code, binaries, documentation,
+ and/or accompanying materials:
+ .
+ This work was partially produced at the University of California,
+ Lawrence Livermore National Laboratory (UC LLNL) under contract
+ no. W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy
+ (DOE) and The Regents of the University of California (University)
+ for the operation of UC LLNL.
+ .
+ DISCLAIMER:
+ This work was prepared as an account of work sponsored by an agency of
+ the United States Government. Neither the United States Government nor
+ the University of California nor any of their employees, makes any
+ warranty, express or implied, or assumes any liability or responsibility
+ for the accuracy, completeness, or usefulness of any information,
+ apparatus, product, or process disclosed, or represents that its use
+ would not infringe privately- owned rights. Reference herein to any
+ specific commercial products, process, or service by trade name,
+ trademark, manufacturer, or otherwise, does not necessarily constitute
+ or imply its endorsement, recommendation, or favoring by the United
+ States Government or the University of California. The views and
+ opinions of authors expressed herein do not necessarily state or reflect
+ those of the United States Government or the University of California,
+ and shall not be used for advertising or product endorsement purposes.
+ .
+ -----------------------------------------------------------------------------
+ .
+ HDF5 is available with the SZIP compression library but SZIP is not part
+ of HDF5 and has separate copyright and license terms. See SZIP Compression
+ in HDF Products (www.hdfgroup.org/doc_resource/SZIP/) for further details.
+ .
+ -----------------------------------------------------------------------------
+ .
+ Copyright Notice and License Terms for
+ HDF5 (Hierarchical Data Format 5) Software Library and Utilities
+ -----------------------------------------------------------------------------
+ .
+ HDF5 (Hierarchical Data Format 5)
+ Copyright (c) 2016, The Regents of the University of California, through
+ Lawrence Berkeley National Laboratory (subject to receipt of any required
+ approvals from the U.S. Dept. of Energy).
+ .
+ All rights reserved.
+ .
+ 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 materials provided with the distribution.
+ .
+ 3. Neither the name of the University of California, Lawrence Berkeley
+ National Laboratory, U.S. Dept. of Energy nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+ .
+ 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 OWNER 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.
+ .
+ You are under no obligation whatsoever to provide any bug fixes, patches,
+ or upgrades to the features, functionality or performance of the source
+ code ("Enhancements") to anyone; however, if you choose to make your
+ Enhancements available either publicly, or directly to Lawrence Berkeley
+ National Laboratory, without imposing a separate written license agreement
+ for such Enhancements, then you hereby grant the following license:
+ a non-exclusive, royalty-free perpetual license to install, use, modify,
+ prepare derivative works, incorporate into other computer software,
+ distribute, and sublicense such enhancements or derivative works thereof,
+ in binary and source code form.
diff --git a/debian/libvbz-hdf-plugin-dev.install b/debian/libvbz-hdf-plugin-dev.install
new file mode 100644
index 0000000..6b92c5b
--- /dev/null
+++ b/debian/libvbz-hdf-plugin-dev.install
@@ -0,0 +1,4 @@
+#!/usr/bin/dh-exec
+
+usr/lib/*/lib*.so
+vbz_plugin/*.h vbz/*.h vbz/v0/*.h obj-${DEB_HOST_GNU_TYPE}/*/*/*.h usr/include/vbz-compression
diff --git a/debian/libvbz-hdf-plugin0.install b/debian/libvbz-hdf-plugin0.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libvbz-hdf-plugin0.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libvbz-hdf-plugin0.lintian-overrides b/debian/libvbz-hdf-plugin0.lintian-overrides
new file mode 100644
index 0000000..a99ee04
--- /dev/null
+++ b/debian/libvbz-hdf-plugin0.lintian-overrides
@@ -0,0 +1,2 @@
+# See https://wiki.debian.org/UsingSymbolsFiles#C.2B-.2B-_libraries
+libvbz-hdf-plugin0: no-symbols-control-file
diff --git a/debian/patches/fix-install-location.patch b/debian/patches/fix-install-location.patch
new file mode 100644
index 0000000..bf3d071
--- /dev/null
+++ b/debian/patches/fix-install-location.patch
@@ -0,0 +1,15 @@
+Description: Fix install location for .so
+Author: Nilesh Patra <nilesh@debian.org>
+Forwarded: not-needed
+Last-Update: 2021-05-22
+--- libvbz-hdf-plugin.orig/vbz_plugin/CMakeLists.txt
++++ libvbz-hdf-plugin/vbz_plugin/CMakeLists.txt
+@@ -72,7 +72,7 @@
+ set(VBZ_PLUGIN_COMPONENT COMPONENT hdf_plugin)
+ endif()
+
+-set(INSTALL_DESTINATION "hdf5/lib/plugin")
++set(INSTALL_DESTINATION "lib/$ENV{DEB_HOST_MULTIARCH}")
+ if (STANDARD_LIB_INSTALL)
+ set(VBZ_PLUGIN_COMPONENT COMPONENT vbz_hdf_plugin)
+ set_target_properties(vbz_hdf_plugin
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..06ebda1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+use-packaged-streamvbyte.patch
+fix-install-location.patch
+soversion.patch
diff --git a/debian/patches/soversion.patch b/debian/patches/soversion.patch
new file mode 100644
index 0000000..97f9721
--- /dev/null
+++ b/debian/patches/soversion.patch
@@ -0,0 +1,13 @@
+Description: Add a SOVERSION
+Author: Nilesh Patra <nilesh@debian.org>
+Last-Update: 2021-05-22
+--- a/vbz_plugin/CMakeLists.txt
++++ b/vbz_plugin/CMakeLists.txt
+@@ -4,6 +4,7 @@
+ vbz_plugin.cpp
+ vbz_plugin.h
+ )
++set_target_properties(vbz_hdf_plugin PROPERTIES SOVERSION 0)
+ add_sanitizers(vbz_hdf_plugin)
+
+ generate_export_header(vbz_hdf_plugin EXPORT_FILE_NAME vbz_plugin/vbz_hdf_plugin_export.h)
diff --git a/debian/patches/use-packaged-streamvbyte.patch b/debian/patches/use-packaged-streamvbyte.patch
new file mode 100644
index 0000000..7e6428b
--- /dev/null
+++ b/debian/patches/use-packaged-streamvbyte.patch
@@ -0,0 +1,79 @@
+Description: Use packaged streamvbyte instead of third_party
+Author: Nilesh Patra <nilesh@debian.org>
+Forwarded: not-needed
+Last-Update: 2021-05-22
+--- libvbz-hdf-plugin.orig/CMakeLists.txt
++++ libvbz-hdf-plugin/CMakeLists.txt
+@@ -145,34 +145,8 @@
+ find_package(HDF5 1.8.16)
+ find_package(zstd 1.3.1 REQUIRED)
+ find_package(Sanitizers)
+-
+-get_filename_component(STREAMVBYTE_SOURCE_DIR
+- third_party/streamvbyte
+- ABSOLUTE
+-)
+-set(STREAMVBYTE_INSTALL_DIR "${CMAKE_BINARY_DIR}/streamvbyte_lib/")
+-set(STREAMVBYTE_PREFIX ${CMAKE_BINARY_DIR}/streamvbyte)
+-set(STREAMVBYTE_STATIC_LIB_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}streamvbyte_static${CMAKE_STATIC_LIBRARY_SUFFIX})
+-set(STREAMVBYTE_STATIC_LIB_SUBDIR ".")
+-get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+-if (is_multi_config)
+- set(STREAMVBYTE_STATIC_LIB_SUBDIR "$<CONFIG>")
+-endif()
+-ExternalProject_Add(
+- streamvbyte
+- SOURCE_DIR ${STREAMVBYTE_SOURCE_DIR}
+- UPDATE_DISCONNECTED TRUE
+- PREFIX ${STREAMVBYTE_PREFIX}
+- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${STREAMVBYTE_INSTALL_DIR} -DSTREAMVBYTE_DISABLE_NATIVE=ON -DSTD_FLAGS="-std=c99"
+- # We need to tell CMake about libraries we will link to, otherwise some generators (eg: Ninja)
+- # complain about how knowing how to build libstreamvbyte_static.a, for example.
+- # Ideally, we'd set a hypothetical INSTALL_BYPRODUCTS, and link to the installed file, but that
+- # doesn't seem to be an option.
+- BUILD_BYPRODUCTS "<BINARY_DIR>/${STREAMVBYTE_STATIC_LIB_NAME}"
+-)
+-ExternalProject_Get_Property(streamvbyte BINARY_DIR)
+-set(STREAMVBYTE_STATIC_LIB "${BINARY_DIR}/${STREAMVBYTE_STATIC_LIB_SUBDIR}/${STREAMVBYTE_STATIC_LIB_NAME}")
+-
++find_library(STREAMVBYTE_STATIC_LIB NAMES libstreamvbyte.a PATHS /usr/lib/$ENV{DEB_HOST_MULTIARCH})
++message("INFO: The library that was found is: ${STREAMVBYTE_STATIC_LIB}")
+
+ ########################################################################
+ #
+--- libvbz-hdf-plugin.orig/vbz/CMakeLists.txt
++++ libvbz-hdf-plugin/vbz/CMakeLists.txt
+@@ -22,14 +22,16 @@
+ PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+- ${STREAMVBYTE_INSTALL_DIR}/include
++)
++
++target_link_libraries(vbz
++ PUBLIC
++ ${STREAMVBYTE_STATIC_LIB}
++ zstd::zstd
+ )
+
+ # This explicit dependency is required to make sure the header files are installed into the right
+ # location before we try building against them.
+-add_dependencies(vbz
+- streamvbyte
+-)
+
+ if (WIN32 OR
+ (APPLE AND NOT "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm64") OR
+@@ -39,12 +41,6 @@
+ endif()
+ endif()
+
+-target_link_libraries(vbz
+- PUBLIC
+- ${STREAMVBYTE_STATIC_LIB}
+- zstd::zstd
+-)
+-
+ if (BUILD_TESTING)
+ add_subdirectory(fuzzing)
+ add_subdirectory(test)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2092f08
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+export LC_ALL=C.UTF-8
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+include /usr/share/dpkg/default.mk
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_CONAN=OFF \
+ -DENABLE_PERF_TESTING=OFF \
+ -DENABLE_PYTHON=OFF
+
+override_dh_install__not_possible_since_no_static_lib:
+ dh_install
+ d-shlibmove --commit \
+ --multiarch \
+ --devunversioned \
+ --exclude-la \
+ --override s/libzstd1-dev/libzstd-dev/ \
+ debian/tmp/usr/lib/*/*.so
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..1e7946b
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,7 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+ SALSA_CI_DISABLE_REPROTEST: 1
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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..585b9ef
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,7 @@
+---
+Archive: GitHub
+Bug-Database: https://github.com/nanoporetech/vbz_compression/issues
+Bug-Submit: https://github.com/nanoporetech/vbz_compression/issues/new
+Changelog: https://github.com/nanoporetech/vbz_compression/tags
+Repository: https://github.com/nanoporetech/vbz_compression.git
+Repository-Browse: https://github.com/nanoporetech/vbz_compression
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5a5cb19
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \
+https://github.com/nanoporetech/vbz_compression//releases .*/.*/v?@ANY_VERSION@\.tar\.gz