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: 53669dba2d23e308dc512d6330852aa5
16 URL: http://code.google.com/p/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}.
56 cp -p %{SOURCE1} SConstruct
63 # avoid file exists errors, when entering install
64 rm -f libdouble-conversion.so libdouble-conversion.so.0
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
70 DESTDIR=$RPM_BUILD_ROOT \
72 cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
75 %{__rm} -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %defattr(644,root,root,755)
82 %doc LICENSE README AUTHORS Changelog
83 %attr(755,root,root) %{_libdir}/libdouble-conversion.so.*.*.*
84 %ghost %{_libdir}/libdouble-conversion.so.0
87 %defattr(644,root,root,755)
88 %{_libdir}/libdouble-conversion.so
89 %{_includedir}/%{name}
91 %if %{with static_libs}
93 %defattr(644,root,root,755)
94 %{_libdir}/libdouble-conversion.a
95 %{_libdir}/libdouble-conversion_pic.a