]> git.pld-linux.org Git - packages/double-conversion.git/blame - double-conversion.spec
- updated to 3.3.0
[packages/double-conversion.git] / double-conversion.spec
CommitLineData
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 6Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
e18cdfc0 7Summary(pl.UTF-8): Biblioteka dostarczająca przejścia binarno-dziesiętne i dziesiętno-binarne dla typów double IEEE
002c3a9e 8Name: double-conversion
06ff17b7 9Version: 3.3.0
e18cdfc0 10Release: 1
002c3a9e
ER
11License: BSD
12Group: Libraries
e18cdfc0
JB
13#Source0Download: https://github.com/google/double-conversion/releases
14Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz
06ff17b7 15# Source0-md5: b344abb64084a4a1d98a43e67752989b
d7f4d10b 16URL: https://github.com/google/double-conversion
e18cdfc0 17BuildRequires: cmake >= 3.0
002c3a9e 18BuildRequires: libstdc++-devel
002c3a9e
ER
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
95c391f9
ER
22This project (double-conversion) provides binary-decimal and
23decimal-binary routines for IEEE doubles.
24
25The library consists of efficient conversion routines that have been
26extracted from the V8 JavaScript engine. The code has been refactored
27and improved so that it can be used more easily in other projects.
002c3a9e 28
e18cdfc0
JB
29%description -l pl.UTF-8
30Projekt double-conversion dostarcza funkcje przejścia
31binarno-dziesiętne i dziesiętno-binarne dla typów double IEEE.
32
33Biblioteka składa się z wydajnych funkcji konwersji, wyciągniętych z
34silnika JavaScriptu V8. Kod został zrefaktorowany i ulepszony, dzięki
35czemu może być łatwiej używany w innych projektach.
36
002c3a9e 37%package devel
e18cdfc0
JB
38Summary: Header files for double-conversion library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki double-conversion
002c3a9e
ER
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
e18cdfc0 42Requires: libstdc++-devel
002c3a9e
ER
43
44%description devel
e18cdfc0
JB
45Contains header files for developing applications that use the
46double-conversion library.
95c391f9 47
e18cdfc0
JB
48There is extensive documentation in double-conversion.h.
49
50%description devel -l pl.UTF_8
51Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
52wykorzystujących bibliotekę double-conversion.
53
54W pliku double-conversion.h zawarta jest obszerna dokumentacja.
002c3a9e 55
af4206ea 56%package static
e18cdfc0
JB
57Summary: Static double-conversion library
58Summary(pl.UTF-8): Statyczna biblioteka double-conversion
af4206ea
ER
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
e18cdfc0 63Static double-conversion library.
af4206ea
ER
64
65%description static -l pl.UTF-8
e18cdfc0 66Statyczna biblioteka double-conversion.
af4206ea 67
002c3a9e 68%prep
e18cdfc0 69%setup -q
002c3a9e
ER
70
71%build
e18cdfc0
JB
72%if %{with static_libs}
73install -d build-static
74cd build-static
75%cmake .. \
76 -DBUILD_SHARED_LIBS=OFF
002c3a9e 77
e18cdfc0
JB
78%{__make}
79cd ..
80%endif
81
82install -d build
83cd build
84%cmake .. \
85 %{?with_tests:-DBUILD_TESTING=ON}
86
87%{__make}
88
89%{?with_tests:ctest}
d7f4d10b 90
002c3a9e
ER
91%install
92rm -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
This page took 0.05866 seconds and 4 git commands to generate.