]>
Commit | Line | Data |
---|---|---|
359e9514 AF |
1 | # TODO: |
2 | # - build with MPICH | |
359e9514 | 3 | # - check missing file |
04bf435a JB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without szip # build without SZIP support | |
7 | # | |
e88a844a | 8 | Summary: Hierarchical Data Format 5 library |
7aae9a53 | 9 | Summary(pl.UTF-8): Biblioteka HDF5 (Hierarchical Data Format 5) |
e88a844a | 10 | Name: hdf5 |
6808d687 | 11 | Version: 1.8.7 |
69b25e9d | 12 | Release: 2 |
e88a844a | 13 | License: Nearly BSD, but changed sources must be marked |
50a8b653 | 14 | Group: Libraries |
a4ec5b5e | 15 | Source0: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}.tar.gz |
6808d687 | 16 | # Source0-md5: 37711d4bcb72997e93d495f97c76c33a |
e88a844a | 17 | Patch0: %{name}-config.patch |
e481fc02 | 18 | Patch1: %{name}-sig.patch |
6cbfde32 | 19 | Patch2: %{name}-link.patch |
cf821271 | 20 | URL: http://www.hdfgroup.org/HDF5/ |
6cbfde32 | 21 | BuildRequires: autoconf >= 2.53 |
8136d99f | 22 | BuildRequires: automake >= 1:1.11 |
69b25e9d | 23 | BuildRequires: gcc-fortran >= 5:4.0 |
51d062bb | 24 | BuildRequires: libjpeg-devel >= 6b |
25 | BuildRequires: libstdc++-devel | |
8136d99f | 26 | BuildRequires: libtool >= 2:2.2 |
04bf435a | 27 | %{?with_szip:BuildRequires: szip-devel >= 2.0} |
51d062bb | 28 | BuildRequires: zlib-devel >= 1.1.3 |
04bf435a | 29 | Obsoletes: hdf5_hl |
e88a844a JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | HDF5 is a completely new Hierarchical Data Format product consisting | |
34 | of a data format specification and a supporting library | |
35 | implementation. HDF5 is designed to address some of the limitations of | |
36 | the older HDF product and to address current and anticipated | |
37 | requirements of modern systems and applications. | |
38 | ||
3b572e7a JR |
39 | %description -l pl.UTF-8 |
40 | HDF5 jest całkowicie nowym produktem Hierarchiczego Formatu Danych, | |
41 | składającym się ze specyfikacji formatu danych oraz obsługującej go | |
42 | biblioteki. HDF5 został zaprojektowany aby pozbyć się ograniczeń | |
43 | poprzedniego HDF oraz żeby zaspokoić bieżące i przyszłe potrzeby | |
44 | współczesnych systemów i aplikacji. | |
e88a844a JB |
45 | |
46 | %package devel | |
47 | Summary: HDF5 library development package | |
7aae9a53 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HDF5 |
e88a844a | 49 | Group: Development/Libraries |
f6784fc9 | 50 | Requires: %{name} = %{version}-%{release} |
04bf435a | 51 | %{?with_szip:Requires: szip-devel >= 2.0} |
98765fbd | 52 | Requires: zlib-devel |
04bf435a JB |
53 | Obsoletes: hdf5_hl-devel |
54 | Obsoletes: hdf5_hl-tutor | |
e88a844a JB |
55 | |
56 | %description devel | |
47291a99 | 57 | Header files for HDF5 library and HDF5 documentation. |
e88a844a | 58 | |
3b572e7a JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe biblioteki HDF5 oraz dokumentacja HDF5. | |
e88a844a JB |
61 | |
62 | %package static | |
63 | Summary: HDF5 static library | |
7aae9a53 | 64 | Summary(pl.UTF-8): Statyczna biblioteka HDF5 |
e88a844a | 65 | Group: Development/Libraries |
f6784fc9 | 66 | Requires: %{name}-devel = %{version}-%{release} |
04bf435a | 67 | Obsoletes: hdf5_hl-static |
e88a844a JB |
68 | |
69 | %description static | |
70 | Static version of HDF5 library. | |
71 | ||
3b572e7a | 72 | %description static -l pl.UTF-8 |
e88a844a JB |
73 | Statyczna wersja biblioteki HDF5. |
74 | ||
f489d293 JB |
75 | %package c++ |
76 | Summary: C++ APIs for HDF5 | |
77 | Summary(pl.UTF-8): API C++ bibliotek HDF5 | |
78 | Group: Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description c++ | |
82 | C++ APIs for HDF5 (both base hdf5 and hdf5_hl). | |
83 | ||
84 | %description c++ -l pl.UTF-8 | |
85 | API C++ dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i hdf5_hl). | |
86 | ||
87 | %package c++-devel | |
88 | Summary: Header files for HDF5 C++ APIs | |
89 | Summary(pl.UTF-8): Pliki nagłówkowe API C++ bibliotek HDF5 | |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-c++ = %{version}-%{release} | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: libstdc++-devel | |
94 | ||
95 | %description c++-devel | |
96 | Header files for HDF5 C++ APIs (both base hdf5 and hdf5_hl). | |
97 | ||
98 | %description c++-devel -l pl.UTF-8 | |
99 | Pliki nagłówkowe API C++ bibliotek HDF5 (zarówno podstawowej hdf5, jak | |
100 | i hdf5_hl). | |
101 | ||
102 | %package c++-static | |
103 | Summary: C++ APIs for HDF5 - static libraries | |
104 | Summary(pl.UTF-8): API C++ bibliotek HDF5 - biblioteki statyczne | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-c++-devel = %{version}-%{release} | |
107 | ||
108 | %description c++-static | |
109 | C++ APIs for HDF5 (both base hdf5 and hdf5_hl) - static libraries. | |
110 | ||
111 | %description c++-static -l pl.UTF-8 | |
112 | API C++ dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i hdf5_hl) - | |
113 | biblioteki statyczne. | |
114 | ||
53110aaa KK |
115 | %package fortran |
116 | Summary: Fortran APIs for HDF5 | |
117 | Summary(pl.UTF-8): API Fortran bibliotek HDF5 | |
118 | Group: Libraries | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | ||
121 | %description fortran | |
122 | Fortran APIs for HDF5 (both base hdf5 and hdf5_hl). | |
123 | ||
124 | %description fortran -l pl.UTF-8 | |
125 | API Fortran dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i | |
126 | hdf5_hl). | |
127 | ||
128 | %package fortran-devel | |
129 | Summary: Header files for HDF5 Fortran APIs | |
130 | Summary(pl.UTF-8): Pliki nagłówkowe API Fortran bibliotek HDF5 | |
131 | Group: Development/Libraries | |
132 | Requires: %{name}-devel = %{version}-%{release} | |
133 | Requires: %{name}-fortran = %{version}-%{release} | |
69b25e9d | 134 | Requires: gcc-fortran >= 5:4.0 |
53110aaa KK |
135 | |
136 | %description fortran-devel | |
137 | Module and header files for HDF5 Fortran APIs (both base hdf5 and | |
138 | hdf5_hl). | |
139 | ||
140 | %description fortran-devel -l pl.UTF-8 | |
141 | Moduły i pliki nagłówkowe API C++ bibliotek HDF5 (zarówno podstawowej | |
142 | hdf5, jak i hdf5_hl). | |
143 | ||
53110aaa KK |
144 | %package fortran-static |
145 | Summary: Fortran APIs for HDF5 - static libraries | |
146 | Summary(pl.UTF-8): API Fortran bibliotek HDF5 - biblioteki statyczne | |
147 | Group: Development/Libraries | |
148 | Requires: %{name}-fortran-devel = %{version}-%{release} | |
149 | ||
150 | %description fortran-static | |
151 | Fortran APIs for HDF5 (both base hdf5 and hdf5_hl) - static libraries. | |
152 | ||
153 | %description fortran-static -l pl.UTF-8 | |
154 | API Fortran dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i | |
155 | hdf5_hl) - biblioteki statyczne. | |
156 | ||
e88a844a JB |
157 | %package progs |
158 | Summary: HDF5 utilities | |
7aae9a53 | 159 | Summary(pl.UTF-8): Narzędzia do plików HDF5 |
e88a844a | 160 | Group: Applications/File |
f6784fc9 | 161 | Requires: %{name} = %{version}-%{release} |
e88a844a JB |
162 | |
163 | %description progs | |
164 | Utilities to convert from/to HDF5 format. | |
165 | ||
3b572e7a JR |
166 | %description progs -l pl.UTF-8 |
167 | Narzędzia do konwersji z i to formatu HDF5. | |
e88a844a JB |
168 | |
169 | %prep | |
a4ec5b5e | 170 | %setup -q |
47291a99 | 171 | %patch0 -p1 |
e481fc02 | 172 | %patch1 -p1 |
6cbfde32 | 173 | %patch2 -p1 |
e88a844a JB |
174 | |
175 | %build | |
cad84331 | 176 | %{__libtoolize} |
51d062bb | 177 | %{__aclocal} |
9e16a4d5 | 178 | %{__autoconf} |
6cbfde32 JB |
179 | %{__autoheader} |
180 | %{__automake} | |
47291a99 | 181 | %configure \ |
6cbfde32 | 182 | --docdir=%{_docdir} \ |
8136d99f | 183 | --disable-silent-rules \ |
359e9514 | 184 | --enable-cxx \ |
53110aaa | 185 | --enable-fortran \ |
359e9514 | 186 | --enable-linux-lfs \ |
359e9514 AF |
187 | --enable-production \ |
188 | --with-pthread \ | |
04bf435a | 189 | %{?with_szip:--with-szlib} |
e88a844a | 190 | |
6cbfde32 | 191 | # --enable-threadsafe is incompatible with cxx/fortran |
e88a844a JB |
192 | |
193 | %{__make} | |
194 | ||
195 | %install | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | install -d $RPM_BUILD_ROOT%{_includedir} | |
198 | ||
f489d293 JB |
199 | %{__make} install-recursive \ |
200 | DESTDIR=$RPM_BUILD_ROOT | |
e88a844a | 201 | |
f489d293 | 202 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl |
6cbfde32 | 203 | %{__make} -C examples install-examples \ |
f489d293 JB |
204 | EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c \ |
205 | EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
6cbfde32 JB |
206 | %{__make} -C c++/examples install-examples \ |
207 | EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c++ | |
f489d293 JB |
208 | %{__make} -C hl/examples install-examples \ |
209 | EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl/c \ | |
210 | EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl | |
211 | %{__make} -C hl/c++/examples install-examples \ | |
212 | EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl/c++ | |
98765fbd | 213 | |
e88a844a JB |
214 | %clean |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
217 | %post -p /sbin/ldconfig | |
218 | %postun -p /sbin/ldconfig | |
219 | ||
f489d293 JB |
220 | %post c++ -p /sbin/ldconfig |
221 | %postun c++ -p /sbin/ldconfig | |
222 | ||
69b25e9d JB |
223 | %post fortran -p /sbin/ldconfig |
224 | %postun fortran -p /sbin/ldconfig | |
225 | ||
e88a844a JB |
226 | %files |
227 | %defattr(644,root,root,755) | |
6cbfde32 | 228 | %doc COPYING README.txt release_docs/{HISTORY*.txt,RELEASE.txt} |
04bf435a | 229 | %attr(755,root,root) %{_libdir}/libhdf5.so.*.*.* |
6808d687 | 230 | %attr(755,root,root) %ghost %{_libdir}/libhdf5.so.7 |
04bf435a | 231 | %attr(755,root,root) %{_libdir}/libhdf5_hl.so.*.*.* |
6808d687 | 232 | %attr(755,root,root) %ghost %{_libdir}/libhdf5_hl.so.7 |
04bf435a JB |
233 | # used to show configuration at runtime |
234 | %{_libdir}/libhdf5.settings | |
e88a844a JB |
235 | |
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
f489d293 | 238 | %attr(755,root,root) %{_bindir}/h5cc |
04bf435a | 239 | %attr(755,root,root) %{_libdir}/libhdf5.so |
04bf435a JB |
240 | %attr(755,root,root) %{_libdir}/libhdf5_hl.so |
241 | %{_libdir}/libhdf5.la | |
04bf435a | 242 | %{_libdir}/libhdf5_hl.la |
f489d293 JB |
243 | %{_includedir}/H5ACpublic.h |
244 | %{_includedir}/H5Apublic.h | |
245 | %{_includedir}/H5Cpublic.h | |
246 | %{_includedir}/H5DSpublic.h | |
247 | %{_includedir}/H5Dpublic.h | |
248 | %{_includedir}/H5Epubgen.h | |
249 | %{_includedir}/H5Epublic.h | |
250 | %{_includedir}/H5FDcore.h | |
251 | %{_includedir}/H5FDdirect.h | |
252 | %{_includedir}/H5FDfamily.h | |
253 | %{_includedir}/H5FDlog.h | |
254 | %{_includedir}/H5FDmpi.h | |
255 | %{_includedir}/H5FDmpio.h | |
256 | %{_includedir}/H5FDmpiposix.h | |
257 | %{_includedir}/H5FDmulti.h | |
258 | %{_includedir}/H5FDpublic.h | |
259 | %{_includedir}/H5FDsec2.h | |
260 | %{_includedir}/H5FDstdio.h | |
261 | %{_includedir}/H5Fpublic.h | |
262 | %{_includedir}/H5Gpublic.h | |
263 | %{_includedir}/H5IMpublic.h | |
264 | %{_includedir}/H5Include.h | |
265 | %{_includedir}/H5Ipublic.h | |
266 | %{_includedir}/H5LTpublic.h | |
267 | %{_includedir}/H5Lpublic.h | |
268 | %{_includedir}/H5MMpublic.h | |
269 | %{_includedir}/H5Opublic.h | |
270 | %{_includedir}/H5PTpublic.h | |
271 | %{_includedir}/H5Ppublic.h | |
272 | %{_includedir}/H5Rpublic.h | |
273 | %{_includedir}/H5Spublic.h | |
274 | %{_includedir}/H5TBpublic.h | |
275 | %{_includedir}/H5Tpublic.h | |
276 | %{_includedir}/H5Zpublic.h | |
277 | %{_includedir}/H5api_adpt.h | |
278 | %{_includedir}/H5overflow.h | |
279 | %{_includedir}/H5pubconf.h | |
280 | %{_includedir}/H5public.h | |
281 | %{_includedir}/H5version.h | |
6cbfde32 JB |
282 | %{_includedir}/hdf5.h |
283 | %{_includedir}/hdf5_hl.h | |
f489d293 JB |
284 | %dir %{_examplesdir}/%{name}-%{version} |
285 | %{_examplesdir}/%{name}-%{version}/run-all-ex.sh | |
286 | %{_examplesdir}/%{name}-%{version}/c | |
287 | %dir %{_examplesdir}/%{name}-%{version}/hl | |
288 | %{_examplesdir}/%{name}-%{version}/hl/run-hl-ex.sh | |
289 | %{_examplesdir}/%{name}-%{version}/hl/c | |
e88a844a JB |
290 | |
291 | %files static | |
292 | %defattr(644,root,root,755) | |
04bf435a | 293 | %{_libdir}/libhdf5.a |
04bf435a | 294 | %{_libdir}/libhdf5_hl.a |
e88a844a | 295 | |
f489d293 JB |
296 | %files c++ |
297 | %defattr(644,root,root,755) | |
298 | %attr(755,root,root) %{_libdir}/libhdf5_cpp.so.*.*.* | |
6808d687 | 299 | %attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.7 |
f489d293 | 300 | %attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so.*.*.* |
6808d687 | 301 | %attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.7 |
f489d293 JB |
302 | |
303 | %files c++-devel | |
304 | %defattr(644,root,root,755) | |
305 | %attr(755,root,root) %{_bindir}/h5c++ | |
306 | %attr(755,root,root) %{_libdir}/libhdf5_cpp.so | |
307 | %attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so | |
308 | %{_libdir}/libhdf5_cpp.la | |
309 | %{_libdir}/libhdf5_hl_cpp.la | |
310 | %{_includedir}/H5AbstractDs.h | |
311 | %{_includedir}/H5ArrayType.h | |
312 | %{_includedir}/H5AtomType.h | |
313 | %{_includedir}/H5Attribute.h | |
314 | %{_includedir}/H5Classes.h | |
315 | %{_includedir}/H5CommonFG.h | |
316 | %{_includedir}/H5CompType.h | |
317 | %{_includedir}/H5Cpp.h | |
318 | %{_includedir}/H5CppDoc.h | |
319 | %{_includedir}/H5DataSet.h | |
320 | %{_includedir}/H5DataSpace.h | |
321 | %{_includedir}/H5DataType.h | |
322 | %{_includedir}/H5DcreatProp.h | |
323 | %{_includedir}/H5DxferProp.h | |
324 | %{_includedir}/H5EnumType.h | |
325 | %{_includedir}/H5Exception.h | |
326 | %{_includedir}/H5FaccProp.h | |
327 | %{_includedir}/H5FcreatProp.h | |
328 | %{_includedir}/H5File.h | |
329 | %{_includedir}/H5FloatType.h | |
330 | %{_includedir}/H5Group.h | |
331 | %{_includedir}/H5IdComponent.h | |
332 | %{_includedir}/H5IntType.h | |
333 | %{_includedir}/H5Library.h | |
334 | %{_includedir}/H5Object.h | |
335 | %{_includedir}/H5PacketTable.h | |
336 | %{_includedir}/H5PredType.h | |
337 | %{_includedir}/H5PropList.h | |
338 | %{_includedir}/H5StrType.h | |
339 | %{_includedir}/H5VarLenType.h | |
340 | %{_examplesdir}/%{name}-%{version}/c++ | |
341 | %{_examplesdir}/%{name}-%{version}/hl/c++ | |
342 | ||
69b25e9d JB |
343 | %files c++-static |
344 | %defattr(644,root,root,755) | |
345 | %{_libdir}/libhdf5_cpp.a | |
346 | %{_libdir}/libhdf5_hl_cpp.a | |
347 | ||
53110aaa KK |
348 | %files fortran |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/libhdf5_fortran.so.*.*.* | |
351 | %attr(755,root,root) %ghost %{_libdir}/libhdf5_fortran.so.7 | |
352 | %attr(755,root,root) %{_libdir}/libhdf5hl_fortran.so.*.*.* | |
353 | %attr(755,root,root) %ghost %{_libdir}/libhdf5hl_fortran.so.7 | |
354 | ||
355 | %files fortran-devel | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_bindir}/h5fc | |
69b25e9d JB |
358 | %attr(755,root,root) %{_libdir}/libhdf5_fortran.so |
359 | %attr(755,root,root) %{_libdir}/libhdf5hl_fortran.so | |
53110aaa KK |
360 | %{_libdir}/libhdf5_fortran.la |
361 | %{_libdir}/libhdf5hl_fortran.la | |
362 | %{_includedir}/H5f90i.h | |
363 | %{_includedir}/H5f90i_gen.h | |
364 | %{_includedir}/h5_dble_interface.mod | |
365 | %{_includedir}/h5a.mod | |
366 | %{_includedir}/h5d.mod | |
367 | %{_includedir}/h5e.mod | |
368 | %{_includedir}/h5f.mod | |
369 | %{_includedir}/h5fortran_types.mod | |
370 | %{_includedir}/h5g.mod | |
371 | %{_includedir}/h5global.mod | |
372 | %{_includedir}/h5i.mod | |
373 | %{_includedir}/h5im.mod | |
374 | %{_includedir}/h5l.mod | |
375 | %{_includedir}/h5lib.mod | |
376 | %{_includedir}/h5lt.mod | |
377 | %{_includedir}/h5o.mod | |
378 | %{_includedir}/h5p.mod | |
379 | %{_includedir}/h5r.mod | |
380 | %{_includedir}/h5s.mod | |
381 | %{_includedir}/h5t.mod | |
382 | %{_includedir}/h5tb.mod | |
383 | %{_includedir}/h5z.mod | |
384 | %{_includedir}/hdf5.mod | |
385 | ||
69b25e9d JB |
386 | %files fortran-static |
387 | %defattr(644,root,root,755) | |
388 | %{_libdir}/libhdf5_fortran.a | |
389 | %{_libdir}/libhdf5hl_fortran.a | |
53110aaa | 390 | |
e88a844a JB |
391 | %files progs |
392 | %defattr(644,root,root,755) | |
f489d293 JB |
393 | %attr(755,root,root) %{_bindir}/gif2h5 |
394 | %attr(755,root,root) %{_bindir}/h52gif | |
395 | %attr(755,root,root) %{_bindir}/h5copy | |
396 | %attr(755,root,root) %{_bindir}/h5debug | |
397 | %attr(755,root,root) %{_bindir}/h5diff | |
398 | %attr(755,root,root) %{_bindir}/h5dump | |
399 | %attr(755,root,root) %{_bindir}/h5import | |
400 | %attr(755,root,root) %{_bindir}/h5jam | |
401 | %attr(755,root,root) %{_bindir}/h5ls | |
402 | %attr(755,root,root) %{_bindir}/h5mkgrp | |
403 | %attr(755,root,root) %{_bindir}/h5perf_serial | |
404 | %attr(755,root,root) %{_bindir}/h5redeploy | |
405 | %attr(755,root,root) %{_bindir}/h5repack | |
406 | %attr(755,root,root) %{_bindir}/h5repart | |
407 | %attr(755,root,root) %{_bindir}/h5stat | |
408 | %attr(755,root,root) %{_bindir}/h5unjam |