]>
Commit | Line | Data |
---|---|---|
7f8f3259 JB |
1 | Summary: Fast arbitrary precision correctly-rounded decimal floating point arithmetic |
2 | Summary(pl.UTF-8): Szybka arytmetyka zmiennoprzecinkowa dowolnej precyzji z właściwym zaokrąglaniem | |
3 | Name: mpdecimal | |
bede0ed9 AM |
4 | Version: 2.5.0 |
5 | Release: 1 | |
7f8f3259 JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | #Source0Download: http://www.bytereef.org/mpdecimal/download.html | |
85951234 | 9 | Source0: http://www.bytereef.org/software/mpdecimal/releases/%{name}-%{version}.tar.gz |
bede0ed9 AM |
10 | # Source0-md5: 3cacb882f59f795f4ed6822d80bd2f7d |
11 | Patch0: build.patch | |
7f8f3259 | 12 | URL: http://www.bytereef.org/mpdecimal/ |
35ce437a JB |
13 | BuildRequires: libstdc++-devel |
14 | BuildRequires: rpmbuild(macros) >= 1.745 | |
7f8f3259 JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | libmpdec is a fast C/C++ library for correctly-rounded arbitrary | |
19 | precision decimal floating point arithmetic. It is a complete | |
20 | implementation of Mike Cowlishaw/IBM's General Decimal Arithmetic | |
21 | Specification. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | libmpdec to szybka biblioteka C/C++ do arytmetyki zmiennoprzecinkowej | |
25 | dowolnej precyzji z poprawnym zaokrąglaniem. Jest to pełna | |
26 | implementacja specyfikacji Mike'a Cowlishawa/IBM General Decimal | |
27 | Arithmetic. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libmpdec library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmpdec | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for libmpdec library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libmpdec. | |
40 | ||
41 | %package static | |
42 | Summary: Static libmpdec library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka libmpdec | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libmpdec library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka libmpdec. | |
52 | ||
35ce437a JB |
53 | %package c++ |
54 | Summary: C++ interface to mpdec library | |
55 | Summary(pl.UTF-8): Intefejs C++ do biblioteki C++ | |
56 | Group: Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description c++ | |
60 | C++ interface to mpcdec fast arbitrary precision correctly-rounded | |
61 | decimal floating point arithmetic library. | |
62 | ||
63 | %description c++ -l pl.UTF-8 | |
64 | Interfejs C++ do biblioteki mpcdec - szybkiej arytmetyki | |
65 | zmiennoprzecinkowej dowolnej precyzji z właściwym zaokrąglaniem. | |
66 | ||
67 | %package c++-devel | |
68 | Summary: Header file for libmpdec++ library | |
69 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libmpdec++ | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-c++ = %{version}-%{release} | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | Requires: libstdc++-devel | |
74 | ||
75 | %description c++-devel | |
76 | Header file for libmpdec++ library. | |
77 | ||
78 | %description c++-devel -l pl.UTF-8 | |
79 | Plik nagłówkowy biblioteki libmpdec++. | |
80 | ||
81 | %package c++-static | |
82 | Summary: Static libmpdec++ library | |
83 | Summary(pl.UTF-8): Statyczna biblioteka libmpdec++ | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-c++-devel = %{version}-%{release} | |
86 | ||
87 | %description c++-static | |
88 | Static libmpdec++ library. | |
89 | ||
90 | %description c++-static -l pl.UTF-8 | |
91 | Statyczna biblioteka libmpdec++. | |
92 | ||
7f8f3259 JB |
93 | %package apidocs |
94 | Summary: libmpdec API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmpdec | |
96 | Group: Documentation | |
35ce437a | 97 | %{?noarchpackage} |
7f8f3259 JB |
98 | |
99 | %description apidocs | |
100 | API documentation for libmpdec library. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API biblioteki libmpdec. | |
104 | ||
105 | %prep | |
106 | %setup -q | |
bede0ed9 | 107 | %patch0 -p1 |
7f8f3259 JB |
108 | |
109 | %build | |
110 | %configure | |
111 | ||
112 | %{__make} | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
35ce437a | 116 | |
7f8f3259 JB |
117 | %{__make} install \ |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | # packaged as %doc | |
121 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mpdecimal | |
122 | ||
35ce437a | 123 | #ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libmpdec.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libmpdec.so |
7f8f3259 JB |
124 | |
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
35ce437a JB |
131 | %post c++ -p /sbin/ldconfig |
132 | %postun c++ -p /sbin/ldconfig | |
133 | ||
7f8f3259 JB |
134 | %files |
135 | %defattr(644,root,root,755) | |
136 | %doc CHANGELOG.txt LICENSE.txt README.txt | |
eacca105 JB |
137 | %attr(755,root,root) %{_libdir}/libmpdec.so.*.*.* |
138 | %attr(755,root,root) %ghost %{_libdir}/libmpdec.so.2 | |
7f8f3259 JB |
139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
142 | %attr(755,root,root) %{_libdir}/libmpdec.so | |
143 | %{_includedir}/mpdecimal.h | |
144 | ||
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/libmpdec.a | |
35ce437a JB |
148 | |
149 | %files c++ | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libmpdec++.so.*.*.* | |
152 | %attr(755,root,root) %ghost %{_libdir}/libmpdec++.so.2 | |
153 | ||
154 | %files c++-devel | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/libmpdec++.so | |
157 | %{_includedir}/decimal.hh | |
158 | ||
159 | %files c++-static | |
160 | %defattr(644,root,root,755) | |
bede0ed9 | 161 | %{_libdir}/libmpdec++.a |
7f8f3259 JB |
162 | |
163 | %files apidocs | |
164 | %defattr(644,root,root,755) | |
eacca105 | 165 | %doc doc/* |