]>
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 |
c21c7ea7 JB |
8 | Version: 4.2.5 |
9 | Release: 1 | |
10 | Epoch: 1 | |
2bd7f214 | 11 | Group: Libraries |
2bd7f214 | 12 | License: Nearly BSD, but changed sources must be marked |
c21c7ea7 JB |
13 | Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/hdf-%{version}.tar.bz2 |
14 | # Source0-md5: 91bc17ec735b52736507570a530fe8a9 | |
df4d0e02 | 15 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 |
7669e2af | 16 | # Source1-md5: 607df78cacc131b37dfdb443e61e789a |
67cd3345 JB |
17 | Patch0: %{name}-shared.patch |
18 | Patch1: %{name}-opt.patch | |
303bfe43 | 19 | Patch2: %{name}-morearchs.patch |
c21c7ea7 | 20 | Patch3: %{name}-jpeg.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 |
c21c7ea7 | 64 | Requires: %{name} = %{epoch}:%{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 |
c21c7ea7 | 79 | Requires: %{name}-devel = %{epoch}:%{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 |
c21c7ea7 | 91 | Requires: %{name} = %{epoch}:%{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 | |
c21c7ea7 | 100 | %setup -q |
2bd7f214 JB |
101 | %patch0 -p1 |
102 | %patch1 -p1 | |
303bfe43 | 103 | %patch2 -p1 |
c21c7ea7 | 104 | %patch3 -p1 |
67e3cb4f JB |
105 | |
106 | # evil -R | |
107 | :> config/commence.am | |
67cd3345 | 108 | |
2bd7f214 | 109 | %build |
67cd3345 JB |
110 | %{__libtoolize} |
111 | %{__aclocal} | |
112 | %{__autoconf} | |
113 | %{__autoheader} | |
114 | %{__automake} | |
0ddd1195 | 115 | # need to pass F77 to override F77=g77 in config/linux-gnu |
dd25fd3d | 116 | %configure \ |
0ddd1195 | 117 | F77="%{_target_cpu}-pld-linux-gfortran" \ |
67e3cb4f | 118 | --enable-shared \ |
dd25fd3d | 119 | %{?with_szip:--with-szlib} |
67cd3345 | 120 | |
67e3cb4f JB |
121 | %{__make} \ |
122 | libmfhdf_la_LIBADD=$(pwd)/hdf/src/libdf.la | |
f31ffbfc | 123 | |
2bd7f214 JB |
124 | %install |
125 | rm -rf $RPM_BUILD_ROOT | |
c21c7ea7 | 126 | install -d $RPM_BUILD_ROOT{%{_mandir}/man{3,7},%{_includedir}/hdf} |
2bd7f214 JB |
127 | |
128 | %{__make} install \ | |
67cd3345 | 129 | DESTDIR=$RPM_BUILD_ROOT |
2bd7f214 JB |
130 | |
131 | mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf | |
132 | ||
133 | install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
134 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7 | |
135 | ||
67cd3345 | 136 | # resolve conflict with netcdf |
2bd7f214 JB |
137 | for i in ncdump ncgen ; do |
138 | mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/hdf$i | |
67cd3345 | 139 | mv -f $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/hdf$i.1 |
2bd7f214 JB |
140 | done |
141 | ||
df4d0e02 | 142 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
143 | ||
2bd7f214 JB |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
148 | %postun -p /sbin/ldconfig | |
149 | ||
150 | %files | |
151 | %defattr(644,root,root,755) | |
c21c7ea7 | 152 | %doc COPYING README.txt release_notes/{HISTORY,RELEASE,bugs_fixed,misc_docs}.txt |
410dd01d JB |
153 | %attr(755,root,root) %{_libdir}/libdf.so.*.*.* |
154 | %attr(755,root,root) %ghost %{_libdir}/libdf.so.0 | |
155 | %attr(755,root,root) %{_libdir}/libmfhdf.so.*.*.* | |
156 | %attr(755,root,root) %ghost %{_libdir}/libmfhdf.so.0 | |
c21c7ea7 | 157 | %{_libdir}/libhdf4.settings |
2bd7f214 JB |
158 | |
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
67cd3345 JB |
161 | %attr(755,root,root) %{_libdir}/libdf.so |
162 | %attr(755,root,root) %{_libdir}/libmfhdf.so | |
163 | %{_libdir}/libdf.la | |
164 | %{_libdir}/libmfhdf.la | |
2bd7f214 | 165 | %{_includedir}/hdf |
410dd01d JB |
166 | %{_mandir}/man3/gr_chunk.3* |
167 | %{_mandir}/man7/hdf.7* | |
2bd7f214 JB |
168 | |
169 | %files static | |
170 | %defattr(644,root,root,755) | |
67cd3345 JB |
171 | %{_libdir}/libdf.a |
172 | %{_libdir}/libmfhdf.a | |
2bd7f214 JB |
173 | |
174 | %files progs | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_bindir}/* | |
177 | %{_mandir}/man1/* |