diff --git a/.gitignore b/.gitignore index 35bf72e..1aee478 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /concolor-query-0.0.5.crate /concolor-query-0.1.0.crate +/concolor-query-0.3.3.crate diff --git a/concolor-query-fix-metadata-auto.diff b/concolor-query-fix-metadata-auto.diff new file mode 100644 index 0000000..2d2cbd9 --- /dev/null +++ b/concolor-query-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- concolor-query-0.3.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ concolor-query-0.3.3/Cargo.toml 2023-03-30T14:04:18.578437+00:00 +@@ -34,9 +34,3 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/rust-cli/concolor" + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.45.0" +-features = [ +- "Win32_System_Console", +- "Win32_Foundation", +-] diff --git a/concolor-query-fix-metadata.diff b/concolor-query-fix-metadata.diff deleted file mode 100644 index 2eeb689..0000000 --- a/concolor-query-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- concolor-query-0.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ concolor-query-0.1.0/Cargo.toml 2023-02-20T16:29:25.025487+00:00 -@@ -33,6 +33,3 @@ - categories = ["command-line-interface"] - license = "MIT OR Apache-2.0" - repository = "https://github.com/rust-cli/concolor" -- --[features] --windows = [] diff --git a/rust-concolor-query.spec b/rust-concolor-query.spec index e7066f8..6f0ce84 100644 --- a/rust-concolor-query.spec +++ b/rust-concolor-query.spec @@ -5,16 +5,15 @@ %global crate concolor-query Name: rust-concolor-query -Version: 0.1.0 +Version: 0.3.3 Release: %autorelease Summary: Look up colored console capabilities License: MIT OR Apache-2.0 URL: https://crates.io/crates/concolor-query Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * remove Windows-specific features -Patch: concolor-query-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: concolor-query-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index febadbc..e131dee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (concolor-query-0.1.0.crate) = d311921a177da3611c64a1cce726de6cdf20ce22d1f1f4611824331c1ac015f4d7599b58291bbded6471209764d03698f93312584fe9aefb162d0c03f9a4030f +SHA512 (concolor-query-0.3.3.crate) = 6c039db27978b809d2eaccb86261532a46ebab3677e6c3963cae5a6cc2920021cfd097bf622fd6eaf2b1fb3c5ee5f07fa79eeff0682f2b70e739fc0d062505e9