]>
Commit | Line | Data |
---|---|---|
a6527f0c | 1 | # |
a6527f0c | 2 | # Conditional build: |
e18cdfc0 | 3 | %bcond_without static_libs # static library |
d7f4d10b | 4 | %bcond_without tests # build without tests |
a6527f0c | 5 | |
002c3a9e | 6 | Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles |
e18cdfc0 | 7 | Summary(pl.UTF-8): Biblioteka dostarczająca przejścia binarno-dziesiętne i dziesiętno-binarne dla typów double IEEE |
002c3a9e | 8 | Name: double-conversion |
06ff17b7 | 9 | Version: 3.3.0 |
e18cdfc0 | 10 | Release: 1 |
002c3a9e ER |
11 | License: BSD |
12 | Group: Libraries | |
e18cdfc0 JB |
13 | #Source0Download: https://github.com/google/double-conversion/releases |
14 | Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz | |
06ff17b7 | 15 | # Source0-md5: b344abb64084a4a1d98a43e67752989b |
d7f4d10b | 16 | URL: https://github.com/google/double-conversion |
e18cdfc0 | 17 | BuildRequires: cmake >= 3.0 |
002c3a9e | 18 | BuildRequires: libstdc++-devel |
002c3a9e ER |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
95c391f9 ER |
22 | This project (double-conversion) provides binary-decimal and |
23 | decimal-binary routines for IEEE doubles. | |
24 | ||
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. | |
002c3a9e | 28 | |
e18cdfc0 JB |
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. | |
32 | ||
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. | |
36 | ||
002c3a9e | 37 | %package devel |
e18cdfc0 JB |
38 | Summary: Header files for double-conversion library |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki double-conversion | |
002c3a9e ER |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
e18cdfc0 | 42 | Requires: libstdc++-devel |
002c3a9e ER |
43 | |
44 | %description devel | |
e18cdfc0 JB |
45 | Contains header files for developing applications that use the |
46 | double-conversion library. | |
95c391f9 | 47 | |
e18cdfc0 JB |
48 | There is extensive documentation in double-conversion.h. |
49 | ||
50 | %description devel -l pl.UTF_8 | |
51 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
52 | wykorzystujących bibliotekę double-conversion. | |
53 | ||
54 | W pliku double-conversion.h zawarta jest obszerna dokumentacja. | |
002c3a9e | 55 | |
af4206ea | 56 | %package static |
e18cdfc0 JB |
57 | Summary: Static double-conversion library |
58 | Summary(pl.UTF-8): Statyczna biblioteka double-conversion | |
af4206ea ER |
59 | Group: Development/Libraries |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
e18cdfc0 | 63 | Static double-conversion library. |
af4206ea ER |
64 | |
65 | %description static -l pl.UTF-8 | |
e18cdfc0 | 66 | Statyczna biblioteka double-conversion. |
af4206ea | 67 | |
002c3a9e | 68 | %prep |
e18cdfc0 | 69 | %setup -q |
002c3a9e ER |
70 | |
71 | %build | |
e18cdfc0 JB |
72 | %if %{with static_libs} |
73 | install -d build-static | |
74 | cd build-static | |
75 | %cmake .. \ | |
76 | -DBUILD_SHARED_LIBS=OFF | |
002c3a9e | 77 | |
e18cdfc0 JB |
78 | %{__make} |
79 | cd .. | |
80 | %endif | |
81 | ||
82 | install -d build | |
83 | cd build | |
84 | %cmake .. \ | |
85 | %{?with_tests:-DBUILD_TESTING=ON} | |
86 | ||
87 | %{__make} | |
88 | ||
89 | %{?with_tests:ctest} | |
d7f4d10b | 90 | |
002c3a9e ER |
91 | %install |
92 | rm -rf $RPM_BUILD_ROOT | |
002c3a9e | 93 | |
e18cdfc0 JB |
94 | %if %{with static_libs} |
95 | %{__make} -C build-static install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | %endif | |
98 | ||
99 | %{__make} -C build install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
002c3a9e ER |
101 | |
102 | %clean | |
103 | %{__rm} -rf $RPM_BUILD_ROOT | |
104 | ||
a6527f0c ER |
105 | %post -p /sbin/ldconfig |
106 | %postun -p /sbin/ldconfig | |
107 | ||
002c3a9e ER |
108 | %files |
109 | %defattr(644,root,root,755) | |
e18cdfc0 | 110 | %doc AUTHORS Changelog LICENSE README.md |
48fe636d | 111 | %attr(755,root,root) %{_libdir}/libdouble-conversion.so.*.*.* |
e18cdfc0 | 112 | %attr(755,root,root) %ghost %{_libdir}/libdouble-conversion.so.3 |
002c3a9e ER |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
e18cdfc0 JB |
116 | %attr(755,root,root) %{_libdir}/libdouble-conversion.so |
117 | %{_includedir}/double-conversion | |
118 | %{_libdir}/cmake/double-conversion | |
a6527f0c ER |
119 | |
120 | %if %{with static_libs} | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
48fe636d | 123 | %{_libdir}/libdouble-conversion.a |
a6527f0c | 124 | %endif |