diff --git a/src/markdown/debian/changelog b/src/markdown/debian/changelog new file mode 100644 index 0000000..bedc26e --- /dev/null +++ b/src/markdown/debian/changelog @@ -0,0 +1,9 @@ +rust-markdown (0.3.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package markdown 0.3.0 from crates.io using debcargo 2.4.4 + * Fill in copyright + * Add / correct information in control + * Patch dev dependency "difference" from 0.4 to 2.0.0 + * Lintian override for test fixtures that look like docs + + -- Christopher Hoskin Thu, 27 May 2021 08:09:08 +0100 diff --git a/src/markdown/debian/copyright b/src/markdown/debian/copyright new file mode 100644 index 0000000..41e9f5a --- /dev/null +++ b/src/markdown/debian/copyright @@ -0,0 +1,72 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: markdown +Upstream-Contact: Johann Hofmann +Source: https://github.com/johannhof/markdown.rs + +Files: * +Copyright: 2014-2020 Johann Hofmann +License: MIT or Apache-2.0 + +Files: tests/fixtures/* +Copyright: + 2003-2004, John Gruber + 2005-2006 Fletcher T. Penney + 2006-2009 Darren Kulp and Tomas Doran +License: BSD-3-Clause + +Files: debian/* +Copyright: + 2021 Debian Rust Maintainers + 2021 Christopher Hoskin +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +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. + +License: BSD-3-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + * 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. + . + * Neither the name "Markdown" nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + . + 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 owner + 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/src/markdown/debian/copyright.debcargo.hint b/src/markdown/debian/copyright.debcargo.hint new file mode 100644 index 0000000..eece9a3 --- /dev/null +++ b/src/markdown/debian/copyright.debcargo.hint @@ -0,0 +1,59 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: markdown +Upstream-Contact: Johann Hofmann +Source: https://github.com/johannhof/markdown.rs + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Johann Hofmann +License: MIT or Apache-2.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-MIT +Copyright: 2015 The markdown.rs Developers +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: ./tests/fixtures/README +Copyright: + 2004, John Gruber + 2005-2006 Fletcher T. Penney + 2006-2009 Darren Kulp +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: + 2021 Debian Rust Maintainers + 2021 Christopher Hoskin +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +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/src/markdown/debian/debcargo.toml b/src/markdown/debian/debcargo.toml new file mode 100644 index 0000000..199b81c --- /dev/null +++ b/src/markdown/debian/debcargo.toml @@ -0,0 +1,19 @@ +overlay = "." +uploaders = ["Christopher Hoskin "] + +[source] + +homepage = "https://github.com/johannhof/markdown.rs" + +[packages.lib] + +summary = "native Rust library for parsing Markdown and outputting HTML - Rust source code" + +[packages.bin] + +section = "text" +summary = "command line utility for parsing Markdown and outputting HTML" +description = """ +This package provides a command line utility `markdown` which uses the rust +markdown crate to parse a markdown file and output HTML. +""" diff --git a/src/markdown/debian/librust-markdown-dev.lintian-overrides b/src/markdown/debian/librust-markdown-dev.lintian-overrides new file mode 100644 index 0000000..8abf516 --- /dev/null +++ b/src/markdown/debian/librust-markdown-dev.lintian-overrides @@ -0,0 +1,2 @@ +# These are test fixtures, not documentation +librust-markdown-dev: package-contains-documentation-outside-usr-share-doc usr/share/cargo/registry/markdown-0.3.0/tests/fixtures/* diff --git a/src/markdown/debian/patches/difference.patch b/src/markdown/debian/patches/difference.patch new file mode 100644 index 0000000..a00b94f --- /dev/null +++ b/src/markdown/debian/patches/difference.patch @@ -0,0 +1,51 @@ +Description: Update dev dependency difference from 0.4 to 2.0.0 +Author: Christopher Hoskin +Forwarded: https://github.com/johannhof/markdown.rs/pull/40 +Last-Update: 2021-05-26 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -33,7 +33,7 @@ + [dependencies.regex] + version = "1" + [dev-dependencies.difference] +-version = "0.4" ++version = "2.0.0" + + [features] + default = [] +--- a/tests/lib.rs ++++ b/tests/lib.rs +@@ -1,4 +1,5 @@ + extern crate markdown; ++#[macro_use(assert_diff)] + extern crate difference; + + mod fixtures; +--- a/tests/fixtures/mod.rs ++++ b/tests/fixtures/mod.rs +@@ -2,7 +2,6 @@ + use std::fs::File; + use std::io::Read; + use markdown; +-use difference; + + fn compare(name: &str) { + let html = format!("tests/fixtures/docs-maruku-unittest/{}.html", name); +@@ -15,7 +14,7 @@ + File::open(md).unwrap().read_to_string(&mut tokens).unwrap(); + println!("{:?}", markdown::tokenize(&tokens)); + +- difference::assert_diff(&comp, &markdown::file_to_html(md).unwrap(), " ", 0); ++ assert_diff!(&comp, &markdown::file_to_html(md).unwrap(), " ", 0); + } + + fn roundtrip(name: &str) { +@@ -34,7 +33,7 @@ + + println!("BEGIN\n{}\nEND", out); + +- difference::assert_diff(&comp, &markdown::to_html(&out), " ", 0); ++ assert_diff!(&comp, &markdown::to_html(&out), " ", 0); + } + + #[test] diff --git a/src/markdown/debian/patches/series b/src/markdown/debian/patches/series new file mode 100644 index 0000000..7b84eb4 --- /dev/null +++ b/src/markdown/debian/patches/series @@ -0,0 +1 @@ +difference.patch diff --git a/src/pipeline/debian/changelog b/src/pipeline/debian/changelog new file mode 100644 index 0000000..fb978f9 --- /dev/null +++ b/src/pipeline/debian/changelog @@ -0,0 +1,8 @@ +rust-pipeline (0.5.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package pipeline 0.5.0 from crates.io using debcargo 2.4.4 + * Fill in copyright + * Shorten synopsis in control + * Add homepage to control + + -- Christopher Hoskin Sat, 22 May 2021 21:05:56 +0100 diff --git a/src/pipeline/debian/copyright b/src/pipeline/debian/copyright new file mode 100644 index 0000000..59fa042 --- /dev/null +++ b/src/pipeline/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pipeline +Upstream-Contact: Johann Hofmann +Source: https://github.com/johannhof/pipeline.rs + +Files: * +Copyright: 2015-2018 Johann Hofmann +License: MIT + +Files: debian/* +Copyright: + 2021 Debian Rust Maintainers + 2021 Christopher Hoskin +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/src/pipeline/debian/copyright.debcargo.hint b/src/pipeline/debian/copyright.debcargo.hint new file mode 100644 index 0000000..ed193ee --- /dev/null +++ b/src/pipeline/debian/copyright.debcargo.hint @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pipeline +Upstream-Contact: Johann Hofmann +Source: https://github.com/johannhof/pipeline.rs + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Johann Hofmann +License: MIT +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: 2015 Johann Hofmann +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: + 2021 Debian Rust Maintainers + 2021 Christopher Hoskin +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/src/pipeline/debian/debcargo.toml b/src/pipeline/debian/debcargo.toml new file mode 100644 index 0000000..842deb3 --- /dev/null +++ b/src/pipeline/debian/debcargo.toml @@ -0,0 +1,11 @@ +overlay = "." +uploaders = ["Christopher Hoskin "] + +[source] + +homepage = "https://github.com/johannhof/pipeline.rs" + +[packages.lib] + +summary = "Macro collection to pipe |> your functions calls - Rust source code" +