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: bf019021765fa346f85e46c6abf7c945
16 URL: https://github.com/floitsch/double-conversion
17 BuildRequires: libstdc++-devel
18 BuildRequires: scons >= 2.3.0
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.
30 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 Contains header files for developing applications that use the %{name}
38 There is extensive documentation in src/double-conversion.h. Other
39 examples can be found in test/cctest/test-conversions.cc.
42 Summary: Static %{name} library
43 Summary(pl.UTF-8): Statyczna biblioteka %{name}
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static %{name} library.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka %{name}.
61 # avoid file exists errors, when entering install
62 rm -f libdouble-conversion.so libdouble-conversion.so.0
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
68 DESTDIR=$RPM_BUILD_ROOT \
70 cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
73 %{__rm} -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %doc LICENSE README AUTHORS Changelog
81 %attr(755,root,root) %{_libdir}/libdouble-conversion.so.*.*.*
82 %ghost %{_libdir}/libdouble-conversion.so.0
85 %defattr(644,root,root,755)
86 %{_libdir}/libdouble-conversion.so
87 %{_includedir}/%{name}
89 %if %{with static_libs}
91 %defattr(644,root,root,755)
92 %{_libdir}/libdouble-conversion.a
93 %{_libdir}/libdouble-conversion_pic.a