diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-20 08:31:51 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-20 08:36:16 +0100 |
commit | 1d64b4102d55de22a035ae1df8f8408381139784 (patch) | |
tree | df776e3b3e0ef2a3a9422cc146b7a17b8c0169cc | |
parent | Adding upstream version 1.5.0. (diff) | |
download | rust-sha256-1d64b4102d55de22a035ae1df8f8408381139784.tar.xz rust-sha256-1d64b4102d55de22a035ae1df8f8408381139784.zip |
Adding debian version 1.5.0-1.debian/1.5.0-1
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rw-r--r-- | debian/cargo-checksum.json | 1 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 97 | ||||
-rw-r--r-- | debian/copyright | 47 | ||||
-rw-r--r-- | debian/librust-sha256+openssl-dev.lintian-overrides | 1 | ||||
-rw-r--r-- | debian/librust-sha256+tokio-dev.lintian-overrides | 1 | ||||
-rwxr-xr-x | debian/rules | 12 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tests/control | 76 | ||||
-rw-r--r-- | debian/watch | 4 |
10 files changed, 245 insertions, 0 deletions
diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..e9f116e --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"18278f6a914fa3070aa316493f7d2ddfb9ac86ebc06fa3b83bffda487e9065b0","files":{}} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..99b3108 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rust-sha256 (1.5.0-1) unstable; urgency=low + + * Initial upload to sid (build-depends of forgejo-cli). + + -- Daniel Baumann <daniel@debian.org> Wed, 20 Nov 2024 08:24:49 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4be6790 --- /dev/null +++ b/debian/control @@ -0,0 +1,97 @@ +Source: rust-sha256 +Section: rust +Priority: optional +Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org> +Build-Depends: + cargo:native <!nocheck>, + debhelper-compat (= 13), + dh-sequence-cargo, + librust-async-trait-0.1+default-dev (>= 0.1.68-~~) <!nocheck>, + librust-bytes-1+default-dev (>= 1.4.0-~~) <!nocheck>, + librust-hex-0.4+default-dev (>= 0.4.2-~~) <!nocheck>, + librust-sha2-0.10-dev (>= 0.10.6-~~) <!nocheck>, + librust-tokio-1+default-dev (>= 1.28.2-~~) <!nocheck>, + librust-tokio-1+fs-dev (>= 1.28.2-~~) <!nocheck>, + librust-tokio-1+io-util-dev (>= 1.28.2-~~) <!nocheck>, + libstd-rust-dev <!nocheck>, + rustc:native <!nocheck>, +Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/baoyachi/sha256-rs +X-Cargo-Crate: sha256 + +Package: librust-sha256+openssl-dev +Architecture: any +Multi-Arch: same +Depends: + librust-openssl-0.10-dev (>= 0.10.54-~~), + librust-sha256-dev (= ${binary:Version}), + ${misc:Depends}, +Provides: + librust-sha256+native-openssl-dev (= ${binary:Version}), + librust-sha256-1+native-openssl-dev (= ${binary:Version}), + librust-sha256-1+openssl-dev (= ${binary:Version}), + librust-sha256-1.5+native-openssl-dev (= ${binary:Version}), + librust-sha256-1.5+openssl-dev (= ${binary:Version}), + librust-sha256-1.5.0+native-openssl-dev (= ${binary:Version}), + librust-sha256-1.5.0+openssl-dev (= ${binary:Version}), +Description: SHA256 crypto digest - feature "openssl" and 1 more + SHA256 crypto digest implementation in Rust. + . + This metapackage enables feature "openssl" for the Rust sha256 crate, by + pulling in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "native_openssl" feature. + +Package: librust-sha256+tokio-dev +Architecture: any +Multi-Arch: same +Depends: + librust-sha256-dev (= ${binary:Version}), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+fs-dev (>= 1.28.2-~~), + librust-tokio-1+io-util-dev (>= 1.28.2-~~), + ${misc:Depends}, +Provides: + librust-sha256+async-dev (= ${binary:Version}), + librust-sha256+default-dev (= ${binary:Version}), + librust-sha256-1+async-dev (= ${binary:Version}), + librust-sha256-1+default-dev (= ${binary:Version}), + librust-sha256-1+tokio-dev (= ${binary:Version}), + librust-sha256-1.5+async-dev (= ${binary:Version}), + librust-sha256-1.5+default-dev (= ${binary:Version}), + librust-sha256-1.5+tokio-dev (= ${binary:Version}), + librust-sha256-1.5.0+async-dev (= ${binary:Version}), + librust-sha256-1.5.0+default-dev (= ${binary:Version}), + librust-sha256-1.5.0+tokio-dev (= ${binary:Version}), +Description: SHA256 crypto digest - feature "tokio" and 2 more + SHA256 crypto digest implementation in Rust. + . + This metapackage enables feature "tokio" for the Rust sha256 crate, by pulling + in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "async", and "default" features. + +Package: librust-sha256-dev +Section: rust +Architecture: any +Multi-Arch: same +Depends: + librust-async-trait-0.1+default-dev (>= 0.1.68-~~), + librust-bytes-1+default-dev (>= 1.4.0-~~), + librust-hex-0.4+default-dev (>= 0.4.2-~~), + librust-sha2-0.10-dev (>= 0.10.6-~~), + ${misc:Depends}, +Recommends: + librust-sha256+tokio-dev (= ${binary:Version}), +Suggests: + librust-sha256+openssl-dev (= ${binary:Version}), +Provides: + librust-sha256-1-dev (= ${binary:Version}), + librust-sha256-1.5-dev (= ${binary:Version}), + librust-sha256-1.5.0-dev (= ${binary:Version}), +Description: SHA256 crypto digest - Rust source code + SHA256 crypto digest implementation in Rust. + . + This package contains the source for the Rust sha256 crate + for use with cargo and dh-cargo. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ae5c704 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,47 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: sha256 +Upstream-Contact: https://github.com/baoyachi/sha256-rs/issues +Source: https://github.com/baoyachi/sha256-rs/tags + +Files: * +Copyright: 2021-2024 baoyachi <liaoymxsdl@gmail.com> +License: Apache-2.0 or MIT + +Files: debian/* +Copyright: 2024 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> +License: Apache-2.0 or MIT + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + The complete text of the Apache-2.0 License + can be found in /usr/share/common-licenses/Apache-2.0 file. + +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/librust-sha256+openssl-dev.lintian-overrides b/debian/librust-sha256+openssl-dev.lintian-overrides new file mode 100644 index 0000000..d7a5e88 --- /dev/null +++ b/debian/librust-sha256+openssl-dev.lintian-overrides @@ -0,0 +1 @@ +librust-sha256+openssl-dev binary: empty-rust-library-declares-provides *
\ No newline at end of file diff --git a/debian/librust-sha256+tokio-dev.lintian-overrides b/debian/librust-sha256+tokio-dev.lintian-overrides new file mode 100644 index 0000000..e050430 --- /dev/null +++ b/debian/librust-sha256+tokio-dev.lintian-overrides @@ -0,0 +1 @@ +librust-sha256+tokio-dev binary: empty-rust-library-declares-provides *
\ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b1b5133 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/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/*/LICENSE* + rm -f debian/librust-*/usr/share/cargo/registry/*/foo.file 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..ba3150c --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,76 @@ +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --all-features +Features: test-name=rust-sha256:@ +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --no-default-features +Features: test-name=librust-sha256-dev: +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --no-default-features --features native_openssl +Features: test-name=librust-sha256+openssl-dev:native_openssl +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --no-default-features --features openssl +Features: test-name=librust-sha256+openssl-dev:openssl +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --no-default-features --features async +Features: test-name=librust-sha256+tokio-dev:async +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets +Features: test-name=librust-sha256+tokio-dev:default +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable + +Test-Command: /usr/share/cargo/bin/cargo-auto-test sha256 1.5.0 --all-targets --no-default-features --features tokio +Features: test-name=librust-sha256+tokio-dev:tokio +Depends: + dh-cargo (>= 31), + librust-tokio-1+default-dev (>= 1.28.2-~~), + librust-tokio-1+full-dev (>= 1.28.2-~~), + librust-tokio-test-0.4+default-dev (>= 0.4.2-~~), + rustc, + @, +Restrictions: allow-stderr, skip-not-installable diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..0a26a8d --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.*\/(.*)\/download/sha256-$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/sha256 .*/crates/sha256/@ANY_VERSION@/download |