3 # - versioning in shared lib
6 %bcond_without static_libs # don't build static libraries
7 %bcond_without tests # build without tests
9 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
10 Name: double-conversion
15 Source0: http://double-conversion.googlecode.com/files/%{name}-%{version}.tar.gz
16 # Source0-md5: bf019021765fa346f85e46c6abf7c945
17 URL: https://github.com/google/double-conversion
18 BuildRequires: libstdc++-devel
19 BuildRequires: scons >= 2.3.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This project (double-conversion) provides binary-decimal and
24 decimal-binary routines for IEEE doubles.
26 The library consists of efficient conversion routines that have been
27 extracted from the V8 JavaScript engine. The code has been refactored
28 and improved so that it can be used more easily in other projects.
31 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Contains header files for developing applications that use the %{name}
39 There is extensive documentation in src/double-conversion.h. Other
40 examples can be found in test/cctest/test-conversions.cc.
43 Summary: Static %{name} library
44 Summary(pl.UTF-8): Statyczna biblioteka %{name}
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static %{name} library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka %{name}.
62 %{?with_tests:%{__make} test}
64 # avoid file exists errors, when entering install
65 rm -f libdouble-conversion.so libdouble-conversion.so.0
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
71 DESTDIR=$RPM_BUILD_ROOT \
73 cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
76 %{__rm} -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc LICENSE README AUTHORS Changelog
84 %attr(755,root,root) %{_libdir}/libdouble-conversion.so.*.*.*
85 %ghost %{_libdir}/libdouble-conversion.so.0
88 %defattr(644,root,root,755)
89 %{_libdir}/libdouble-conversion.so
90 %{_includedir}/%{name}
92 %if %{with static_libs}
94 %defattr(644,root,root,755)
95 %{_libdir}/libdouble-conversion.a
96 %{_libdir}/libdouble-conversion_pic.a