diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..cf324cd --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"e188d043c1a692985f78b5464853a263f1a27e5bd6322bad3a4078ee3c998a38","files":{}} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..08b0944 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rust-platform-dirs (0.3.0-1) unstable; urgency=low + + * Initial upload to sid, needed for git-graph. + + -- Daniel Baumann Sun, 04 May 2025 23:33:42 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..af85fe4 --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: rust-platform-dirs +Section: rust +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + dh-sequence-cargo, +Build-Depends-Arch: + cargo:native , + librust-dirs-next-dev , + libstd-rust-dev , + rustc:native , +Rules-Requires-Root: no +Homepage: https://github.com/cjbassi/platform-dirs-rs +Standards-Version: 4.7.0 +Vcs-Browser: https://forgejo.debian.net/git/rust-platform-dirs +Vcs-Git: https://forgejo.debian.net/git/rust-platform-dirs +X-Cargo-Crate: platform-dirs + +Package: librust-platform-dirs-dev +Section: rust +Architecture: any +Multi-Arch: same +Depends: + librust-dirs-next-1+default-dev (>= 1.0.1-~~), + ${misc:Depends}, +Provides: + librust-platform-dirs+default-dev (= ${binary:Version}), + librust-platform-dirs-0+default-dev (= ${binary:Version}), + librust-platform-dirs-0-dev (= ${binary:Version}), + librust-platform-dirs-0.3+default-dev (= ${binary:Version}), + librust-platform-dirs-0.3-dev (= ${binary:Version}), + librust-platform-dirs-0.3.0+default-dev (= ${binary:Version}), + librust-platform-dirs-0.3.0-dev (= ${binary:Version}), +Description: Obtaining platform dependant directory paths for application and user directories - Rust source code + Source code for Debianized Rust crate "platform-dirs" diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..29d78de --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: platform-dirs-rs +Upstream-Contact: https://github.com/cjbassi/platform-dirs-rs/issues +Source: https://github.com/cjbassi/platform-dirs-rs/tags + +Files: * +Copyright: 2019-2021 Caleb Bassi +License: MIT + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: MIT + +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/rules b/debian/rules new file mode 100755 index 0000000..c3eb282 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh ${@} --buildsystem cargo + +override_dh_auto_test: + dh_auto_test -- test --all 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..d12d1d2 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,32 @@ +Test-Command: /usr/share/cargo/bin/cargo-auto-test platform-dirs 0.3.0 --all-targets --all-features +Features: + test-name=rust-platform-dirs:@, +Depends: + dh-cargo (>= 31), + rustc, + @, +Restrictions: + allow-stderr, + skip-not-installable, + +Test-Command: /usr/share/cargo/bin/cargo-auto-test platform-dirs 0.3.0 --all-targets +Features: + test-name=librust-platform-dirs-dev:default, +Depends: + dh-cargo (>= 31), + rustc, + @, +Restrictions: + allow-stderr, + skip-not-installable, + +Test-Command: /usr/share/cargo/bin/cargo-auto-test platform-dirs 0.3.0 --all-targets --no-default-features +Features: + test-name=librust-platform-dirs-dev:, +Depends: + dh-cargo (>= 31), + rustc, + @, +Restrictions: + allow-stderr, + skip-not-installable, diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..933a14c --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.*\/(.*)\/download/platform-dirs-$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/platform-dirs .*/crates/platform-dirs/@ANY_VERSION@/download