diff --git a/.gitignore b/.gitignore index d0526ef..33364db 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /clap-2.33.1.crate /clap-2.33.3.crate /clap-3.0.0-beta.2.crate +/clap-3.0.0-beta.5.crate diff --git a/clap-fix-metadata.diff b/clap-fix-metadata.diff new file mode 100644 index 0000000..ae61002 --- /dev/null +++ b/clap-fix-metadata.diff @@ -0,0 +1,26 @@ +--- clap-3.0.0-beta.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ clap-3.0.0-beta.5/Cargo.toml 2021-11-15T18:51:50.326098+00:00 +@@ -35,14 +35,6 @@ + + [lib] + bench = false +- +-[[example]] +-name = "busybox" +-path = "examples/24a_multicall_busybox.rs" +- +-[[example]] +-name = "hostname" +-path = "examples/24b_multicall_hostname.rs" + + [[bench]] + name = "01_default" +@@ -96,7 +88,7 @@ + optional = true + + [dependencies.os_str_bytes] +-version = "4.1" ++version = "5" + + [dependencies.regex] + version = "1.0" diff --git a/rust-clap.spec b/rust-clap.spec index 92669da..6445284 100644 --- a/rust-clap.spec +++ b/rust-clap.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate clap Name: rust-%{crate} -Version: 3.0.0~beta.2 +Version: 3.0.0~beta.5 Release: %autorelease Summary: Simple to use, efficient, and full-featured Command Line Argument Parser @@ -13,6 +13,10 @@ Summary: Simple to use, efficient, and full-featured Command Line Argumen License: MIT or ASL 2.0 URL: https://crates.io/crates/clap Source: %{crates_source} +# Initial patched metadata +# * Remove examples not provided in the crate +# * Bump os_str_bytes to 5 +Patch0: clap-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -63,6 +67,18 @@ which use "atty" feature of "%{crate}" crate. %files -n %{name}+atty-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+backtrace-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+backtrace-devel %{_description} + +This package contains library source intended for building other packages +which use "backtrace" feature of "%{crate}" crate. + +%files -n %{name}+backtrace-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+cargo-devel Summary: %{summary} BuildArch: noarch @@ -123,16 +139,16 @@ which use "derive" feature of "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+doc-devel +%package -n %{name}+env-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+doc-devel %{_description} +%description -n %{name}+env-devel %{_description} This package contains library source intended for building other packages -which use "doc" feature of "%{crate}" crate. +which use "env" feature of "%{crate}" crate. -%files -n %{name}+doc-devel +%files -n %{name}+env-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+lazy_static-devel @@ -219,16 +235,52 @@ which use "terminal_size" feature of "%{crate}" crate. %files -n %{name}+terminal_size-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml -%package -n %{name}+unstable-devel +%package -n %{name}+unicase-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicase-devel %{_description} + +This package contains library source intended for building other packages +which use "unicase" feature of "%{crate}" crate. + +%files -n %{name}+unicase-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unicode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-devel %{_description} + +This package contains library source intended for building other packages +which use "unicode" feature of "%{crate}" crate. + +%files -n %{name}+unicode-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable-multicall-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-multicall-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable-multicall" feature of "%{crate}" crate. + +%files -n %{name}+unstable-multicall-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+unstable-replace-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+unstable-devel %{_description} +%description -n %{name}+unstable-replace-devel %{_description} This package contains library source intended for building other packages -which use "unstable" feature of "%{crate}" crate. +which use "unstable-replace" feature of "%{crate}" crate. -%files -n %{name}+unstable-devel +%files -n %{name}+unstable-replace-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+wrap_help-devel diff --git a/sources b/sources index 09b375e..a2ef7c1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clap-3.0.0-beta.2.crate) = bb51ab2dfe06eb11023d3933ca7a657e3c9e6fa064cba81e2436450036dca3dcc2ca5a9b90785a0042dd823e57ad1e7dc765b788928c249fd10906329b33cdb7 +SHA512 (clap-3.0.0-beta.5.crate) = bac8e4064c0c39b2a964cd0bc5fef85cbae4dc42dde37e7f52d19d08971f5d0062f33dd55926e3058aa4b3884cba785062438faf0a40bc817fd83cff92315a94