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