diff --git a/README.md b/README.md deleted file mode 100644 index 0e0dbe2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-fxhash - -The rust-fxhash package \ No newline at end of file diff --git a/rust-fxhash.spec b/rust-fxhash.spec index 94ade94..2e202e4 100644 --- a/rust-fxhash.spec +++ b/rust-fxhash.spec @@ -1,30 +1,25 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate fxhash -Name: rust-%{crate} +Name: rust-fxhash Version: 0.2.1 Release: %autorelease Summary: Fast, non-secure, hashing algorithm # Upstream license specification: Apache-2.0/MIT # https://github.com/cbreeden/fxhash/issues/9 -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/fxhash Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Fast, non-secure, hashing algorithm derived from an internal hasher used in -FireFox and Rustc.} +A fast, non-secure, hashing algorithm derived from an internal hasher +used in FireFox and Rustc.} %description %{_description} @@ -34,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,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}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1