]> git.pld-linux.org Git - packages/hdf.git/blame - hdf.spec
- updated to 4.2.6
[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
0b9fbb4b 8Version: 4.2.6
c21c7ea7
JB
9Release: 1
10Epoch: 1
2bd7f214 11Group: Libraries
2bd7f214 12License: Nearly BSD, but changed sources must be marked
c21c7ea7 13Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/hdf-%{version}.tar.bz2
0b9fbb4b 14# Source0-md5: eed281ded7f81f6ba1a3b1b1d5109bfe
df4d0e02 15Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
7669e2af 16# Source1-md5: 607df78cacc131b37dfdb443e61e789a
67cd3345
JB
17Patch0: %{name}-shared.patch
18Patch1: %{name}-opt.patch
303bfe43 19Patch2: %{name}-morearchs.patch
0b9fbb4b 20Patch3: %{name}-link.patch
2bd7f214 21URL: http://hdf.ncsa.uiuc.edu/
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
f31ffbfc 33BuildRequires: zlib-devel >= 1.1.3
2bd7f214
JB
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37HDF is a multi-object file format that facilitates the transfer of
38various types of scientific data between machines and operating
39systems. Machines currently supported include the Cray, HP, Vax, Sun,
40IBM RS/6000, Silicon Graphics, Macintosh, and IBM PC computers. HDF
41allows self-definitions of data content and easy extensibility for
42future enhancements or compatibility with other standard formats. HDF
43includes Fortran and C calling interfaces,and utilities to prepare raw
44image of data files or for use with other NCSA software. The HDF
45library contains interfaces for storing and retrieving compressed or
46uncompressed 8-bit and 24-bit raster images with palettes,
47n-Dimensional scientific datasets and binary tables. An interface is
48also included that allows arbitray grouping of other HDF objects.
49
353356c7
JR
50%description -l pl.UTF-8
51HDF jest wieloobiektowym formatem plików ułatwiającym przenoszenie
52różnych danych naukowych pomiędzy różnymi komputerami i systemami
53operacyjnymi. Aktualnie obsługiwane są m.in. Cray, HP, Vax, Sun, IBM
2bd7f214 54RS/6000, Silicon Graphics, Macintosh i IBM PC. HDF zawiera interfejsy
353356c7 55do Fortranu i C oraz narzędzia do przygotowywania plików z danymi.
2bd7f214 56Biblioteka pozwala na przechowywanie i odczytywanie skompresowanych
353356c7
JR
57lub nie 8-bitowych i 24-bitowych obrazków z paletą, wielowymiarowych
58zestawów danych itp.
2bd7f214
JB
59
60%package devel
61Summary: HDF library development package
c6b5e741 62Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HDF
2bd7f214 63Group: Development/Libraries
c21c7ea7 64Requires: %{name} = %{epoch}:%{version}-%{release}
dd25fd3d
JB
65Requires: libjpeg-devel >= 6b
66%{?with_szip:Requires: szip-devel >= 2.0}
67Requires: zlib-devel >= 1.1.3
2bd7f214
JB
68
69%description devel
70Header files for HDF library.
71
353356c7
JR
72%description devel -l pl.UTF-8
73Pliki nagłówkowe biblioteki HDF.
2bd7f214
JB
74
75%package static
76Summary: HDF static library
c6b5e741 77Summary(pl.UTF-8): Statyczna biblioteka HDF
2bd7f214 78Group: Development/Libraries
c21c7ea7 79Requires: %{name}-devel = %{epoch}:%{version}-%{release}
2bd7f214
JB
80
81%description static
82Static version of HDF library.
83
353356c7 84%description static -l pl.UTF-8
2bd7f214
JB
85Statyczna wersja biblioteki HDF.
86
87%package progs
88Summary: HDF utilities
c6b5e741 89Summary(pl.UTF-8): Narzędzia do plików HDF
2bd7f214 90Group: Applications/File
c21c7ea7 91Requires: %{name} = %{epoch}:%{version}-%{release}
2bd7f214
JB
92
93%description progs
94Utilities to convert from/to HDF format.
95
353356c7
JR
96%description progs -l pl.UTF-8
97Narzę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
0b9fbb4b 107sed -i '/^if HDF_BUILD_XDR/,/^endif/d;/^if HDF_BUILD_SHARED/,/^endif/d' 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
0b9fbb4b 121%{__make}
f31ffbfc 122
2bd7f214
JB
123%install
124rm -rf $RPM_BUILD_ROOT
c21c7ea7 125install -d $RPM_BUILD_ROOT{%{_mandir}/man{3,7},%{_includedir}/hdf}
2bd7f214
JB
126
127%{__make} install \
67cd3345 128 DESTDIR=$RPM_BUILD_ROOT
2bd7f214
JB
129
130mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf
131
132install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3
133mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7
134
67cd3345 135# resolve conflict with netcdf
2bd7f214
JB
136for i in ncdump ncgen ; do
137 mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/hdf$i
67cd3345 138 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/hdf$i.1
2bd7f214
JB
139done
140
df4d0e02 141bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
0b9fbb4b
JB
142%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.hdf-man-pages
143%{__rm} $RPM_BUILD_ROOT%{_mandir}/diff.*
df4d0e02 144
2bd7f214
JB
145%clean
146rm -rf $RPM_BUILD_ROOT
147
148%post -p /sbin/ldconfig
149%postun -p /sbin/ldconfig
150
151%files
152%defattr(644,root,root,755)
c21c7ea7 153%doc COPYING README.txt release_notes/{HISTORY,RELEASE,bugs_fixed,misc_docs}.txt
410dd01d
JB
154%attr(755,root,root) %{_libdir}/libdf.so.*.*.*
155%attr(755,root,root) %ghost %{_libdir}/libdf.so.0
156%attr(755,root,root) %{_libdir}/libmfhdf.so.*.*.*
157%attr(755,root,root) %ghost %{_libdir}/libmfhdf.so.0
c21c7ea7 158%{_libdir}/libhdf4.settings
2bd7f214
JB
159
160%files devel
161%defattr(644,root,root,755)
67cd3345
JB
162%attr(755,root,root) %{_libdir}/libdf.so
163%attr(755,root,root) %{_libdir}/libmfhdf.so
164%{_libdir}/libdf.la
165%{_libdir}/libmfhdf.la
2bd7f214 166%{_includedir}/hdf
410dd01d
JB
167%{_mandir}/man3/gr_chunk.3*
168%{_mandir}/man7/hdf.7*
2bd7f214
JB
169
170%files static
171%defattr(644,root,root,755)
67cd3345
JB
172%{_libdir}/libdf.a
173%{_libdir}/libmfhdf.a
2bd7f214
JB
174
175%files progs
176%defattr(644,root,root,755)
0b9fbb4b
JB
177%attr(755,root,root) %{_bindir}/gif2hdf
178%attr(755,root,root) %{_bindir}/h4cc
179%attr(755,root,root) %{_bindir}/h4fc
180%attr(755,root,root) %{_bindir}/h4redeploy
181%attr(755,root,root) %{_bindir}/hdf24to8
182%attr(755,root,root) %{_bindir}/hdf2gif
183%attr(755,root,root) %{_bindir}/hdf2jpeg
184%attr(755,root,root) %{_bindir}/hdf8to24
185%attr(755,root,root) %{_bindir}/hdfcomp
186%attr(755,root,root) %{_bindir}/hdfed
187%attr(755,root,root) %{_bindir}/hdfimport
188%attr(755,root,root) %{_bindir}/hdfls
189%attr(755,root,root) %{_bindir}/hdfncdump
190%attr(755,root,root) %{_bindir}/hdfncgen
191%attr(755,root,root) %{_bindir}/hdfpack
192%attr(755,root,root) %{_bindir}/hdftopal
193%attr(755,root,root) %{_bindir}/hdftor8
194%attr(755,root,root) %{_bindir}/hdfunpac
195%attr(755,root,root) %{_bindir}/hdiff
196%attr(755,root,root) %{_bindir}/hdp
197%attr(755,root,root) %{_bindir}/hrepack
198%attr(755,root,root) %{_bindir}/jpeg2hdf
199%attr(755,root,root) %{_bindir}/paltohdf
200%attr(755,root,root) %{_bindir}/r8tohdf
201%attr(755,root,root) %{_bindir}/ristosds
202%attr(755,root,root) %{_bindir}/vmake
203%attr(755,root,root) %{_bindir}/vshow
204%{_mandir}/man1/fp2hdf.1*
205%{_mandir}/man1/gif2hdf.1*
206%{_mandir}/man1/hdf24to8.1*
207%{_mandir}/man1/hdf2gif.1*
208%{_mandir}/man1/hdf2jpeg.1*
209%{_mandir}/man1/hdf8to24.1*
210%{_mandir}/man1/hdfcomp.1*
211%{_mandir}/man1/hdfed.1*
212%{_mandir}/man1/hdfls.1*
213%{_mandir}/man1/hdfncdump.1*
214%{_mandir}/man1/hdfncgen.1*
215%{_mandir}/man1/hdfpack.1*
216%{_mandir}/man1/hdftopal.1*
217%{_mandir}/man1/hdftor8.1*
218%{_mandir}/man1/hdp.1*
219%{_mandir}/man1/jpeg2hdf.1*
220%{_mandir}/man1/paltohdf.1*
221%{_mandir}/man1/r8tohdf.1*
222%{_mandir}/man1/ristosds.1*
223%{_mandir}/man1/vmake.1*
224%{_mandir}/man1/vshow.1*
This page took 0.074184 seconds and 4 git commands to generate.