From ca1f8afc9fe754dd3dc43caff3e8c28947e36a98 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 15:22:18 +0300 Subject: [PATCH] import rust-lexical-parse-float-1.0.5-1.el10 --- .gitignore | 2 +- .rust-lexical-parse-float.metadata | 2 +- SOURCES/lexical-parse-float-fix-metadata.diff | 8 ++-- SPECS/rust-lexical-parse-float.spec | 47 +++++++------------ 4 files changed, 22 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 4065b22..946e7f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/lexical-parse-float-0.8.5.crate +SOURCES/lexical-parse-float-1.0.5.crate diff --git a/.rust-lexical-parse-float.metadata b/.rust-lexical-parse-float.metadata index 9f3af70..4e9e104 100644 --- a/.rust-lexical-parse-float.metadata +++ b/.rust-lexical-parse-float.metadata @@ -1 +1 @@ -664c97452448e12f1b7541506ee5c3b5d71f4ec3 SOURCES/lexical-parse-float-0.8.5.crate +d763579209efa083e7654b6c492e3007a29f66ea SOURCES/lexical-parse-float-1.0.5.crate diff --git a/SOURCES/lexical-parse-float-fix-metadata.diff b/SOURCES/lexical-parse-float-fix-metadata.diff index be1640b..0c381ed 100644 --- a/SOURCES/lexical-parse-float-fix-metadata.diff +++ b/SOURCES/lexical-parse-float-fix-metadata.diff @@ -1,8 +1,8 @@ ---- lexical-parse-float-0.8.5/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ lexical-parse-float-0.8.5/Cargo.toml 2023-12-04T22:18:43.073095+00:00 -@@ -57,6 +57,9 @@ +--- lexical-parse-float-1.0.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ lexical-parse-float-1.0.5/Cargo.toml 2024-12-27T02:49:31.598253+00:00 +@@ -154,6 +154,9 @@ [dev-dependencies.proptest] - version = "0.10.1" + version = ">=1.5.0" +[dev-dependencies.quickcheck] +version = "1.0.3" diff --git a/SPECS/rust-lexical-parse-float.spec b/SPECS/rust-lexical-parse-float.spec index 059ddab..5d4177f 100644 --- a/SPECS/rust-lexical-parse-float.spec +++ b/SPECS/rust-lexical-parse-float.spec @@ -1,21 +1,21 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.6.5) +## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 3; + release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# Generated by rust2rpm 25 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate lexical-parse-float Name: rust-lexical-parse-float -Version: 0.8.5 +Version: 1.0.5 Release: %autorelease Summary: Efficient parsing of floats from strings @@ -24,7 +24,13 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/lexical-parse-float Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * add missing dev-dependency for quickcheck +# * Upstream uses a patched version of quickcheck for tests via a git +# dependency, writing: +# # FIXME: Replace back to "1.0.4" once the PR is merged. +# # There's an issue in quickcheck due to an infinitely repeating shrinker. +# # Issue: https://github.com/BurntSushi/quickcheck/issues/295 +# # Fix: https://github.com/BurntSushi/quickcheck/pull/296 +# However, the packaged quickcheck 1.0.3 works for us. Patch: lexical-parse-float-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -123,18 +129,6 @@ use the "lint" feature of the "%{crate}" crate. %files -n %{name}+lint-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+nightly-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+nightly-devel %{_description} - -This package contains library source intended for building other packages which -use the "nightly" feature of the "%{crate}" crate. - -%files -n %{name}+nightly-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+power-of-two-devel Summary: %{summary} BuildArch: noarch @@ -159,18 +153,6 @@ use the "radix" feature of the "%{crate}" crate. %files -n %{name}+radix-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+safe-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+safe-devel %{_description} - -This package contains library source intended for building other packages which -use the "safe" feature of the "%{crate}" crate. - -%files -n %{name}+safe-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -202,10 +184,13 @@ use the "std" feature of the "%{crate}" crate. %endif %changelog -* Sun Jan 05 2025 Arkady L. Shane - 0.8.5-3 +* Sun Jan 05 2025 Arkady L. Shane - 1.0.5-1 - Rebuilt for MSVSphere 10 ## START: Generated by rpmautospec +* Tue Dec 31 2024 Benjamin A. Beasley - 1.0.5-1 +- Update to version 1.0.5; Fixes RHBZ#2312396 + * Fri Jul 19 2024 Fedora Release Engineering - 0.8.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild