diff --git a/.gitignore b/.gitignore index 2addebd..91a933e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /smol_str-0.1.21.crate +/smol_str-0.1.23.crate diff --git a/rust-smol_str.spec b/rust-smol_str.spec index 3e703d9..eb0a1f5 100644 --- a/rust-smol_str.spec +++ b/rust-smol_str.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate smol_str Name: rust-%{crate} -Version: 0.1.21 +Version: 0.1.23 Release: %autorelease Summary: Small-string optimized string type with O(1) clone @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Small-string optimized string type with O(1) clone.} @@ -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}+arbitrary-devel Summary: %{summary} @@ -59,7 +60,7 @@ This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -71,7 +72,7 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -83,7 +84,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -100,7 +101,8 @@ use the "std" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip a test that requires running rustfmt +%cargo_test -- -- --skip check_code_formatting %endif %changelog diff --git a/sources b/sources index 91a86be..b259c40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (smol_str-0.1.21.crate) = b548b21b7eaba6af6173ddbed3f0e808dfc5aec31553ca30a16fe6e487bdd0f01ddf981ffd5157e083e1901780daf2642d4d807af79d4fd1bdfcb4fff778e5ce +SHA512 (smol_str-0.1.23.crate) = 73bd2c20717bc1960021aced0c98654123dbd9b171aff5890374efedb20e4e1e2273f35f6a8d8b584ea6f31ac9da2734f0656a8da0830af0b6a4f45b7b8faba1