From 9b23ddeb1f994c96214b15f59295790d252768da Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 30 Nov 2021 09:40:21 +0200 Subject: chore: add initial Debian packaing Sponsored-by: author --- debian/build-deb | 9 +++++++++ debian/cargo-checksum.json | 0 debian/changelog | 6 ++++++ debian/compat | 2 ++ debian/control | 18 ++++++++++++++++++ debian/copyright | 29 +++++++++++++++++++++++++++++ debian/rules | 14 ++++++++++++++ debian/source/format | 1 + 8 files changed, 79 insertions(+) create mode 100755 debian/build-deb create mode 100644 debian/cargo-checksum.json create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/build-deb b/debian/build-deb new file mode 100755 index 0000000..11f8b1f --- /dev/null +++ b/debian/build-deb @@ -0,0 +1,9 @@ +#!/bin/bash + +set -euo pipefail + +S="$(dpkg-parsechangelog -SSource)" +V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')" + +git archive HEAD | gzip >"../${S}_${V}.orig.tar.gz" +dpkg-buildpackage -us -uc diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..e69de29 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b1b4d93 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +pandoc-filter-diagram (0.1.0-1) unstable; urgency=low + + * Initial packaging. This is not intended to be uploaded to Debian, so + no closing of an ITP bug. + + -- Lars Wirzenius Tue, 30 Nov 2021 09:34:34 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..021ea30 --- /dev/null +++ b/debian/compat @@ -0,0 +1,2 @@ +10 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e4ea16f --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: pandoc-filter-diagram +Maintainer: Lars Wirzenius +Section: tex +Priority: optional +Standards-Version: 4.2.0 +Build-Depends: + debhelper (>= 10~), + build-essential, + dh-cargo +Homepage: https://gitlab.com/larswirzenius/pandoc-filter-diagram/ + +Package: pandoc-filter-diagram +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Built-Using: ${cargo:Built-Using} +Description: render diagram markup as SVG for Panco + This can be used as a Pandoc filter to render as SVG diagrams + expressed using various markup languages. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..116de47 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: obnam2 +Upstream-Contact: Lars Wirzenius +Source: https://gitlab.com/larswirzenius/pandoc-filter-diagram/ + +Files: * +Copyright: 2020-2021, Lars Wirzenius, Daniel Silverstone, pep.foundation +License: MIT-0 + 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. + + Fork this project to create your own MIT license that you can always + link to. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..54cfcb2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem cargo + +override_dh_auto_build: + cargo build --release + +override_dh_auto_install: + cargo install --path=. --root=debian/pandoc-filter-diagram + find debian -name '.crates*' -delete + +override_dh_auto_test: + pass 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.1 From 3e790b64621e4b2f52776a7a6f12b6fdc433a9a8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 30 Nov 2021 09:40:32 +0200 Subject: fix: drop edition to 2018, because dh-cargo Sponsored-by: author --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1c3d0c8..27d0587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pandoc-filter-diagram" version = "0.1.0" -edition = "2021" +edition = "2018" authors = [ "Lars Wirzenius ", "Daniel Silverstone ", -- cgit v1.2.1