]>
Commit | Line | Data |
---|---|---|
a6527f0c ER |
1 | # |
2 | # TODO | |
3 | # - versioning in shared lib | |
4 | ||
5 | # Conditional build: | |
6 | %bcond_without static_libs # don't build static libraries | |
7 | ||
002c3a9e ER |
8 | Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles |
9 | Name: double-conversion | |
10 | Version: 1.1.1 | |
11 | Release: 1 | |
12 | License: BSD | |
13 | Group: Libraries | |
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 | |
17 | Source1: SConstruct | |
18 | BuildRequires: libstdc++-devel | |
19 | BuildRequires: scons | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
95c391f9 ER |
23 | This project (double-conversion) provides binary-decimal and |
24 | decimal-binary routines for IEEE doubles. | |
25 | ||
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. | |
002c3a9e ER |
29 | |
30 | %package devel | |
31 | Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
95c391f9 ER |
36 | Contains header files for developing applications that use the %{name} |
37 | library. | |
38 | ||
39 | There is extensive documentation in src/double-conversion.h. Other | |
40 | examples can be found in test/cctest/test-conversions.cc. | |
002c3a9e | 41 | |
af4206ea ER |
42 | %package static |
43 | Summary: Static %{name} library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka %{name} | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static %{name} library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka %{name}. | |
53 | ||
002c3a9e ER |
54 | %prep |
55 | %setup -q -n %{name} | |
3a886c7c | 56 | cp -p %{SOURCE1} SConstruct |
002c3a9e ER |
57 | |
58 | %build | |
3a886c7c | 59 | %scons \ |
3a886c7c ER |
60 | CXX="%{__cxx}" |
61 | CXXFLAGS="%{__cxx}" | |
002c3a9e ER |
62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}} | |
a6527f0c ER |
66 | %scons install \ |
67 | DESTDIR=$RPM_BUILD_ROOT \ | |
002c3a9e | 68 | |
a54fc8c4 | 69 | cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
002c3a9e ER |
70 | |
71 | %clean | |
72 | %{__rm} -rf $RPM_BUILD_ROOT | |
73 | ||
a6527f0c ER |
74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
76 | ||
002c3a9e ER |
77 | %files |
78 | %defattr(644,root,root,755) | |
79 | %doc LICENSE README AUTHORS | |
a6527f0c | 80 | %{_libdir}/libdouble_conversion.so |
002c3a9e ER |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
a6527f0c ER |
84 | %{_includedir}/%{name} |
85 | ||
86 | %if %{with static_libs} | |
87 | %files static | |
88 | %defattr(644,root,root,755) | |
002c3a9e ER |
89 | %{_libdir}/libdouble_conversion.a |
90 | %{_libdir}/libdouble_conversion_pic.a | |
a6527f0c | 91 | %endif |