]>
Commit | Line | Data |
---|---|---|
9147b693 JB |
1 | Summary: Dragonbox float-to-string conversion algorithm implementation |
2 | Summary(pl.UTF-8): Implementacja algorytmu Dragonbox do zamiany liczb zmiennoprzecinkowych na łańcuchy znaków | |
3 | Name: dragonbox | |
4 | Version: 1.1.3 | |
5 | Release: 1 | |
6 | License: Apache v2.0 with LLVM Exceptions or Boost v1.0 | |
7 | Group: Development/Libraries | |
8 | #Source0Download: https://github.com/jk-jeon/dragonbox/releases | |
9 | Source0: https://github.com/jk-jeon/dragonbox/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 889dc00db9612c6949a4ccf8115e0e6a | |
11 | URL: https://github.com/jk-jeon/dragonbox | |
12 | BuildRequires: cmake >= 3.14 | |
13 | BuildRequires: rpmbuild(macros) >= 1.605 | |
14 | BuildRequires: libstdc++-devel >= 6:7 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
d25c14f6 JB |
17 | # only static library, debuginfo not supported |
18 | %define _enable_debug_packages 0 | |
19 | ||
9147b693 JB |
20 | %description |
21 | This library is a reference implementation of Dragonbox in C++. | |
22 | ||
23 | Dragonbox is a float-to-string conversion algorithm based on a | |
24 | beautiful algorithm Schubfach | |
25 | <https://drive.google.com/open?id=1luHhyQF9zKlM8yJ1nebU0OgVYhfC6CBN>, | |
26 | developed by Raffaello Giulietti in 2017-2018. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Ta biblioteka to referencyjna implementacja algorytmu Dragonbox w C++. | |
30 | ||
31 | Dragonbox to algorytm konwersji liczb zmiennoprzecinkowych na łańcuchy | |
32 | znaków oparty na pięknym algorytmie Schubfach | |
33 | <https://drive.google.com/open?id=1luHhyQF9zKlM8yJ1nebU0OgVYhfC6CBN>, | |
34 | stworzonym przez Raffaello Giulietti w 2017-2018. | |
35 | ||
36 | %package devel | |
37 | Summary: Dragonbox float-to-string conversion algorithm implementation | |
38 | Summary(pl.UTF-8): Implementacja algorytmu Dragonbox do zamiany liczb zmiennoprzecinkowych na łańcuchy znaków | |
39 | Group: Development/Libraries | |
40 | Requires: libstdc++-devel >= 6:7 | |
41 | ||
42 | %description devel | |
43 | This library is a reference implementation of Dragonbox in C++. | |
44 | ||
45 | Dragonbox is a float-to-string conversion algorithm based on a | |
46 | beautiful algorithm Schubfach | |
47 | <https://drive.google.com/open?id=1luHhyQF9zKlM8yJ1nebU0OgVYhfC6CBN>, | |
48 | developed by Raffaello Giulietti in 2017-2018. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Ta biblioteka to referencyjna implementacja algorytmu Dragonbox w C++. | |
52 | ||
53 | Dragonbox to algorytm konwersji liczb zmiennoprzecinkowych na łańcuchy | |
54 | znaków oparty na pięknym algorytmie Schubfach | |
55 | <https://drive.google.com/open?id=1luHhyQF9zKlM8yJ1nebU0OgVYhfC6CBN>, | |
56 | stworzonym przez Raffaello Giulietti w 2017-2018. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | %cmake -B build | |
63 | ||
64 | %{__make} -C build | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} -C build install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %doc LICENSE-Apache2-LLVM LICENSE-Boost README.md | |
78 | %{_libdir}/libdragonbox_to_chars.a | |
79 | %{_includedir}/dragonbox-%{version} | |
80 | %{_libdir}/cmake/dragonbox-%{version} |