diff --git a/TODO.rst b/TODO.rst index c3ab7bd97..2b345eae3 100644 --- a/TODO.rst +++ b/TODO.rst @@ -276,6 +276,8 @@ Binary crates worth packaging (please add if you know more): - bingrep - Grep through binaries from various OSs and architectures. - brewstillery - Brewer's, vinter's and distiller's calculator (GTK). - cargo-deb - Create Debian packages from Cargo projects +- cargo-debstatus - Print the status of crate’s dependencies in Debian + * blocked on postgres - cargo-download - Download sources of a crate - cargo-edit - Cargo editing subcommands (add, rm, upgrade) - diskonaut - interactive disk usage tui tool @@ -284,7 +286,8 @@ Binary crates worth packaging (please add if you know more): - jql - JSON Query Language CLI tool. - meli - terminal mail client (https://meli.delivery/) - podcasts - Podcasts app (GTK, https://wiki.gnome.org/Apps/Podcasts) -- recode_rs - CLI tool converting between the character encodings. +- recode_rs - CLI tool converting between the character encodings. +- resvg - SVG renderer (in Debian; packaged separately, but doesn’t build anymore) - rural - User-friendly command-line HTTP tool - rust-analyzer - modular rust compiler frontend with LSP - rustfmt-nightly - rust coding style diff --git a/src/cargo-debstatus/debian/TODO b/src/cargo-debstatus/debian/TODO new file mode 100644 index 000000000..ff35f7689 --- /dev/null +++ b/src/cargo-debstatus/debian/TODO @@ -0,0 +1 @@ +Requires postgres diff --git a/src/cargo-debstatus/debian/changelog b/src/cargo-debstatus/debian/changelog new file mode 100644 index 000000000..77e4c66eb --- /dev/null +++ b/src/cargo-debstatus/debian/changelog @@ -0,0 +1,5 @@ +rust-cargo-debstatus (0.2.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package cargo-debstatus 0.2.0 from crates.io using debcargo 2.4.3 + + -- Andrej Shadura Tue, 10 Nov 2020 08:46:29 +0100 diff --git a/src/cargo-debstatus/debian/copyright b/src/cargo-debstatus/debian/copyright new file mode 100644 index 000000000..4b3fdfbed --- /dev/null +++ b/src/cargo-debstatus/debian/copyright @@ -0,0 +1,21 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cargo-debstatus +Upstream-Contact: + kpcyrd + Steven Fackler +Source: https://github.com/kpcyrd/cargo-debstatus + +Files: * +Copyright: + 2015—2018 Steven Fackler + 2018 kpcyrd +License: GPL-3 + +Files: debian/* +Copyright: + 2020 Debian Rust Maintainers + 2020 Andrej Shadura +License: GPL-3 + +License: GPL-3.0 + Debian systems provide the GPL version 3 in /usr/share/common-licenses/GPL-3 diff --git a/src/cargo-debstatus/debian/copyright.debcargo.hint b/src/cargo-debstatus/debian/copyright.debcargo.hint new file mode 100644 index 000000000..02eb3c47b --- /dev/null +++ b/src/cargo-debstatus/debian/copyright.debcargo.hint @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cargo-debstatus +Upstream-Contact: + kpcyrd + Steven Fackler +Source: https://github.com/kpcyrd/cargo-debstatus + +Files: * +Copyright: + FIXME (overlay) UNKNOWN-YEARS kpcyrd + FIXME (overlay) UNKNOWN-YEARS Steven Fackler +License: GPL-3.0 +Comment: + FIXME (overlay): Since upstream copyright years are not available in + Cargo.toml, they were extracted from the upstream Git repository. This may not + be correct information so you should review and fix this before uploading to + the archive. + +Files: ./LICENSE +Copyright: 2007 Free Software Foundation, Inc. +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: debian/* +Copyright: + 2020 Debian Rust Maintainers + 2020 Andrej Shadura +License: GPL-3.0 + +License: GPL-3.0 + Debian systems provide the GPL 3.0 in /usr/share/common-licenses/GPL-3 diff --git a/src/cargo-debstatus/debian/debcargo.toml b/src/cargo-debstatus/debian/debcargo.toml new file mode 100644 index 000000000..f445857ee --- /dev/null +++ b/src/cargo-debstatus/debian/debcargo.toml @@ -0,0 +1,17 @@ +overlay = "." +uploaders = ["Andrej Shadura "] + +summary = "print dependency tree of a Rust project using Cargo" +description = """ +This package provides a debstatus subcommand for the Cargo, the Rust +package manager. + +cargo debstatus is similar to cargo tree, but for Debian packaging: it +traverses all dependencies of your project, checks if the dependency is +already in Debian, in the Debian NEW queue or if it needs to be updated. + +This tool is primarily targetting Debian Rust packagers and should not +be necessary for developing in Rust on Debian. +""" +[source] +section = "rust" diff --git a/src/cargo-debstatus/debian/patches/relax-deps.patch b/src/cargo-debstatus/debian/patches/relax-deps.patch new file mode 100644 index 000000000..c9900e0fd --- /dev/null +++ b/src/cargo-debstatus/debian/patches/relax-deps.patch @@ -0,0 +1,35 @@ +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -20,22 +20,22 @@ categories = ["command-line-utilities"] + license = "GPL-3.0" + repository = "https://github.com/kpcyrd/cargo-debstatus" + [dependencies.cargo] +-version = "0.32.0" ++version = ">= 0.32" + + [dependencies.colored] + version = "1.6.1" + + [dependencies.dirs] +-version = "1.0" ++version = "3.0" + + [dependencies.env_logger] +-version = "0.6" ++version = "0.7" + + [dependencies.failure] + version = "0.1" + + [dependencies.petgraph] +-version = "0.4" ++version = "0.5" + + [dependencies.postgres] + version = "0.15.2" +@@ -53,4 +53,4 @@ version = "1.0" + version = "1.0" + + [dependencies.structopt] +-version = "0.2.10" ++version = "0.3" diff --git a/src/cargo-debstatus/debian/patches/series b/src/cargo-debstatus/debian/patches/series new file mode 100644 index 000000000..bdddf05ae --- /dev/null +++ b/src/cargo-debstatus/debian/patches/series @@ -0,0 +1 @@ +relax-deps.patch diff --git a/src/postgres/debian/debcargo.toml b/src/postgres/debian/debcargo.toml new file mode 100644 index 000000000..7d31b23f6 --- /dev/null +++ b/src/postgres/debian/debcargo.toml @@ -0,0 +1,2 @@ +overlay = "." +uploaders = ["Andrej Shadura "]