diff --git a/lexical-core-fix-metadata.diff b/lexical-core-fix-metadata.diff index 6d2fe4b..4fd59f5 100644 --- a/lexical-core-fix-metadata.diff +++ b/lexical-core-fix-metadata.diff @@ -1,6 +1,23 @@ --- lexical-core-0.7.6/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ lexical-core-0.7.6/Cargo.toml 2021-11-14T11:46:47.051207+00:00 -@@ -71,7 +71,7 @@ ++++ lexical-core-0.7.6/Cargo.toml 2022-12-15T13:01:15.553557+00:00 +@@ -25,16 +25,7 @@ + categories = ["parsing", "encoding", "no-std", "value-formatting"] + license = "MIT/Apache-2.0" + repository = "https://github.com/Alexhuszagh/rust-lexical/tree/master/lexical-core" +-[profile.dev] +-opt-level = 0 +-lto = false +-debug = true + +-[profile.release] +-opt-level = 3 +-lto = true +-debug = false +-debug-assertions = false + [dependencies.arrayvec] + version = "0.5" + features = ["array-sizes-33-128"] +@@ -71,7 +62,7 @@ version = "1" optional = true [dev-dependencies.approx] diff --git a/rust-lexical-core.spec b/rust-lexical-core.spec index 366cc0e..f42a5f4 100644 --- a/rust-lexical-core.spec +++ b/rust-lexical-core.spec @@ -1,28 +1,24 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate lexical-core -Name: rust-%{crate} +Name: rust-lexical-core Version: 0.7.6 Release: %autorelease Summary: Lexical, to- and from-string conversion routines # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/lexical-core Source: %{crates_source} -# Initial patched metadata -# * Bump approx to 0.5.0 -Patch0: lexical-core-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump approx dev-dependency from 0.4 to 0.5 +# * disable LTO to work around LLVM crashes on ppc64le +Patch: lexical-core-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Lexical, to- and from-string conversion routines.} @@ -35,13 +31,15 @@ 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 -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +47,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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+arrayvec-devel Summary: %{summary} @@ -61,11 +59,11 @@ BuildArch: noarch %description -n %{name}+arrayvec-devel %{_description} -This package contains library source intended for building other packages -which use "arrayvec" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "arrayvec" feature of the "%{crate}" crate. %files -n %{name}+arrayvec-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+correct-devel Summary: %{summary} @@ -73,11 +71,11 @@ BuildArch: noarch %description -n %{name}+correct-devel %{_description} -This package contains library source intended for building other packages -which use "correct" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "correct" feature of the "%{crate}" crate. %files -n %{name}+correct-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dtoa-devel Summary: %{summary} @@ -85,11 +83,11 @@ BuildArch: noarch %description -n %{name}+dtoa-devel %{_description} -This package contains library source intended for building other packages -which use "dtoa" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "dtoa" feature of the "%{crate}" crate. %files -n %{name}+dtoa-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+format-devel Summary: %{summary} @@ -97,11 +95,11 @@ BuildArch: noarch %description -n %{name}+format-devel %{_description} -This package contains library source intended for building other packages -which use "format" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "format" feature of the "%{crate}" crate. %files -n %{name}+format-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+grisu3-devel Summary: %{summary} @@ -109,11 +107,11 @@ BuildArch: noarch %description -n %{name}+grisu3-devel %{_description} -This package contains library source intended for building other packages -which use "grisu3" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "grisu3" feature of the "%{crate}" crate. %files -n %{name}+grisu3-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libm-devel Summary: %{summary} @@ -121,11 +119,11 @@ BuildArch: noarch %description -n %{name}+libm-devel %{_description} -This package contains library source intended for building other packages -which use "libm" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "libm" feature of the "%{crate}" crate. %files -n %{name}+libm-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+noinline-devel Summary: %{summary} @@ -133,11 +131,11 @@ BuildArch: noarch %description -n %{name}+noinline-devel %{_description} -This package contains library source intended for building other packages -which use "noinline" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "noinline" feature of the "%{crate}" crate. %files -n %{name}+noinline-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+property_tests-devel Summary: %{summary} @@ -145,11 +143,11 @@ BuildArch: noarch %description -n %{name}+property_tests-devel %{_description} -This package contains library source intended for building other packages -which use "property_tests" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "property_tests" feature of the "%{crate}" crate. %files -n %{name}+property_tests-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proptest-devel Summary: %{summary} @@ -157,11 +155,11 @@ BuildArch: noarch %description -n %{name}+proptest-devel %{_description} -This package contains library source intended for building other packages -which use "proptest" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "proptest" feature of the "%{crate}" crate. %files -n %{name}+proptest-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quickcheck-devel Summary: %{summary} @@ -169,11 +167,11 @@ BuildArch: noarch %description -n %{name}+quickcheck-devel %{_description} -This package contains library source intended for building other packages -which use "quickcheck" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "quickcheck" feature of the "%{crate}" crate. %files -n %{name}+quickcheck-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+radix-devel Summary: %{summary} @@ -181,11 +179,11 @@ BuildArch: noarch %description -n %{name}+radix-devel %{_description} -This package contains library source intended for building other packages -which use "radix" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "radix" feature of the "%{crate}" crate. %files -n %{name}+radix-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rounding-devel Summary: %{summary} @@ -193,11 +191,11 @@ BuildArch: noarch %description -n %{name}+rounding-devel %{_description} -This package contains library source intended for building other packages -which use "rounding" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rounding" feature of the "%{crate}" crate. %files -n %{name}+rounding-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ryu-devel Summary: %{summary} @@ -205,11 +203,11 @@ BuildArch: noarch %description -n %{name}+ryu-devel %{_description} -This package contains library source intended for building other packages -which use "ryu" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "ryu" feature of the "%{crate}" crate. %files -n %{name}+ryu-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+static_assertions-devel Summary: %{summary} @@ -217,11 +215,11 @@ BuildArch: noarch %description -n %{name}+static_assertions-devel %{_description} -This package contains library source intended for building other packages -which use "static_assertions" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "static_assertions" feature of the "%{crate}" crate. %files -n %{name}+static_assertions-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -229,11 +227,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %package -n %{name}+table-devel Summary: %{summary} @@ -241,11 +239,11 @@ BuildArch: noarch %description -n %{name}+table-devel %{_description} -This package contains library source intended for building other packages -which use "table" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "table" feature of the "%{crate}" crate. %files -n %{name}+table-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trim_floats-devel Summary: %{summary} @@ -253,11 +251,11 @@ BuildArch: noarch %description -n %{name}+trim_floats-devel %{_description} -This package contains library source intended for building other packages -which use "trim_floats" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "trim_floats" feature of the "%{crate}" crate. %files -n %{name}+trim_floats-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unchecked_index-devel Summary: %{summary} @@ -265,11 +263,11 @@ BuildArch: noarch %description -n %{name}+unchecked_index-devel %{_description} -This package contains library source intended for building other packages -which use "unchecked_index" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unchecked_index" feature of the "%{crate}" crate. %files -n %{name}+unchecked_index-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1