]>
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 |
dd25fd3d | 8 | Version: 4.2r1 |
9dbac5e0 | 9 | Release: 5 |
2bd7f214 | 10 | Group: Libraries |
2bd7f214 | 11 | License: Nearly BSD, but changed sources must be marked |
83c29c77 | 12 | Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF%{version}.tar.gz |
dd25fd3d | 13 | # Source0-md5: 9082c6fa913b9188452fa6c5217e1573 |
df4d0e02 | 14 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 |
7669e2af | 15 | # Source1-md5: 607df78cacc131b37dfdb443e61e789a |
67cd3345 JB |
16 | Patch0: %{name}-shared.patch |
17 | Patch1: %{name}-opt.patch | |
303bfe43 | 18 | Patch2: %{name}-morearchs.patch |
dd25fd3d | 19 | Patch3: %{name}-nosz.patch |
1fae5499 | 20 | Patch4: %{name}-link.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 |
f31ffbfc | 33 | BuildRequires: zlib-devel >= 1.1.3 |
2bd7f214 JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | HDF is a multi-object file format that facilitates the transfer of | |
38 | various types of scientific data between machines and operating | |
39 | systems. Machines currently supported include the Cray, HP, Vax, Sun, | |
40 | IBM RS/6000, Silicon Graphics, Macintosh, and IBM PC computers. HDF | |
41 | allows self-definitions of data content and easy extensibility for | |
42 | future enhancements or compatibility with other standard formats. HDF | |
43 | includes Fortran and C calling interfaces,and utilities to prepare raw | |
44 | image of data files or for use with other NCSA software. The HDF | |
45 | library contains interfaces for storing and retrieving compressed or | |
46 | uncompressed 8-bit and 24-bit raster images with palettes, | |
47 | n-Dimensional scientific datasets and binary tables. An interface is | |
48 | also included that allows arbitray grouping of other HDF objects. | |
49 | ||
353356c7 JR |
50 | %description -l pl.UTF-8 |
51 | HDF jest wieloobiektowym formatem plików ułatwiającym przenoszenie | |
52 | różnych danych naukowych pomiędzy różnymi komputerami i systemami | |
53 | operacyjnymi. Aktualnie obsługiwane są m.in. Cray, HP, Vax, Sun, IBM | |
2bd7f214 | 54 | RS/6000, Silicon Graphics, Macintosh i IBM PC. HDF zawiera interfejsy |
353356c7 | 55 | do Fortranu i C oraz narzędzia do przygotowywania plików z danymi. |
2bd7f214 | 56 | Biblioteka pozwala na przechowywanie i odczytywanie skompresowanych |
353356c7 JR |
57 | lub nie 8-bitowych i 24-bitowych obrazków z paletą, wielowymiarowych |
58 | zestawów danych itp. | |
2bd7f214 JB |
59 | |
60 | %package devel | |
61 | Summary: HDF library development package | |
c6b5e741 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HDF |
2bd7f214 | 63 | Group: Development/Libraries |
67cd3345 | 64 | Requires: %{name} = %{version}-%{release} |
dd25fd3d JB |
65 | Requires: libjpeg-devel >= 6b |
66 | %{?with_szip:Requires: szip-devel >= 2.0} | |
67 | Requires: zlib-devel >= 1.1.3 | |
2bd7f214 JB |
68 | |
69 | %description devel | |
70 | Header files for HDF library. | |
71 | ||
353356c7 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe biblioteki HDF. | |
2bd7f214 JB |
74 | |
75 | %package static | |
76 | Summary: HDF static library | |
c6b5e741 | 77 | Summary(pl.UTF-8): Statyczna biblioteka HDF |
2bd7f214 | 78 | Group: Development/Libraries |
67cd3345 | 79 | Requires: %{name}-devel = %{version}-%{release} |
2bd7f214 JB |
80 | |
81 | %description static | |
82 | Static version of HDF library. | |
83 | ||
353356c7 | 84 | %description static -l pl.UTF-8 |
2bd7f214 JB |
85 | Statyczna wersja biblioteki HDF. |
86 | ||
87 | %package progs | |
88 | Summary: HDF utilities | |
c6b5e741 | 89 | Summary(pl.UTF-8): Narzędzia do plików HDF |
2bd7f214 | 90 | Group: Applications/File |
67cd3345 | 91 | Requires: %{name} = %{version}-%{release} |
2bd7f214 JB |
92 | |
93 | %description progs | |
94 | Utilities to convert from/to HDF format. | |
95 | ||
353356c7 JR |
96 | %description progs -l pl.UTF-8 |
97 | Narzędzia do konwersji z i do formatu HDF. | |
2bd7f214 JB |
98 | |
99 | %prep | |
100 | %setup -q -n HDF%{version} | |
101 | %patch0 -p1 | |
102 | %patch1 -p1 | |
303bfe43 | 103 | %patch2 -p1 |
9dbac5e0 | 104 | %patch3 -p1 |
1fae5499 | 105 | %patch4 -p1 |
67cd3345 | 106 | |
2bd7f214 | 107 | %build |
67cd3345 JB |
108 | cp -f /usr/share/automake/config.* hdf/fmpool |
109 | %{__libtoolize} | |
110 | %{__aclocal} | |
111 | %{__autoconf} | |
112 | %{__autoheader} | |
113 | %{__automake} | |
0ddd1195 | 114 | # need to pass F77 to override F77=g77 in config/linux-gnu |
dd25fd3d | 115 | %configure \ |
0ddd1195 | 116 | F77="%{_target_cpu}-pld-linux-gfortran" \ |
dd25fd3d | 117 | %{?with_szip:--with-szlib} |
67cd3345 JB |
118 | |
119 | %{__make} | |
f31ffbfc | 120 | |
2bd7f214 JB |
121 | %install |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{3,7},%{_includedir}/hdf} | |
124 | ||
125 | %{__make} install \ | |
67cd3345 | 126 | DESTDIR=$RPM_BUILD_ROOT |
2bd7f214 JB |
127 | |
128 | mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf | |
129 | ||
130 | install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
131 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7 | |
132 | ||
67cd3345 | 133 | # resolve conflict with netcdf |
2bd7f214 JB |
134 | for i in ncdump ncgen ; do |
135 | mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/hdf$i | |
67cd3345 | 136 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/hdf$i.1 |
2bd7f214 JB |
137 | done |
138 | ||
df4d0e02 | 139 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
140 | ||
2bd7f214 JB |
141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post -p /sbin/ldconfig | |
145 | %postun -p /sbin/ldconfig | |
146 | ||
147 | %files | |
148 | %defattr(644,root,root,755) | |
67cd3345 JB |
149 | %doc COPYING README release_notes/* |
150 | %attr(755,root,root) %{_libdir}/libdf.so.*.* | |
151 | %attr(755,root,root) %{_libdir}/libmfhdf.so.*.* | |
2bd7f214 JB |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
67cd3345 JB |
155 | %attr(755,root,root) %{_libdir}/libdf.so |
156 | %attr(755,root,root) %{_libdir}/libmfhdf.so | |
157 | %{_libdir}/libdf.la | |
158 | %{_libdir}/libmfhdf.la | |
2bd7f214 JB |
159 | %{_includedir}/hdf |
160 | %{_mandir}/man[37]/* | |
161 | ||
162 | %files static | |
163 | %defattr(644,root,root,755) | |
67cd3345 JB |
164 | %{_libdir}/libdf.a |
165 | %{_libdir}/libmfhdf.a | |
2bd7f214 JB |
166 | |
167 | %files progs | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_bindir}/* | |
170 | %{_mandir}/man1/* |