3 # - versioning in shared lib
6 %bcond_without static_libs # don't build static libraries
8 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
9 Name: double-conversion
14 Source0: http://double-conversion.googlecode.com/files/%{name}-%{version}.tar.gz
15 # Source0-md5: 29b533ed4311161267bff1a9a97e2953
16 URL: http://code.google.com/p/double-conversion
18 BuildRequires: libstdc++-devel
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.
44 cp -p %{SOURCE1} SConstruct
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
56 DESTDIR=$RPM_BUILD_ROOT \
58 cp -p src/double-conversion.h $RPM_BUILD_ROOT%{_includedir}/%{name}
59 cp -p src/bignum.h $RPM_BUILD_ROOT%{_includedir}/%{name}
60 cp -p src/bignum-dtoa.h $RPM_BUILD_ROOT%{_includedir}/%{name}
61 cp -p src/cached-powers.h $RPM_BUILD_ROOT%{_includedir}/%{name}
62 cp -p src/diy-fp.h $RPM_BUILD_ROOT%{_includedir}/%{name}
63 cp -p src/fast-dtoa.h $RPM_BUILD_ROOT%{_includedir}/%{name}
64 cp -p src/fixed-dtoa.h $RPM_BUILD_ROOT%{_includedir}/%{name}
65 cp -p src/ieee.h $RPM_BUILD_ROOT%{_includedir}/%{name}
66 cp -p src/strtod.h $RPM_BUILD_ROOT%{_includedir}/%{name}
67 cp -p src/utils.h $RPM_BUILD_ROOT%{_includedir}/%{name}
70 %{__rm} -rf $RPM_BUILD_ROOT
72 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 %defattr(644,root,root,755)
77 %doc LICENSE README AUTHORS
78 %{_libdir}/libdouble_conversion.so
81 %defattr(644,root,root,755)
82 %{_includedir}/%{name}
84 %if %{with static_libs}
86 %defattr(644,root,root,755)
87 %{_libdir}/libdouble_conversion.a
88 %{_libdir}/libdouble_conversion_pic.a