You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dragonbox/dragonbox.spec

60 lines
1.3 KiB

# Header-only package
%global debug_package %{nil}
Name: dragonbox
Version: 1.1.3
Release: %autorelease
Summary: Reference implementation of Dragonbox in C++
License: Apache-2.0 WITH LLVM-exception OR BSL-1.0
URL: https://github.com/jk-jeon/dragonbox
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Note that we set BuildArch:noarch here because package comes with no tests
# If in future tests are added, we should move this under the -devel subpackage
# to comply with FPG
BuildArch: noarch
BuildRequires: gcc-c++
BuildRequires: cmake
%description
Dragonbox is a float-to-string conversion algorithm based on a beautiful
algorithm Schubfach, developed by Raffaello Giulietti in 2017-2018.
Dragonbox is further inspired by Grisu and Grisu-Exact.
%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%autosetup
%build
%cmake -DDRAGONBOX_INSTALL_TO_CHARS=OFF
%cmake_build
%check
# No tests provided
%install
%cmake_install
%files devel
%license LICENSE-Apache2-LLVM LICENSE-Boost
%doc README.md
%{_includedir}/%{name}-%{version}/
%{_libdir}/cmake/%{name}-%{version}/
%changelog
%autochangelog