3 %bcond_without static_libs # static library
4 %bcond_without tests # build without tests
6 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
7 Summary(pl.UTF-8): Biblioteka dostarczająca przejścia binarno-dziesiętne i dziesiętno-binarne dla typów double IEEE
8 Name: double-conversion
13 #Source0Download: https://github.com/google/double-conversion/releases
14 Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: b344abb64084a4a1d98a43e67752989b
16 URL: https://github.com/google/double-conversion
17 BuildRequires: cmake >= 3.0
18 BuildRequires: libstdc++-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This project (double-conversion) provides binary-decimal and
23 decimal-binary routines for IEEE doubles.
25 The library consists of efficient conversion routines that have been
26 extracted from the V8 JavaScript engine. The code has been refactored
27 and improved so that it can be used more easily in other projects.
29 %description -l pl.UTF-8
30 Projekt double-conversion dostarcza funkcje przejścia
31 binarno-dziesiętne i dziesiętno-binarne dla typów double IEEE.
33 Biblioteka składa się z wydajnych funkcji konwersji, wyciągniętych z
34 silnika JavaScriptu V8. Kod został zrefaktorowany i ulepszony, dzięki
35 czemu może być łatwiej używany w innych projektach.
38 Summary: Header files for double-conversion library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki double-conversion
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libstdc++-devel
45 Contains header files for developing applications that use the
46 double-conversion library.
48 There is extensive documentation in double-conversion.h.
50 %description devel -l pl.UTF_8
51 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
52 wykorzystujących bibliotekę double-conversion.
54 W pliku double-conversion.h zawarta jest obszerna dokumentacja.
57 Summary: Static double-conversion library
58 Summary(pl.UTF-8): Statyczna biblioteka double-conversion
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static double-conversion library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka double-conversion.
72 %if %{with static_libs}
73 install -d build-static
76 -DBUILD_SHARED_LIBS=OFF
85 %{?with_tests:-DBUILD_TESTING=ON}
92 rm -rf $RPM_BUILD_ROOT
94 %if %{with static_libs}
95 %{__make} -C build-static install \
96 DESTDIR=$RPM_BUILD_ROOT
99 %{__make} -C build install \
100 DESTDIR=$RPM_BUILD_ROOT
103 %{__rm} -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS Changelog LICENSE README.md
111 %attr(755,root,root) %{_libdir}/libdouble-conversion.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libdouble-conversion.so.3
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libdouble-conversion.so
117 %{_includedir}/double-conversion
118 %{_libdir}/cmake/double-conversion
120 %if %{with static_libs}
122 %defattr(644,root,root,755)
123 %{_libdir}/libdouble-conversion.a