summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-18 03:15:58 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-18 03:15:58 +0000
commit0f8391dee6583d1ab792e789a7c0149357f37c5d (patch)
tree0d17400ea01c48b0899b4f3605721ad498c3f2ae
parent698fb8d6715c9a27bdebb621242bc20245206277 (diff)
automatic import of fast_floatopeneuler25.03
-rw-r--r--.gitignore1
-rw-r--r--fast_float.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
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 <mimanchiok@qq.com> - 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