diff --git a/.gitignore b/.gitignore index 40f968b..68571e8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /clap_derive-3.0.6.crate /clap_derive-3.0.14.crate /clap_derive-3.1.2.crate +/clap_derive-3.1.18.crate diff --git a/rust-clap_derive.spec b/rust-clap_derive.spec index b28e913..e08a2da 100644 --- a/rust-clap_derive.spec +++ b/rust-clap_derive.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate clap_derive Name: rust-%{crate} -Version: 3.1.2 +Version: 3.1.18 Release: %autorelease Summary: Parse command line argument by defining a struct, derive crate @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Parse command line argument by defining a struct, derive crate.} @@ -33,9 +33,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +48,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} @@ -59,7 +60,19 @@ This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unstable-v4-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-v4-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable-v4" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-v4-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 38d7876..2b17efb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (clap_derive-3.1.2.crate) = c09644da408105224ddf23fa6d1e8da39ebf06edaa8f8d03789f9f2f5375f38c17b1865ae148c6f266248669955599bb3947648045c72d7c49dc48334c8c779a +SHA512 (clap_derive-3.1.18.crate) = 9bf92e45de15bdfe1ca9a1363f1d243b8df1e5e7d957d6240fa351387b362ef91dc9acffea7256c2161ae8472e35ee2cd678c0bee1f9a27771ae9f4f3f71b351