diff --git a/src/x11rb/debian/changelog b/src/x11rb/debian/changelog new file mode 100644 index 0000000..149e435 --- /dev/null +++ b/src/x11rb/debian/changelog @@ -0,0 +1,5 @@ +rust-x11rb (0.4.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package x11rb 0.4.1 from crates.io using debcargo 2.4.2 + + -- Andrej Shadura Tue, 14 Apr 2020 08:15:13 +0200 diff --git a/src/x11rb/debian/copyright b/src/x11rb/debian/copyright new file mode 100644 index 0000000..b73a684 --- /dev/null +++ b/src/x11rb/debian/copyright @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: x11rb +Upstream-Contact: Uli Schlachter +Source: https://github.com/psychon/x11rb + +Files: * +Copyright: 2019-2020 Uli Schlachter +License: Expat or Apache-2.0 + +Files: examples/hypnomoire.rs +Copyright: + 2001-2002 Bart Massey and Jamey Sharp + 2019-2020 Uli Schlachter +License: Expat or Apache-2.0 + +Files: examples/tutorial.rs +Copyright: + 2001-2014 Bart Massey, Jamey Sharp, and Josh Triplett + 2019-2020 Uli Schlachter +License: Expat or Apache-2.0 + +Files: debian/* +Copyright: + 2020 Debian Rust Maintainers + 2020 Andrej Shadura +License: Expat 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: Expat + 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/x11rb/debian/copyright.debcargo.hint b/src/x11rb/debian/copyright.debcargo.hint new file mode 100644 index 0000000..19862e6 --- /dev/null +++ b/src/x11rb/debian/copyright.debcargo.hint @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: x11rb +Upstream-Contact: Uli Schlachter +Source: https://github.com/psychon/x11rb + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Uli Schlachter +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: ./examples/hypnomoire.rs +Copyright: 2001-2002 Bart Massey and Jamey Sharp and is licensed under +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: 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/x11rb/debian/debcargo.toml b/src/x11rb/debian/debcargo.toml new file mode 100644 index 0000000..bd15124 --- /dev/null +++ b/src/x11rb/debian/debcargo.toml @@ -0,0 +1,6 @@ +overlay = "." +uploaders = ["Andrej Shadura "] +excludes = ["xcbproto-1.1*/**"] + +[packages.lib] +depends = ["python3-xcbgen", "xcb-proto", "libxcb1-dev"] diff --git a/src/x11rb/debian/patches/fix-build.patch b/src/x11rb/debian/patches/fix-build.patch new file mode 100644 index 0000000..b532227 --- /dev/null +++ b/src/x11rb/debian/patches/fix-build.patch @@ -0,0 +1,40 @@ +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -48,7 +48,7 @@ + allow-unsafe-code = ["libc"] + composite = ["xfixes"] + damage = ["xfixes"] +-default = ["vendor-xcb-proto", "allow-unsafe-code"] ++default = ["allow-unsafe-code"] + dpms = [] + dri2 = [] + dri3 = [] +@@ -62,7 +62,7 @@ + shape = [] + shm = [] + sync = [] +-vendor-xcb-proto = [] ++#vendor-xcb-proto = [] + xevie = [] + xf86dri = [] + xf86vidmode = [] +--- a/build.rs ++++ b/build.rs +@@ -51,14 +51,16 @@ + for py_file in list_files_with_extension("code_generator_helpers", "py") { + println!("cargo:rerun-if-changed={}", py_file.to_str().unwrap()); + } ++ /* + for py_file in list_files_with_extension(pythondir.join("xcbgen"), "py") { + println!("cargo:rerun-if-changed={}", py_file.to_str().unwrap()); + } ++ */ + for xml_file in list_files_with_extension(&includedir, "xml") { + println!("cargo:rerun-if-changed={}", xml_file.to_str().unwrap()); + } + +- let status = Command::new("python") ++ let status = Command::new("python3") + .arg("rs_code_generator.py") + .arg("-p") + .arg(&pythondir) diff --git a/src/x11rb/debian/patches/series b/src/x11rb/debian/patches/series new file mode 100644 index 0000000..d8e388a --- /dev/null +++ b/src/x11rb/debian/patches/series @@ -0,0 +1 @@ +fix-build.patch diff --git a/src/x11rb/debian/rules b/src/x11rb/debian/rules new file mode 100755 index 0000000..ac4f6df --- /dev/null +++ b/src/x11rb/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +%: + dh $@ --buildsystem cargo + +override_dh_auto_install: + dh_auto_install + rm -rvf debian/*/usr/share/cargo/registry/x11rb-*/code_generator_helpers/__pycache__ + +override_dh_auto_test: + dh_auto_test -- test --all diff --git a/src/x11rb/debian/rules.debcargo.hint b/src/x11rb/debian/rules.debcargo.hint new file mode 100755 index 0000000..92c239b --- /dev/null +++ b/src/x11rb/debian/rules.debcargo.hint @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +%: + dh $@ --buildsystem cargo + +override_dh_auto_test: + dh_auto_test -- test --all