diff options
-rw-r--r-- | debian/cargo-checksum.json | 1 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 62 | ||||
-rw-r--r-- | debian/copyright | 34 | ||||
-rw-r--r-- | debian/librust-auth-git2+log-dev.lintian-overrides | 1 | ||||
-rw-r--r-- | debian/librust-auth-git2-dev.examples | 1 | ||||
-rwxr-xr-x | debian/rules | 15 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tests/control | 51 | ||||
-rw-r--r-- | debian/watch | 4 |
10 files changed, 175 insertions, 0 deletions
diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..3c2d993 --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"3810b5af212b013fe7302b12d86616c6c39a48e18f2e4b812a5a9e5710213791","files":{}} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8deef74 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rust-auth-git2 (0.5.5-1) unstable; urgency=low + + * Initial upload to sid (build-depends of forgejo-cli). + + -- Daniel Baumann <daniel@debian.org> Wed, 20 Nov 2024 07:47:03 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9662795 --- /dev/null +++ b/debian/control @@ -0,0 +1,62 @@ +Source: rust-auth-git2 +Section: rust +Priority: optional +Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org> +Build-Depends: + cargo:native <!nocheck>, + debhelper-compat (= 13), + dh-sequence-cargo, + librust-dirs-5+default-dev (>= 5.0.1-~~) <!nocheck>, + librust-git2-19-dev <!nocheck> | librust-git2-18-dev <!nocheck> | librust-git2-17-dev <!nocheck> | librust-git2-16-dev <!nocheck> | librust-git2-15-dev <!nocheck> | librust-git2-14-dev <!nocheck> | librust-git2-13-dev <!nocheck> | librust-git2-12-dev <!nocheck> | librust-git2-11-dev <!nocheck> | librust-git2-10-dev <!nocheck> | librust-git2-9-dev <!nocheck> | librust-git2-8-dev <!nocheck> | librust-git2-7-dev <!nocheck> | librust-git2-6-dev <!nocheck> | librust-git2-5-dev <!nocheck> | librust-git2-4-dev <!nocheck> | librust-git2-3-dev <!nocheck> | librust-git2-2-dev <!nocheck> | librust-git2-1-dev <!nocheck> | librust-git2-0-dev (>= 0.15-~~) <!nocheck>, + librust-terminal-prompt-0.2+default-dev (>= 0.2.2-~~) <!nocheck>, + libstd-rust-dev <!nocheck>, + rustc:native <!nocheck>, +Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/de-vri-es/auth-git2-rs +X-Cargo-Crate: auth-git2 + +Package: librust-auth-git2+log-dev +Section: rust +Architecture: any +Multi-Arch: same +Depends: + librust-auth-git2-dev (= ${binary:Version}), + librust-log-0.4+default-dev (>= 0.4.19-~~), + ${misc:Depends}, +Provides: + librust-auth-git2-0+log-dev (= ${binary:Version}), + librust-auth-git2-0.5+log-dev (= ${binary:Version}), + librust-auth-git2-0.5.5+log-dev (= ${binary:Version}), +Description: Authentication for git2 - feature "log" + Authentication with git can be quite difficult to implement correctly, + this crate aims to make it easy. + . + This metapackage enables feature "log" for the Rust auth-git2 crate, + by pulling in any additional dependencies needed by that feature. + +Package: librust-auth-git2-dev +Section: rust +Architecture: any +Multi-Arch: same +Depends: + librust-dirs-5+default-dev (>= 5.0.1-~~), + librust-git2-19-dev | librust-git2-18-dev | librust-git2-17-dev | librust-git2-16-dev | librust-git2-15-dev | librust-git2-14-dev | librust-git2-13-dev | librust-git2-12-dev | librust-git2-11-dev | librust-git2-10-dev | librust-git2-9-dev | librust-git2-8-dev | librust-git2-7-dev | librust-git2-6-dev | librust-git2-5-dev | librust-git2-4-dev | librust-git2-3-dev | librust-git2-2-dev | librust-git2-1-dev | librust-git2-0-dev (>= 0.15-~~), + librust-terminal-prompt-0.2+default-dev (>= 0.2.2-~~), + ${misc:Depends}, +Suggests: + librust-auth-git2+log-dev (= ${binary:Version}), +Provides: + librust-auth-git2+default-dev (= ${binary:Version}), + librust-auth-git2-0+default-dev (= ${binary:Version}), + librust-auth-git2-0-dev (= ${binary:Version}), + librust-auth-git2-0.5+default-dev (= ${binary:Version}), + librust-auth-git2-0.5-dev (= ${binary:Version}), + librust-auth-git2-0.5.5+default-dev (= ${binary:Version}), + librust-auth-git2-0.5.5-dev (= ${binary:Version}), +Description: Authentication for git - Rust source code + Authentication with git can be quite difficult to implement correctly, + this crate aims to make it easy. + . + This package contains the source for the Rust auth_git2 crate + for use with cargo and dh-cargo. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..afeeeb8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: auth-git2 +Upstream-Contact: https://github.com/de-vri-es/auth-git2-rs/issues +Source: https://github.com/de-vri-es/auth-git2-rs/tags + +Files: * +Copyright: 2023-2024 Maarten de Vries <maarten@de-vri.es> +License: BSD-2-Clause + +Files: debian/* +Copyright: 2024 Daniel Baumann <daniel@debian.org> +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-auth-git2+log-dev.lintian-overrides b/debian/librust-auth-git2+log-dev.lintian-overrides new file mode 100644 index 0000000..7feb9d3 --- /dev/null +++ b/debian/librust-auth-git2+log-dev.lintian-overrides @@ -0,0 +1 @@ +librust-auth-git2+log-dev binary: empty-rust-library-declares-provides * diff --git a/debian/librust-auth-git2-dev.examples b/debian/librust-auth-git2-dev.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/librust-auth-git2-dev.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ec29f8d --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +%: + dh ${@} --buildsystem cargo + +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..b8fcc32 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,51 @@ +Test-Command: /usr/share/cargo/bin/cargo-auto-test auth-git2 0.5.5 --all-targets --all-features +Features: test-name=rust-auth-git2:@ +Depends: + dh-cargo (>= 31), + librust-assert2-0.3+default-dev (>= 0.3.11-~~), + librust-clap-4+default-dev (>= 4.3.21-~~), + librust-clap-4+derive-dev (>= 4.3.21-~~), + librust-env-logger-0.10+default-dev, + librust-git2-17+default-dev | librust-git2-16+default-dev | librust-git2-15+default-dev | librust-git2-14+default-dev | librust-git2-13+default-dev | librust-git2-12+default-dev | librust-git2-11+default-dev | librust-git2-10+default-dev | librust-git2-9+default-dev | librust-git2-8+default-dev | librust-git2-7+default-dev | librust-git2-6+default-dev | librust-git2-5+default-dev | librust-git2-4+default-dev | librust-git2-3+default-dev | librust-git2-2+default-dev | librust-git2-1+default-dev | librust-git2-0+default-dev (>= 0.14-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test auth-git2 0.5.5 --all-targets +Features: test-name=librust-auth-git2-dev:default +Depends: + dh-cargo (>= 31), + librust-assert2-0.3+default-dev (>= 0.3.11-~~), + librust-clap-4+default-dev (>= 4.3.21-~~), + librust-clap-4+derive-dev (>= 4.3.21-~~), + librust-env-logger-0.10+default-dev, + librust-git2-17+default-dev | librust-git2-16+default-dev | librust-git2-15+default-dev | librust-git2-14+default-dev | librust-git2-13+default-dev | librust-git2-12+default-dev | librust-git2-11+default-dev | librust-git2-10+default-dev | librust-git2-9+default-dev | librust-git2-8+default-dev | librust-git2-7+default-dev | librust-git2-6+default-dev | librust-git2-5+default-dev | librust-git2-4+default-dev | librust-git2-3+default-dev | librust-git2-2+default-dev | librust-git2-1+default-dev | librust-git2-0+default-dev (>= 0.14-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test auth-git2 0.5.5 --all-targets --no-default-features +Features: test-name=librust-auth-git2-dev: +Depends: + dh-cargo (>= 31), + librust-assert2-0.3+default-dev (>= 0.3.11-~~), + librust-clap-4+default-dev (>= 4.3.21-~~), + librust-clap-4+derive-dev (>= 4.3.21-~~), + librust-env-logger-0.10+default-dev, + librust-git2-17+default-dev | librust-git2-16+default-dev | librust-git2-15+default-dev | librust-git2-14+default-dev | librust-git2-13+default-dev | librust-git2-12+default-dev | librust-git2-11+default-dev | librust-git2-10+default-dev | librust-git2-9+default-dev | librust-git2-8+default-dev | librust-git2-7+default-dev | librust-git2-6+default-dev | librust-git2-5+default-dev | librust-git2-4+default-dev | librust-git2-3+default-dev | librust-git2-2+default-dev | librust-git2-1+default-dev | librust-git2-0+default-dev (>= 0.14-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test auth-git2 0.5.5 --all-targets --no-default-features --features log +Features: test-name=librust-auth-git2+log-dev:log +Depends: + dh-cargo (>= 31), + librust-assert2-0.3+default-dev (>= 0.3.11-~~), + librust-clap-4+default-dev (>= 4.3.21-~~), + librust-clap-4+derive-dev (>= 4.3.21-~~), + librust-env-logger-0.10+default-dev, + librust-git2-17+default-dev | librust-git2-16+default-dev | librust-git2-15+default-dev | librust-git2-14+default-dev | librust-git2-13+default-dev | librust-git2-12+default-dev | librust-git2-11+default-dev | librust-git2-10+default-dev | librust-git2-9+default-dev | librust-git2-8+default-dev | librust-git2-7+default-dev | librust-git2-6+default-dev | librust-git2-5+default-dev | librust-git2-4+default-dev | librust-git2-3+default-dev | librust-git2-2+default-dev | librust-git2-1+default-dev | librust-git2-0+default-dev (>= 0.14-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..246cab6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.*\/(.*)\/download/auth-git2-$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/auth-git2 .*/crates/auth-git2/@ANY_VERSION@/download |