summaryrefslogtreecommitdiff
path: root/fast_float.spec
blob: ffb592406fb37e1c3c8ab7d6bf9459aa5ba180f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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