From 0f8391dee6583d1ab792e789a7c0149357f37c5d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 18 Aug 2025 03:15:58 +0000 Subject: automatic import of fast_float --- .gitignore | 1 + fast_float.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 fast_float.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a9cf401 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fast_float-3.9.0.tar.gz diff --git a/fast_float.spec b/fast_float.spec new file mode 100644 index 0000000..ffb5924 --- /dev/null +++ b/fast_float.spec @@ -0,0 +1,61 @@ +%global debug_package %{nil} + +Name: fast_float +Version: 3.9.0 +Release: 1 +Summary: Fast & exact implementation of C++ from_chars for float/double +URL: https://github.com/fastfloat/fast_float +License: Apache-2.0 OR MIT + +Source0: %{url}/archive/v%{version}/fast_float-%{version}.tar.gz + +BuildRequires: cmake3 +BuildRequires: gcc-c++ + +%global common_description %{expand: +The fast_float library provides fast header-only implementations for the C++ +from_chars functions for float and double types. These functions convert ASCII +strings representing decimal values (e.g., 1.3e10) into binary types. We +provide exact rounding (including round to even). In our experience, these +fast_float functions many times faster than comparable number-parsing functions +from existing C++ standard libraries.} + +%description %{common_description} + +%package devel +Summary: Header files for %{name} +BuildArch: noarch +Provides: %{name}-static = %{version}-%{release} +Requires: cmake-filesystem + +%description devel +%{summary}. + +%{common_description} + +This project currently only contains header files, which can be found in the +%{name}-devel package. + +%prep +%setup -q -n fast_float-%{version} + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files devel +%license LICENSE-APACHE +%license LICENSE-MIT +%doc AUTHORS +%doc CONTRIBUTORS +%doc README.md + +%{_includedir}/fast_float/ +%{_datadir}/cmake/FastFloat/ + +%changelog +* Tue Aug 5 2025 mimanchiok - 3.9.0-1 +- project init diff --git a/sources b/sources new file mode 100644 index 0000000..9298a8d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +5656b0d8b150a3b157cfb092d214f6ea fast_float-3.9.0.tar.gz -- cgit v1.2.3