File fast_float.spec of Package fast_float

#
# spec file for package fast_float
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           fast_float
Summary:        Fast & exact implementation of C++ from_chars for float/double
License:        Apache-2.0 OR MIT
Version:        4.0.0
Release:        0
Url:            https://github.com/fastfloat/fast_float
Source0:        https://github.com/fastfloat/fast_float/archive/v%{version}/%{name}-%{version}.tar.gz
Group:          Development/Languages/C and C++
Summary:        Fast & exact implementation of C++ from_chars for float/double
BuildRequires:  cmake
BuildRequires:  gcc-c++

%description
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.

%package devel
Summary:        Fast & exact implementation of C++ from_chars for float/double
BuildArch:      noarch

%description devel
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.

%prep

%autosetup -p1

%build
%cmake
%cmake_build

%install
%cmake_install

%files devel
%doc AUTHORS CONTRIBUTORS README.md
%license LICENSE-APACHE LICENSE-MIT
%{_includedir}/%{name}
%{_datadir}/cmake/FastFloat

%changelog

openSUSE Build Service is sponsored by