summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--fastfloat.spec66
-rw-r--r--sources1
3 files changed, 68 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..863a0b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fastfloat-3.9.0.tar.gz
diff --git a/fastfloat.spec b/fastfloat.spec
new file mode 100644
index 0000000..ea6e4f6
--- /dev/null
+++ b/fastfloat.spec
@@ -0,0 +1,66 @@
+%global debug_package %{nil}
+
+Name: fastfloat
+Version: 3.9.0
+Release: 1
+Summary: fastfloat
+License: fastfloat
+URL: https://github.com/nemtrif/utfcpp
+Source0: fastfloat-%{version}.tar.gz
+BuildRequires: cmake3
+BuildRequires: gcc-c++
+
+%description
+%{summary}.
+
+Features include:
+ - iterating through UTF-8 encoded strings
+ - converting between UTF-8 and UTF-16/UTF-32
+ - detecting invalid UTF-8 sequences
+
+This project currently only contains header files, which can be found in the
+%{name}-devel package.
+
+%package devel
+Summary: Header files for %{name}
+BuildArch: noarch
+Provides: %{name}-static = %{version}-%{release}
+Requires: cmake-filesystem
+
+%description devel
+%{summary}.
+
+Features include:
+ - iterating through UTF-8 encoded strings
+ - converting between UTF-8 and UTF-16/UTF-32
+ - detecting invalid UTF-8 sequences
+
+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
+%dir %{_includedir}/fast_float
+%{_includedir}/fast_float/ascii_number.h
+%{_includedir}/fast_float/bigint.h
+%{_includedir}/fast_float/decimal_to_binary.h
+%{_includedir}/fast_float/digit_comparison.h
+%{_includedir}/fast_float/fast_float.h
+%{_includedir}/fast_float/fast_table.h
+%{_includedir}/fast_float/float_common.h
+%{_includedir}/fast_float/parse_number.h
+%{_includedir}/fast_float/simple_decimal_conversion.h
+%{_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..ab8b7be
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5656b0d8b150a3b157cfb092d214f6ea fastfloat-3.9.0.tar.gz