diff --git a/.gitignore b/.gitignore index d54c284..9223faa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /half-1.5.0.crate /half-1.6.0.crate /half-1.7.1.crate +/half-1.8.2.crate diff --git a/half-fix-metadata.diff b/half-fix-metadata.diff new file mode 100644 index 0000000..e40fd61 --- /dev/null +++ b/half-fix-metadata.diff @@ -0,0 +1,16 @@ +--- half-1.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ half-1.8.2/Cargo.toml 2021-11-06T13:30:08.723428+00:00 +@@ -46,13 +46,6 @@ + optional = true + default-features = false + +-[dependencies.zerocopy] +-version = "0.6.0" +-optional = true +-default-features = false +-[dev-dependencies.criterion] +-version = "0.3.5" +- + [dev-dependencies.quickcheck] + version = "1.0" + diff --git a/rust-half.spec b/rust-half.spec index 2b59428..3547e49 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -1,18 +1,22 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate half Name: rust-%{crate} -Version: 1.7.1 +Version: 1.8.2 Release: %autorelease Summary: Half-precision floating point f16 and bf16 types for Rust -# Upstream license specification: MIT/Apache-2.0 +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/half Source: %{crates_source} +# Initial patched metadata +# * drop unused zerocopy feature (missing dependencies) +# * drop unused benchmark-only criterion dependency to speed up builds +Patch0: half-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -37,7 +41,7 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE +%license LICENSE LICENSES/MIT.txt LICENSES/Apache-2.0.txt %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ diff --git a/sources b/sources index 6c6ac12..05bdbed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (half-1.7.1.crate) = cd678b9277fd909083b67eb86c1fe92f464c92e1932246c6793dd835069aac5af6b9dc16bfbdcfbcdd75d3a641bc1f2240effd83dff6068a41b6c54d3739f73e +SHA512 (half-1.8.2.crate) = 5eb128e41b8b7f9769a669834b2f8380b115395bf2a2a181732bf6c71234d978dbc4c527fddadaa7bd7fae9add77958b27616bfa1767fd123d3cfb887663292e