diff options
author | CoprDistGit <infra@openeuler.org> | 2025-08-18 03:15:58 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-08-18 03:15:58 +0000 |
commit | 0f8391dee6583d1ab792e789a7c0149357f37c5d (patch) | |
tree | 0d17400ea01c48b0899b4f3605721ad498c3f2ae | |
parent | 698fb8d6715c9a27bdebb621242bc20245206277 (diff) |
automatic import of fast_floatopeneuler25.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | fast_float.spec | 61 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 63 insertions, 0 deletions
@@ -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 <mimanchiok@qq.com> - 3.9.0-1 +- project init @@ -0,0 +1 @@ +5656b0d8b150a3b157cfb092d214f6ea fast_float-3.9.0.tar.gz |