diff --git a/.gitignore b/.gitignore index d82a0f9..58505e3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /strum-0.17.1.crate /strum-0.18.0.crate /strum-0.21.0.crate +/strum-0.24.0.crate diff --git a/rust-strum.spec b/rust-strum.spec index 330f720..7b32132 100644 --- a/rust-strum.spec +++ b/rust-strum.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate strum Name: rust-%{crate} -Version: 0.21.0 +Version: 0.24.0 Release: %autorelease Summary: Helpful macros for working with enums and strings @@ -15,11 +15,8 @@ URL: https://crates.io/crates/strum Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Helpful macros for working with enums and strings.} @@ -32,12 +29,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +42,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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}+derive-devel Summary: %{summary} @@ -57,11 +54,23 @@ BuildArch: noarch %description -n %{name}+derive-devel %{_description} -This package contains library source intended for building other packages -which use "derive" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+strum_macros-devel Summary: %{summary} @@ -69,11 +78,11 @@ BuildArch: noarch %description -n %{name}+strum_macros-devel %{_description} -This package contains library source intended for building other packages -which use "strum_macros" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "strum_macros" feature of the "%{crate}" crate. %files -n %{name}+strum_macros-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -90,7 +99,7 @@ which use "strum_macros" feature of "%{crate}" crate. %if %{with check} %check -%cargo_test -- --features derive +%cargo_test -f derive %endif %changelog diff --git a/sources b/sources index fe6db8b..cf9611c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (strum-0.21.0.crate) = 687a99aa93616e16510213b66f53be35561d19cd19f9776084e9d6d33f8576f5eec7a806a0e48997da2b41e6f563a05424c1d5cb5ab2b4a2310cfe1d3b10a5a6 +SHA512 (strum-0.24.0.crate) = 9136deb6bc6c4d48123b2df0f0bb4a46212622ed7bf92f6080a6520e7ce8610f7b55102357cd50d635977d7cde13581f80ce372d8473733b66070e4945166dd0