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