From dc06a48c1a06a375e0a735196724012c2696229c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 8 Feb 2022 00:40:44 +0100 Subject: [PATCH] Update to version 0.2.2; Fixes RHBZ#2051103 --- .gitignore | 1 + libm-fix-metadata.diff | 8 ++++---- rust-libm.spec | 16 ++++++---------- sources | 2 +- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index e0c1d17..eb7e0d0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /libm-0.1.3.crate /libm-0.1.4.crate /libm-0.2.1.crate +/libm-0.2.2.crate diff --git a/libm-fix-metadata.diff b/libm-fix-metadata.diff index 85072b0..cab7804 100644 --- a/libm-fix-metadata.diff +++ b/libm-fix-metadata.diff @@ -1,10 +1,10 @@ ---- libm-0.2.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ libm-0.2.1/Cargo.toml 2019-11-28T14:17:50.762271+00:00 +--- libm-0.2.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libm-0.2.2/Cargo.toml 2022-02-07T22:51:18.738558+00:00 @@ -21,6 +21,7 @@ categories = ["no-std"] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/libm" +exclude = ["/ci/*"] + [profile.release] + lto = "fat" [dev-dependencies.no-panic] - version = "0.1.8" - [build-dependencies.rand] diff --git a/rust-libm.spec b/rust-libm.spec index a2e8efc..1fa8835 100644 --- a/rust-libm.spec +++ b/rust-libm.spec @@ -1,12 +1,11 @@ -# Generated by rust2rpm 19 -# no-panic fails: https://github.com/rust-lang/libm/issues/234 -%bcond_with check +# Generated by rust2rpm 20 +%bcond_without check %global debug_package %{nil} %global crate libm Name: rust-%{crate} -Version: 0.2.1 +Version: 0.2.2 Release: %autorelease Summary: Libm in pure Rust @@ -19,9 +18,6 @@ Source: %{crates_source} Patch0: libm-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -37,7 +33,7 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT @@ -51,7 +47,7 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -63,7 +59,7 @@ BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which -use "the unstable" feature of the "%{crate}" crate. +use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index 4c787b7..ca1d5f9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libm-0.2.1.crate) = a037ce773e4c4b0a9c20a23a9c04a34bc468753a1ccafb42199ae1793adc100148b77b08533c4bcc0f269d7de421c0657b6ea62f132ae808cc3b998f55e713a9 +SHA512 (libm-0.2.2.crate) = 5aed180dec326ed9ee2fb90dfd94127ee5f75804f7ce7fa0ed5c7e1f0533215690553551da44c055f9ad47170ca32971467fb378f7328a3c22930832388eed75