]> git.proxmox.com Git - debcargo-conf.git/commitdiff
package itertools-num
authorAlexander Kjäll <alexander.kjall@gmail.com>
Sat, 12 Mar 2022 16:38:13 +0000 (17:38 +0100)
committerAlexander Kjäll <alexander.kjall@gmail.com>
Sat, 12 Mar 2022 16:39:20 +0000 (17:39 +0100)
src/itertools-num/debian/RFS [new file with mode: 0644]
src/itertools-num/debian/changelog [new file with mode: 0644]
src/itertools-num/debian/copyright [new file with mode: 0644]
src/itertools-num/debian/copyright.debcargo.hint [new file with mode: 0644]
src/itertools-num/debian/debcargo.toml [new file with mode: 0644]
src/itertools-num/debian/patches/relax-itertools-dep.patch [new file with mode: 0644]
src/itertools-num/debian/patches/remove-quickcheck.patch [new file with mode: 0644]
src/itertools-num/debian/patches/series [new file with mode: 0644]

diff --git a/src/itertools-num/debian/RFS b/src/itertools-num/debian/RFS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/itertools-num/debian/changelog b/src/itertools-num/debian/changelog
new file mode 100644 (file)
index 0000000..bb7b8ae
--- /dev/null
@@ -0,0 +1,5 @@
+rust-itertools-num (0.1.3-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Package itertools-num 0.1.3 from crates.io using debcargo 2.5.0
+
+ -- Alexander Kjäll <alexander.kjall@gmail.com>  Sat, 12 Mar 2022 17:21:49 +0100
diff --git a/src/itertools-num/debian/copyright b/src/itertools-num/debian/copyright
new file mode 100644 (file)
index 0000000..e6be9a4
--- /dev/null
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: itertools-num
+Upstream-Contact: bluss
+Source: https://github.com/bluss/itertools-num
+
+Files: *
+Copyright: 2016-2018 bluss
+License: MIT or Apache-2.0
+
+Files: debian/*
+Copyright:
+ 2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2022 Alexander Kjäll <alexander.kjall@gmail.com>
+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/itertools-num/debian/copyright.debcargo.hint b/src/itertools-num/debian/copyright.debcargo.hint
new file mode 100644 (file)
index 0000000..24448d3
--- /dev/null
@@ -0,0 +1,49 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: itertools-num
+Upstream-Contact: bluss
+Source: https://github.com/bluss/itertools-num
+
+Files: *
+Copyright: FIXME (overlay) UNKNOWN-YEARS bluss
+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: 2017-2018 bluss
+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:
+ 2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2022 Alexander Kjäll <alexander.kjall@gmail.com>
+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/itertools-num/debian/debcargo.toml b/src/itertools-num/debian/debcargo.toml
new file mode 100644 (file)
index 0000000..d0bb128
--- /dev/null
@@ -0,0 +1,5 @@
+overlay = "."
+uploaders = ["Alexander Kjäll <alexander.kjall@gmail.com>"]
+
+# This is due to that the tests needs to be run in --release in order to not take to much time
+test_is_broken = true
\ No newline at end of file
diff --git a/src/itertools-num/debian/patches/relax-itertools-dep.patch b/src/itertools-num/debian/patches/relax-itertools-dep.patch
new file mode 100644 (file)
index 0000000..ca04af8
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index ed103b1..311d67a 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -24,7 +24,7 @@ no-dev-version = true
+ [dependencies.num-traits]
+ version = "0.2.2"
+ [dev-dependencies.itertools]
+-version = "0.7.7"
++version = "0.10"
+ [dev-dependencies.quickcheck]
+ version = "0.7"
diff --git a/src/itertools-num/debian/patches/remove-quickcheck.patch b/src/itertools-num/debian/patches/remove-quickcheck.patch
new file mode 100644 (file)
index 0000000..8e9dc10
--- /dev/null
@@ -0,0 +1,45 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 311d67a..9d869a7 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -26,6 +26,4 @@ version = "0.2.2"
+ [dev-dependencies.itertools]
+ version = "0.10"
+-[dev-dependencies.quickcheck]
+-version = "0.7"
+ default-features = false
+diff --git a/tests/quick.rs b/tests/quick.rs
+deleted file mode 100644
+index 835ed80..0000000
+--- a/tests/quick.rs
++++ /dev/null
+@@ -1,28 +0,0 @@
+-#[macro_use]
+-extern crate quickcheck;
+-extern crate itertools_num;
+-
+-fn exact_size<I: ExactSizeIterator>(mut it: I) -> bool {
+-    // check every iteration
+-    let (mut low, mut hi) = it.size_hint();
+-    if Some(low) != hi { return false; }
+-    while let Some(_) = it.next() {
+-        let (xlow, xhi) = it.size_hint();
+-        if low != xlow + 1 { return false; }
+-        low = xlow;
+-        hi = xhi;
+-        if Some(low) != hi { return false; }
+-    }
+-    let (low, hi) = it.size_hint();
+-    low == 0 && hi == Some(0)
+-}
+-
+-
+-quickcheck! {
+-    fn size_linspace(a: f32, b: f32, n: usize) -> bool {
+-        let it = itertools_num::linspace(a, b, n);
+-        it.len() == n &&
+-            exact_size(it)
+-    }
+-}
+-
diff --git a/src/itertools-num/debian/patches/series b/src/itertools-num/debian/patches/series
new file mode 100644 (file)
index 0000000..08c1074
--- /dev/null
@@ -0,0 +1,2 @@
+relax-itertools-dep.patch
+remove-quickcheck.patch