diff --git a/dragonbox-1.1.3.tar.gz b/dragonbox-1.1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..83ffe8d197918d2106dd3ddd86a24b11ba4ed65d Binary files /dev/null and b/dragonbox-1.1.3.tar.gz differ diff --git a/dragonbox.spec b/dragonbox.spec new file mode 100644 index 0000000000000000000000000000000000000000..3da486e188f64076f7db5440d4b8056f8021255c --- /dev/null +++ b/dragonbox.spec @@ -0,0 +1,56 @@ +# Header-only package +%global debug_package %{nil} + +Name: dragonbox +Version: 1.1.3 +Release: 1 +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 + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +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 -DXXXX=OFF +%make_build + +%check +# No tests provided + + +%install +%make_install + +%files devel +%license LICENSE-Apache2-LLVM LICENSE-Boost +%doc README.md +%{_includedir}/%{name}-%{version}/ +%{_libdir}/cmake/%{name}-%{version}/ +%{_libdir}/libdragonbox_to_chars.a + +%changelog +* Mon Apr 8 2024 wyxaihjr - 1.1.3-1 +- init packages