diff --git a/.gitignore b/.gitignore index e0c1d17..695372d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ /libm-0.1.3.crate /libm-0.1.4.crate /libm-0.2.1.crate +/libm-0.2.2.crate +/libm-0.2.3.crate +/libm-0.2.5.crate diff --git a/libm-fix-metadata.diff b/libm-fix-metadata.diff index 85072b0..abc6dd3 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 -@@ -21,6 +21,7 @@ - categories = ["no-std"] +--- libm-0.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ libm-0.2.5/Cargo.toml 2022-08-20T20:12:55.550260+00:00 +@@ -25,6 +25,7 @@ license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/libm" -+exclude = ["/ci/*"] - [dev-dependencies.no-panic] - version = "0.1.8" - [build-dependencies.rand] + resolver = "1" ++exclude = ["/ci/"] + + [profile.release] + lto = "fat" diff --git a/rust-libm.spec b/rust-libm.spec index a2e8efc..4e66efd 100644 --- a/rust-libm.spec +++ b/rust-libm.spec @@ -1,29 +1,25 @@ -# Generated by rust2rpm 19 -# no-panic fails: https://github.com/rust-lang/libm/issues/234 -%bcond_with check +# Generated by rust2rpm 22 +%bcond_without check %global debug_package %{nil} %global crate libm -Name: rust-%{crate} -Version: 0.2.1 +Name: rust-libm +Version: 0.2.5 Release: %autorelease Summary: Libm in pure Rust -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/libm Source: %{crates_source} -# Initial patched metadata -# * Exclude ci/, https://github.com/japaric/libm/pull/148 -Patch0: libm-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * exclude files that are only useful for upstream CI: +# https://github.com/japaric/libm/pull/148 +Patch: libm-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Libm in pure Rust.} @@ -37,12 +33,15 @@ 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 -%doc CHANGELOG.md CONTRIBUTING.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,10 +50,10 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -63,10 +62,10 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 4c787b7..8217dd1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libm-0.2.1.crate) = a037ce773e4c4b0a9c20a23a9c04a34bc468753a1ccafb42199ae1793adc100148b77b08533c4bcc0f269d7de421c0657b6ea62f132ae808cc3b998f55e713a9 +SHA512 (libm-0.2.5.crate) = 4d56501fdc86011f1b707b349c409564c85c2484b185adf9dc5d5a8a8fcca8c0e172c95ee5dbfb428b7b13d8cfb1e23c596d3ae3bfa878f2019fabd3258c7863