From 15a2dfb4b262cd5c5d8c41129334177e0cdfa4a0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Feb 2025 06:17:56 +0100 Subject: [PATCH] Adding debian version 0.2.3-1. Signed-off-by: Daniel Baumann --- debian/cargo-checksum.json | 1 + debian/changelog | 5 +++ debian/control | 40 +++++++++++++++++++++ debian/copyright | 34 ++++++++++++++++++ debian/librust-terminal-prompt-dev.examples | 1 + debian/rules | 17 +++++++++ debian/source/format | 1 + debian/tests/control | 23 ++++++++++++ debian/watch | 4 +++ 9 files changed, 126 insertions(+) create mode 100644 debian/cargo-checksum.json create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/librust-terminal-prompt-dev.examples create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/tests/control create mode 100644 debian/watch diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..0ceb8d0 --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"572818b3472910acbd5dff46a3413715c18e934b071ab2ba464a7b2c2af16376","files":{}} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7ae47b2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rust-terminal-prompt (0.2.3-1) unstable; urgency=low + + * Initial upload to sid (build-depends of forgejo-cli via rust-auth-git2). + + -- Daniel Baumann Wed, 20 Nov 2024 08:01:07 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f96581e --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: rust-terminal-prompt +Section: rust +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + cargo:native , + debhelper-compat (= 13), + dh-sequence-cargo, + librust-libc-0.2+default-dev (>= 0.2.147-~~) , + librust-winapi-0.3+consoleapi-dev (>= 0.3.9-~~) , + librust-winapi-0.3+default-dev (>= 0.3.9-~~) , + libstd-rust-dev , + rustc:native (>= 1.66) , +Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/de-vri-es/terminal-prompt-rs +X-Cargo-Crate: terminal-prompt + +Package: librust-terminal-prompt-dev +Section: rust +Architecture: any +Multi-Arch: same +Depends: + librust-libc-0.2+default-dev (>= 0.2.147-~~), + librust-winapi-0.3+consoleapi-dev (>= 0.3.9-~~), + librust-winapi-0.3+default-dev (>= 0.3.9-~~), + ${misc:Depends}, +Provides: + librust-terminal-prompt+default-dev (= ${binary:Version}), + librust-terminal-prompt-0+default-dev (= ${binary:Version}), + librust-terminal-prompt-0-dev (= ${binary:Version}), + librust-terminal-prompt-0.2+default-dev (= ${binary:Version}), + librust-terminal-prompt-0.2-dev (= ${binary:Version}), + librust-terminal-prompt-0.2.3+default-dev (= ${binary:Version}), + librust-terminal-prompt-0.2.3-dev (= ${binary:Version}), +Description: prompting data on the terminal - Rust source code + Tiny library for prompting sensitive or non-sensitive data on the terminal. + . + This package contains the source for the Rust terminal-prompt + for use with cargo and dh-cargo. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9a32ce8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: terminal-prompt +Upstream-Contact: https://github.com/de-vri-es/terminal-prompt-rs/issues +Source: https://github.com/de-vri-es/terminal-prompt-rs/tags + +Files: * +Copyright: 2023 Maarten de Vries +License: BSD-2-Clause + +Files: debian/* +Copyright: 2024 Daniel Baumann +License: BSD-2-Clause + +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. diff --git a/debian/librust-terminal-prompt-dev.examples b/debian/librust-terminal-prompt-dev.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/librust-terminal-prompt-dev.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ff22a07 --- /dev/null +++ b/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +%: + dh $@ --buildsystem cargo + +override_dh_auto_test: + dh_auto_test -- test --all + +execute_after_dh_auto_install: + # removing unneeded files + rm -rf debian/librust-*/usr/share/cargo/registry/*/.git* + rm -f debian/librust-*/usr/share/cargo/registry/*/*.orig + rm -f debian/librust-*/usr/share/cargo/registry/*/*.md + rm -f debian/librust-*/usr/share/cargo/registry/*/*.tpl + rm -f debian/librust-*/usr/share/cargo/registry/*/CHANGELOG + + # installed via librust-terminal-prompt-dev.examples + rm -rf debian/librust-*/usr/share/cargo/registry/*/examples 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/tests/control b/debian/tests/control new file mode 100644 index 0000000..d805899 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,23 @@ +Test-Command: /usr/share/cargo/bin/cargo-auto-test terminal-prompt 0.2.3 --all-targets --all-features +Features: test-name=rust-terminal-prompt:@ +Depends: + dh-cargo (>= 31), + rustc (>= 1.66), + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test terminal-prompt 0.2.3 --all-targets +Features: test-name=librust-terminal-prompt-dev:default +Depends: + dh-cargo (>= 31), + rustc (>= 1.66), + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test terminal-prompt 0.2.3 --all-targets --no-default-features +Features: test-name=librust-terminal-prompt-dev: +Depends: + dh-cargo (>= 31), + rustc (>= 1.66), + @, +Restrictions: allow-stderr, skip-not-installable diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..45ef7bc --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.*\/(.*)\/download/terminal-prompt-$1\.tar\.gz/g,\ +uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/ \ +https://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=crates.io/terminal-prompt .*/crates/terminal-prompt/@ANY_VERSION@/download