From 0c5508ceea541ef9cbea0ccf0992167a12433400 Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Sat, 2 Sep 2023 13:55:02 +0200 Subject: [PATCH] Initial release (fedora#2224783) --- .gitignore | 1 + dragonbox.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 dragonbox.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19073d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dragonbox-1.1.3.tar.gz diff --git a/dragonbox.spec b/dragonbox.spec new file mode 100644 index 0000000..a6f11af --- /dev/null +++ b/dragonbox.spec @@ -0,0 +1,59 @@ +# 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 diff --git a/sources b/sources new file mode 100644 index 0000000..1cc0273 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dragonbox-1.1.3.tar.gz) = 41ac356ebced3312c0f9ea0f07ff372337ab78af69071f63f63dc12bd2b0088d5d89aae3792276599dd0393bfdfd2b979946c43d36042e43105080bcdcbe089d