]> git.proxmox.com Git - debcargo-conf.git/commitdiff
Prepare expat-sys
authorAndrej Shadura <andrew.shadura@collabora.co.uk>
Sun, 21 Jul 2019 14:08:07 +0000 (11:08 -0300)
committerAndrej Shadura <andrew.shadura@collabora.co.uk>
Sun, 21 Jul 2019 14:08:07 +0000 (11:08 -0300)
src/expat-sys/debian/changelog [new file with mode: 0644]
src/expat-sys/debian/copyright [new file with mode: 0644]
src/expat-sys/debian/copyright.debcargo.hint [new file with mode: 0644]
src/expat-sys/debian/debcargo.toml [new file with mode: 0644]
src/expat-sys/debian/patches/series [new file with mode: 0644]
src/expat-sys/debian/patches/use-system-lib.patch [new file with mode: 0644]

diff --git a/src/expat-sys/debian/changelog b/src/expat-sys/debian/changelog
new file mode 100644 (file)
index 0000000..6c899c8
--- /dev/null
@@ -0,0 +1,5 @@
+rust-expat-sys (2.1.6-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Package expat-sys 2.1.6 from crates.io using debcargo 2.2.10
+
+ -- Andrej Shadura <andrewsh@debian.org>  Sun, 21 Jul 2019 11:03:10 -0300
diff --git a/src/expat-sys/debian/copyright b/src/expat-sys/debian/copyright
new file mode 100644 (file)
index 0000000..fb1e7d0
--- /dev/null
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: expat-sys
+Upstream-Contact: The Servo Project Developers
+Source: https://github.com/servo/libexpat/
+
+Files: *
+Copyright:
+ 2013—2018 The Servo Project Developers
+ 2013      Yongjin Kim
+ 2014—2015 Jack Moffitt
+           and others
+License: MIT
+
+Files: debian/*
+Copyright:
+ 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019 Andrej Shadura <andrewsh@debian.org>
+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/expat-sys/debian/copyright.debcargo.hint b/src/expat-sys/debian/copyright.debcargo.hint
new file mode 100644 (file)
index 0000000..2076ab8
--- /dev/null
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: expat-sys
+Upstream-Contact: Expat maintainers
+Source: https://github.com/servo/libexpat/
+
+Files: *
+Copyright: FIXME (overlay) UNKNOWN-YEARS Expat maintainers
+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: debian/*
+Copyright:
+ 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019 Andrej Shadura <andrewsh@debian.org>
+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/expat-sys/debian/debcargo.toml b/src/expat-sys/debian/debcargo.toml
new file mode 100644 (file)
index 0000000..7805616
--- /dev/null
@@ -0,0 +1,5 @@
+overlay = "."
+uploaders = ["Andrej Shadura <andrewsh@debian.org>"]
+excludes = ["expat/**", "htdocs/**"]
+[source]
+build_depends = ["libexpat1-dev"]
diff --git a/src/expat-sys/debian/patches/series b/src/expat-sys/debian/patches/series
new file mode 100644 (file)
index 0000000..c5aaa71
--- /dev/null
@@ -0,0 +1 @@
+use-system-lib.patch
diff --git a/src/expat-sys/debian/patches/use-system-lib.patch b/src/expat-sys/debian/patches/use-system-lib.patch
new file mode 100644 (file)
index 0000000..45f7905
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/build.rs
++++ b/build.rs
+@@ -18,6 +18,7 @@
+         return;
+     }
++/*
+     let mut dst = cmake::Config::new("expat")
+         .define("BUILD_shared", "OFF")
+         .define("BUILD_tools", "OFF")
+@@ -26,6 +27,7 @@
+         .build();
+     dst.push("lib");
+     println!("cargo:rustc-link-search=native={}", dst.display());
+-    println!("cargo:rustc-link-lib=static=expat");
++*/
++    println!("cargo:rustc-link-lib=dylib=expat");
+     println!("cargo:outdir={}", env::var("OUT_DIR").unwrap());
+ }