]>
Commit | Line | Data |
---|---|---|
dd25fd3d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without szip # build without SZIP support | |
4 | # | |
2bd7f214 | 5 | Summary: Hierarchical Data Format library |
c6b5e741 | 6 | Summary(pl.UTF-8): Biblioteka HDF (Hierarchical Data Format) |
2bd7f214 | 7 | Name: hdf |
9e7bc03b | 8 | Version: 4.2.10 |
c21c7ea7 JB |
9 | Release: 1 |
10 | Epoch: 1 | |
2bd7f214 | 11 | Group: Libraries |
2bd7f214 | 12 | License: Nearly BSD, but changed sources must be marked |
c21c7ea7 | 13 | Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/hdf-%{version}.tar.bz2 |
9e7bc03b | 14 | # Source0-md5: bf26b3caaf3c0090965c8995578375bd |
df4d0e02 | 15 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 |
7669e2af | 16 | # Source1-md5: 607df78cacc131b37dfdb443e61e789a |
67cd3345 | 17 | Patch0: %{name}-shared.patch |
4a389f8e JB |
18 | Patch1: %{name}-morearchs.patch |
19 | Patch2: %{name}-link.patch | |
07e7307a | 20 | Patch3: %{name}-format.patch |
2bd7f214 | 21 | URL: http://hdf.ncsa.uiuc.edu/ |
67cd3345 JB |
22 | BuildRequires: autoconf >= 2.50 |
23 | BuildRequires: automake | |
2bd7f214 | 24 | BuildRequires: bison |
f31ffbfc | 25 | BuildRequires: flex |
0ddd1195 | 26 | BuildRequires: gcc-fortran |
bf0ace9e | 27 | BuildRequires: groff |
f31ffbfc | 28 | BuildRequires: libjpeg-devel >= 6b |
9ef82488 | 29 | BuildRequires: libtool >= 2:1.4d-3 |
4a146687 | 30 | BuildRequires: netcdf-devel |
dd25fd3d | 31 | %{?with_szip:BuildRequires: szip-devel >= 2.0} |
06f934b7 | 32 | BuildRequires: which |
53352b35 | 33 | BuildRequires: zlib-devel >= 1.1.4 |
2bd7f214 JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
07e7307a JB |
36 | # because of mfhdf/hdfimport/hdfimport.c false positives (const strings as format arguments) |
37 | %define filterout_c -Werror=format-security | |
38 | ||
2bd7f214 JB |
39 | %description |
40 | HDF is a multi-object file format that facilitates the transfer of | |
41 | various types of scientific data between machines and operating | |
42 | systems. Machines currently supported include the Cray, HP, Vax, Sun, | |
43 | IBM RS/6000, Silicon Graphics, Macintosh, and IBM PC computers. HDF | |
44 | allows self-definitions of data content and easy extensibility for | |
45 | future enhancements or compatibility with other standard formats. HDF | |
46 | includes Fortran and C calling interfaces,and utilities to prepare raw | |
47 | image of data files or for use with other NCSA software. The HDF | |
48 | library contains interfaces for storing and retrieving compressed or | |
49 | uncompressed 8-bit and 24-bit raster images with palettes, | |
50 | n-Dimensional scientific datasets and binary tables. An interface is | |
51 | also included that allows arbitray grouping of other HDF objects. | |
52 | ||
353356c7 JR |
53 | %description -l pl.UTF-8 |
54 | HDF jest wieloobiektowym formatem plików ułatwiającym przenoszenie | |
55 | różnych danych naukowych pomiędzy różnymi komputerami i systemami | |
56 | operacyjnymi. Aktualnie obsługiwane są m.in. Cray, HP, Vax, Sun, IBM | |
2bd7f214 | 57 | RS/6000, Silicon Graphics, Macintosh i IBM PC. HDF zawiera interfejsy |
353356c7 | 58 | do Fortranu i C oraz narzędzia do przygotowywania plików z danymi. |
2bd7f214 | 59 | Biblioteka pozwala na przechowywanie i odczytywanie skompresowanych |
353356c7 JR |
60 | lub nie 8-bitowych i 24-bitowych obrazków z paletą, wielowymiarowych |
61 | zestawów danych itp. | |
2bd7f214 JB |
62 | |
63 | %package devel | |
64 | Summary: HDF library development package | |
c6b5e741 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HDF |
2bd7f214 | 66 | Group: Development/Libraries |
c21c7ea7 | 67 | Requires: %{name} = %{epoch}:%{version}-%{release} |
dd25fd3d JB |
68 | Requires: libjpeg-devel >= 6b |
69 | %{?with_szip:Requires: szip-devel >= 2.0} | |
53352b35 | 70 | Requires: zlib-devel >= 1.1.4 |
2bd7f214 JB |
71 | |
72 | %description devel | |
73 | Header files for HDF library. | |
74 | ||
353356c7 JR |
75 | %description devel -l pl.UTF-8 |
76 | Pliki nagłówkowe biblioteki HDF. | |
2bd7f214 JB |
77 | |
78 | %package static | |
79 | Summary: HDF static library | |
c6b5e741 | 80 | Summary(pl.UTF-8): Statyczna biblioteka HDF |
2bd7f214 | 81 | Group: Development/Libraries |
c21c7ea7 | 82 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
2bd7f214 JB |
83 | |
84 | %description static | |
85 | Static version of HDF library. | |
86 | ||
353356c7 | 87 | %description static -l pl.UTF-8 |
2bd7f214 JB |
88 | Statyczna wersja biblioteki HDF. |
89 | ||
90 | %package progs | |
91 | Summary: HDF utilities | |
c6b5e741 | 92 | Summary(pl.UTF-8): Narzędzia do plików HDF |
2bd7f214 | 93 | Group: Applications/File |
c21c7ea7 | 94 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2bd7f214 JB |
95 | |
96 | %description progs | |
97 | Utilities to convert from/to HDF format. | |
98 | ||
353356c7 JR |
99 | %description progs -l pl.UTF-8 |
100 | Narzędzia do konwersji z i do formatu HDF. | |
2bd7f214 | 101 | |
9e7bc03b JB |
102 | %package examples |
103 | Summary: HDF example programs (source code) | |
104 | Summary(pl.UTF-8): Przykładowe programy dla biblioteki HDF (w postaci źródłowej) | |
105 | Group: Documentation | |
106 | ||
107 | %description examples | |
108 | HDF example programs (source code). | |
109 | ||
110 | %description examples -l pl.UTF-8 | |
111 | Przykładowe programy dla biblioteki HDF (w postaci źródłowej). | |
112 | ||
2bd7f214 | 113 | %prep |
c21c7ea7 | 114 | %setup -q |
2bd7f214 JB |
115 | %patch0 -p1 |
116 | %patch1 -p1 | |
303bfe43 | 117 | %patch2 -p1 |
07e7307a | 118 | %patch3 -p1 |
67e3cb4f JB |
119 | |
120 | # evil -R | |
0b9fbb4b | 121 | sed -i '/^if HDF_BUILD_XDR/,/^endif/d;/^if HDF_BUILD_SHARED/,/^endif/d' config/commence.am |
67cd3345 | 122 | |
2bd7f214 | 123 | %build |
67cd3345 JB |
124 | %{__libtoolize} |
125 | %{__aclocal} | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
0ddd1195 | 129 | # need to pass F77 to override F77=g77 in config/linux-gnu |
dd25fd3d | 130 | %configure \ |
0ddd1195 | 131 | F77="%{_target_cpu}-pld-linux-gfortran" \ |
67e3cb4f | 132 | --enable-shared \ |
dd25fd3d | 133 | %{?with_szip:--with-szlib} |
67cd3345 | 134 | |
0b9fbb4b | 135 | %{__make} |
f31ffbfc | 136 | |
2bd7f214 JB |
137 | %install |
138 | rm -rf $RPM_BUILD_ROOT | |
c21c7ea7 | 139 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{3,7},%{_includedir}/hdf} |
2bd7f214 JB |
140 | |
141 | %{__make} install \ | |
9e7bc03b JB |
142 | DESTDIR=$RPM_BUILD_ROOT \ |
143 | EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ | |
144 | EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c \ | |
2bd7f214 JB |
145 | |
146 | mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf | |
147 | ||
148 | install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
149 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7 | |
150 | ||
67cd3345 | 151 | # resolve conflict with netcdf |
2bd7f214 JB |
152 | for i in ncdump ncgen ; do |
153 | mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/hdf$i | |
67cd3345 | 154 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/hdf$i.1 |
2bd7f214 JB |
155 | done |
156 | ||
df4d0e02 | 157 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
0b9fbb4b JB |
158 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.hdf-man-pages |
159 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/diff.* | |
df4d0e02 | 160 | |
2bd7f214 JB |
161 | %clean |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %post -p /sbin/ldconfig | |
165 | %postun -p /sbin/ldconfig | |
166 | ||
167 | %files | |
168 | %defattr(644,root,root,755) | |
c21c7ea7 | 169 | %doc COPYING README.txt release_notes/{HISTORY,RELEASE,bugs_fixed,misc_docs}.txt |
410dd01d JB |
170 | %attr(755,root,root) %{_libdir}/libdf.so.*.*.* |
171 | %attr(755,root,root) %ghost %{_libdir}/libdf.so.0 | |
172 | %attr(755,root,root) %{_libdir}/libmfhdf.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libmfhdf.so.0 | |
c21c7ea7 | 174 | %{_libdir}/libhdf4.settings |
2bd7f214 JB |
175 | |
176 | %files devel | |
177 | %defattr(644,root,root,755) | |
67cd3345 JB |
178 | %attr(755,root,root) %{_libdir}/libdf.so |
179 | %attr(755,root,root) %{_libdir}/libmfhdf.so | |
180 | %{_libdir}/libdf.la | |
181 | %{_libdir}/libmfhdf.la | |
2bd7f214 | 182 | %{_includedir}/hdf |
410dd01d JB |
183 | %{_mandir}/man3/gr_chunk.3* |
184 | %{_mandir}/man7/hdf.7* | |
2bd7f214 JB |
185 | |
186 | %files static | |
187 | %defattr(644,root,root,755) | |
67cd3345 JB |
188 | %{_libdir}/libdf.a |
189 | %{_libdir}/libmfhdf.a | |
2bd7f214 JB |
190 | |
191 | %files progs | |
192 | %defattr(644,root,root,755) | |
0b9fbb4b JB |
193 | %attr(755,root,root) %{_bindir}/gif2hdf |
194 | %attr(755,root,root) %{_bindir}/h4cc | |
195 | %attr(755,root,root) %{_bindir}/h4fc | |
196 | %attr(755,root,root) %{_bindir}/h4redeploy | |
197 | %attr(755,root,root) %{_bindir}/hdf24to8 | |
198 | %attr(755,root,root) %{_bindir}/hdf2gif | |
199 | %attr(755,root,root) %{_bindir}/hdf2jpeg | |
200 | %attr(755,root,root) %{_bindir}/hdf8to24 | |
201 | %attr(755,root,root) %{_bindir}/hdfcomp | |
202 | %attr(755,root,root) %{_bindir}/hdfed | |
203 | %attr(755,root,root) %{_bindir}/hdfimport | |
204 | %attr(755,root,root) %{_bindir}/hdfls | |
205 | %attr(755,root,root) %{_bindir}/hdfncdump | |
206 | %attr(755,root,root) %{_bindir}/hdfncgen | |
207 | %attr(755,root,root) %{_bindir}/hdfpack | |
208 | %attr(755,root,root) %{_bindir}/hdftopal | |
209 | %attr(755,root,root) %{_bindir}/hdftor8 | |
210 | %attr(755,root,root) %{_bindir}/hdfunpac | |
211 | %attr(755,root,root) %{_bindir}/hdiff | |
212 | %attr(755,root,root) %{_bindir}/hdp | |
213 | %attr(755,root,root) %{_bindir}/hrepack | |
214 | %attr(755,root,root) %{_bindir}/jpeg2hdf | |
215 | %attr(755,root,root) %{_bindir}/paltohdf | |
216 | %attr(755,root,root) %{_bindir}/r8tohdf | |
217 | %attr(755,root,root) %{_bindir}/ristosds | |
218 | %attr(755,root,root) %{_bindir}/vmake | |
219 | %attr(755,root,root) %{_bindir}/vshow | |
220 | %{_mandir}/man1/fp2hdf.1* | |
221 | %{_mandir}/man1/gif2hdf.1* | |
222 | %{_mandir}/man1/hdf24to8.1* | |
223 | %{_mandir}/man1/hdf2gif.1* | |
224 | %{_mandir}/man1/hdf2jpeg.1* | |
225 | %{_mandir}/man1/hdf8to24.1* | |
226 | %{_mandir}/man1/hdfcomp.1* | |
227 | %{_mandir}/man1/hdfed.1* | |
228 | %{_mandir}/man1/hdfls.1* | |
229 | %{_mandir}/man1/hdfncdump.1* | |
230 | %{_mandir}/man1/hdfncgen.1* | |
231 | %{_mandir}/man1/hdfpack.1* | |
232 | %{_mandir}/man1/hdftopal.1* | |
233 | %{_mandir}/man1/hdftor8.1* | |
234 | %{_mandir}/man1/hdp.1* | |
235 | %{_mandir}/man1/jpeg2hdf.1* | |
236 | %{_mandir}/man1/paltohdf.1* | |
237 | %{_mandir}/man1/r8tohdf.1* | |
238 | %{_mandir}/man1/ristosds.1* | |
239 | %{_mandir}/man1/vmake.1* | |
240 | %{_mandir}/man1/vshow.1* | |
9e7bc03b JB |
241 | |
242 | %files examples | |
243 | %defattr(644,root,root,755) | |
244 | %dir %{_examplesdir}/%{name}-%{version} | |
245 | %{_examplesdir}/%{name}-%{version}/README | |
246 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/run-all-ex.sh | |
247 | %dir %{_examplesdir}/%{name}-%{version}/c | |
248 | %{_examplesdir}/%{name}-%{version}/c/*.c | |
249 | %{_examplesdir}/%{name}-%{version}/c/*.f | |
250 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/c/run-c-ex.sh | |
251 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/c/run-fortran-ex.sh |