From 9147b693e459b0adf1f08b45c8c330d62794606b Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 8 Mar 2023 21:35:44 +0100 Subject: [PATCH] - new --- dragonbox.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 dragonbox.spec diff --git a/dragonbox.spec b/dragonbox.spec new file mode 100644 index 0000000..9ee9e98 --- /dev/null +++ b/dragonbox.spec @@ -0,0 +1,77 @@ +Summary: Dragonbox float-to-string conversion algorithm implementation +Summary(pl.UTF-8): Implementacja algorytmu Dragonbox do zamiany liczb zmiennoprzecinkowych na łańcuchy znaków +Name: dragonbox +Version: 1.1.3 +Release: 1 +License: Apache v2.0 with LLVM Exceptions or Boost v1.0 +Group: Development/Libraries +#Source0Download: https://github.com/jk-jeon/dragonbox/releases +Source0: https://github.com/jk-jeon/dragonbox/archive/%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 889dc00db9612c6949a4ccf8115e0e6a +URL: https://github.com/jk-jeon/dragonbox +BuildRequires: cmake >= 3.14 +BuildRequires: rpmbuild(macros) >= 1.605 +BuildRequires: libstdc++-devel >= 6:7 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This library is a reference implementation of Dragonbox in C++. + +Dragonbox is a float-to-string conversion algorithm based on a +beautiful algorithm Schubfach +, +developed by Raffaello Giulietti in 2017-2018. + +%description -l pl.UTF-8 +Ta biblioteka to referencyjna implementacja algorytmu Dragonbox w C++. + +Dragonbox to algorytm konwersji liczb zmiennoprzecinkowych na łańcuchy +znaków oparty na pięknym algorytmie Schubfach +, +stworzonym przez Raffaello Giulietti w 2017-2018. + +%package devel +Summary: Dragonbox float-to-string conversion algorithm implementation +Summary(pl.UTF-8): Implementacja algorytmu Dragonbox do zamiany liczb zmiennoprzecinkowych na łańcuchy znaków +Group: Development/Libraries +Requires: libstdc++-devel >= 6:7 + +%description devel +This library is a reference implementation of Dragonbox in C++. + +Dragonbox is a float-to-string conversion algorithm based on a +beautiful algorithm Schubfach +, +developed by Raffaello Giulietti in 2017-2018. + +%description devel -l pl.UTF-8 +Ta biblioteka to referencyjna implementacja algorytmu Dragonbox w C++. + +Dragonbox to algorytm konwersji liczb zmiennoprzecinkowych na łańcuchy +znaków oparty na pięknym algorytmie Schubfach +, +stworzonym przez Raffaello Giulietti w 2017-2018. + +%prep +%setup -q + +%build +%cmake -B build + +%{__make} -C build + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files devel +%defattr(644,root,root,755) +%doc LICENSE-Apache2-LLVM LICENSE-Boost README.md +%{_libdir}/libdragonbox_to_chars.a +%{_includedir}/dragonbox-%{version} +%{_libdir}/cmake/dragonbox-%{version} -- 2.44.0