]> git.pld-linux.org Git - packages/hdf5.git/blob - hdf5.spec
- -static subpackages for c++ and fortran
[packages/hdf5.git] / hdf5.spec
1 # TODO:
2 # - build with MPICH
3 # - check missing file
4 #
5 # Conditional build:
6 %bcond_without  szip    # build without SZIP support
7 #
8 Summary:        Hierarchical Data Format 5 library
9 Summary(pl.UTF-8):      Biblioteka HDF5 (Hierarchical Data Format 5)
10 Name:           hdf5
11 Version:        1.8.7
12 Release:        2
13 License:        Nearly BSD, but changed sources must be marked
14 Group:          Libraries
15 Source0:        ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}.tar.gz
16 # Source0-md5:  37711d4bcb72997e93d495f97c76c33a
17 Patch0:         %{name}-config.patch
18 Patch1:         %{name}-sig.patch
19 Patch2:         %{name}-link.patch
20 URL:            http://www.hdfgroup.org/HDF5/
21 BuildRequires:  autoconf >= 2.53
22 BuildRequires:  automake >= 1:1.11
23 BuildRequires:  gcc-fortran >= 5:4.0
24 BuildRequires:  libjpeg-devel >= 6b
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libtool >= 2:2.2
27 %{?with_szip:BuildRequires:     szip-devel >= 2.0}
28 BuildRequires:  zlib-devel >= 1.1.3
29 Obsoletes:      hdf5_hl
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
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.
45
46 %package devel
47 Summary:        HDF5 library development package
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki HDF5
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 %{?with_szip:Requires:  szip-devel >= 2.0}
52 Requires:       zlib-devel
53 Obsoletes:      hdf5_hl-devel
54 Obsoletes:      hdf5_hl-tutor
55
56 %description devel
57 Header files for HDF5 library and HDF5 documentation.
58
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki HDF5 oraz dokumentacja HDF5.
61
62 %package static
63 Summary:        HDF5 static library
64 Summary(pl.UTF-8):      Statyczna biblioteka HDF5
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67 Obsoletes:      hdf5_hl-static
68
69 %description static
70 Static version of HDF5 library.
71
72 %description static -l pl.UTF-8
73 Statyczna wersja biblioteki HDF5.
74
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
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}
134 Requires:       gcc-fortran >= 5:4.0
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
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
157 %package progs
158 Summary:        HDF5 utilities
159 Summary(pl.UTF-8):      Narzędzia do plików HDF5
160 Group:          Applications/File
161 Requires:       %{name} = %{version}-%{release}
162
163 %description progs
164 Utilities to convert from/to HDF5 format.
165
166 %description progs -l pl.UTF-8
167 Narzędzia do konwersji z i to formatu HDF5.
168
169 %prep
170 %setup -q
171 %patch0 -p1
172 %patch1 -p1
173 %patch2 -p1
174
175 %build
176 %{__libtoolize}
177 %{__aclocal}
178 %{__autoconf}
179 %{__autoheader}
180 %{__automake}
181 %configure \
182         --docdir=%{_docdir} \
183         --disable-silent-rules \
184         --enable-cxx \
185         --enable-fortran \
186         --enable-linux-lfs \
187         --enable-production \
188         --with-pthread \
189         %{?with_szip:--with-szlib}
190
191 #       --enable-threadsafe is incompatible with cxx/fortran
192
193 %{__make}
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT%{_includedir}
198
199 %{__make} install-recursive \
200         DESTDIR=$RPM_BUILD_ROOT
201
202 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl
203 %{__make} -C examples install-examples \
204         EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c \
205         EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
206 %{__make} -C c++/examples install-examples \
207         EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c++
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++
213
214 %clean
215 rm -rf $RPM_BUILD_ROOT
216
217 %post   -p /sbin/ldconfig
218 %postun -p /sbin/ldconfig
219
220 %post   c++ -p /sbin/ldconfig
221 %postun c++ -p /sbin/ldconfig
222
223 %post   fortran -p /sbin/ldconfig
224 %postun fortran -p /sbin/ldconfig
225
226 %files
227 %defattr(644,root,root,755)
228 %doc COPYING README.txt release_docs/{HISTORY*.txt,RELEASE.txt}
229 %attr(755,root,root) %{_libdir}/libhdf5.so.*.*.*
230 %attr(755,root,root) %ghost %{_libdir}/libhdf5.so.7
231 %attr(755,root,root) %{_libdir}/libhdf5_hl.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/libhdf5_hl.so.7
233 # used to show configuration at runtime
234 %{_libdir}/libhdf5.settings
235
236 %files devel
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_bindir}/h5cc
239 %attr(755,root,root) %{_libdir}/libhdf5.so
240 %attr(755,root,root) %{_libdir}/libhdf5_hl.so
241 %{_libdir}/libhdf5.la
242 %{_libdir}/libhdf5_hl.la
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
282 %{_includedir}/hdf5.h
283 %{_includedir}/hdf5_hl.h
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
290
291 %files static
292 %defattr(644,root,root,755)
293 %{_libdir}/libhdf5.a
294 %{_libdir}/libhdf5_hl.a
295
296 %files c++
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libhdf5_cpp.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.7
300 %attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so.*.*.*
301 %attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.7
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
343 %files c++-static
344 %defattr(644,root,root,755)
345 %{_libdir}/libhdf5_cpp.a
346 %{_libdir}/libhdf5_hl_cpp.a
347
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
358 %attr(755,root,root) %{_libdir}/libhdf5_fortran.so
359 %attr(755,root,root) %{_libdir}/libhdf5hl_fortran.so
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
386 %files fortran-static
387 %defattr(644,root,root,755)
388 %{_libdir}/libhdf5_fortran.a
389 %{_libdir}/libhdf5hl_fortran.a
390
391 %files progs
392 %defattr(644,root,root,755)
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
This page took 0.060377 seconds and 4 git commands to generate.