From d381e94a4841d52348d2e872e876279107f507fe Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 19 Jun 2020 14:40:09 -0700 Subject: [PATCH] Update to 0.3.2 --- .gitignore | 1 + ...-debug-related-tests-in-release-mode.patch | 41 ------------------- rust-pico-args.spec | 22 +++++++--- sources | 2 +- 4 files changed, 18 insertions(+), 48 deletions(-) delete mode 100644 0001-Ignore-debug-related-tests-in-release-mode.patch diff --git a/.gitignore b/.gitignore index ca5e9ff..8270868 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pico-args-0.3.1.crate +/pico-args-0.3.2.crate diff --git a/0001-Ignore-debug-related-tests-in-release-mode.patch b/0001-Ignore-debug-related-tests-in-release-mode.patch deleted file mode 100644 index e1345e9..0000000 --- a/0001-Ignore-debug-related-tests-in-release-mode.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 73eb2098180c460e24eeb575efc545bdc8efcf84 Mon Sep 17 00:00:00 2001 -From: Evgeniy Reizner -Date: Thu, 20 Feb 2020 03:18:57 +0200 -Subject: [PATCH] Ignore debug related tests in release mode. - -Closes #9 ---- - tests/tests.rs | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/tests/tests.rs b/tests/tests.rs -index 3ce69640caf7..bc4004344d72 100644 ---- a/tests/tests.rs -+++ b/tests/tests.rs -@@ -49,6 +49,7 @@ fn invalid_flag_01() { - assert!(args.contains("v")); - } - -+#[cfg(debug_assertions)] - #[test] - #[should_panic] - fn invalid_flag_02() { -@@ -56,6 +57,7 @@ fn invalid_flag_02() { - assert!(args.contains(["v", "--version"])); - } - -+#[cfg(debug_assertions)] - #[test] - #[should_panic] - fn invalid_flag_03() { -@@ -63,6 +65,7 @@ fn invalid_flag_03() { - assert!(args.contains(["-v", "-version"])); - } - -+#[cfg(debug_assertions)] - #[test] - #[should_panic] - fn invalid_flag_04() { --- -2.24.1 - diff --git a/rust-pico-args.spec b/rust-pico-args.spec index 887690b..0cb1899 100644 --- a/rust-pico-args.spec +++ b/rust-pico-args.spec @@ -5,7 +5,7 @@ %global crate pico-args Name: rust-%{crate} -Version: 0.3.1 +Version: 0.3.2 Release: 1%{?dist} Summary: Ultra simple CLI arguments parser @@ -14,11 +14,6 @@ License: MIT URL: https://crates.io/crates/pico-args Source: %{crates_source} -# Some tests don't work in --release mode -# https://github.com/RazrFalcon/pico-args/issues/9 -# https://github.com/RazrFalcon/pico-args/commit/73eb2098180c460e24eeb575efc545bdc8efcf84 -Patch0001: 0001-Ignore-debug-related-tests-in-release-mode.patch - ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch @@ -57,6 +52,18 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+eq-separator-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+eq-separator-devel %{_description} + +This package contains library source intended for building other packages +which use "eq-separator" feature of "%{crate}" crate. + +%files -n %{name}+eq-separator-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -76,5 +83,8 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Fri Jun 19 2020 Josh Stone - 0.3.2-1 +- Update to 0.3.2 + * Wed Feb 19 16:28:49 PST 2020 Josh Stone - 0.3.1-1 - Initial package diff --git a/sources b/sources index e2ad9d4..a7dc543 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pico-args-0.3.1.crate) = a227cbe22bf8efe6fcdf5e8917d04c902ed31f0cdce3c431e1fef1c74f468daf2af599bb167036a0cc4c1a91a249d85068bab567de5f7cfbf2a1e1958c2b905d +SHA512 (pico-args-0.3.2.crate) = 77ffd1c281dbd0f7615a99f54ace605819e5a90baf18ac93a6f545070a0095a4ffde4d78f60fe5bb2c47778ec80785ba5cec17c78a773f4ccda688756dd8b165