]> git.pld-linux.org Git - packages/hdf.git/blame - hdf.spec
- updated for 4.2r3
[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
dd25fd3d 8Version: 4.2r1
9dbac5e0 9Release: 5
2bd7f214 10Group: Libraries
2bd7f214 11License: Nearly BSD, but changed sources must be marked
83c29c77 12Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF%{version}.tar.gz
dd25fd3d 13# Source0-md5: 9082c6fa913b9188452fa6c5217e1573
df4d0e02 14Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
7669e2af 15# Source1-md5: 607df78cacc131b37dfdb443e61e789a
67cd3345
JB
16Patch0: %{name}-shared.patch
17Patch1: %{name}-opt.patch
303bfe43 18Patch2: %{name}-morearchs.patch
dd25fd3d 19Patch3: %{name}-nosz.patch
1fae5499 20Patch4: %{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
67cd3345 64Requires: %{name} = %{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
67cd3345 79Requires: %{name}-devel = %{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
67cd3345 91Requires: %{name} = %{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
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
108cp -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
122rm -rf $RPM_BUILD_ROOT
123install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{3,7},%{_includedir}/hdf}
124
125%{__make} install \
67cd3345 126 DESTDIR=$RPM_BUILD_ROOT
2bd7f214
JB
127
128mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf
129
130install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3
131mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7
132
67cd3345 133# resolve conflict with netcdf
2bd7f214
JB
134for 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
137done
138
df4d0e02 139bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
140
2bd7f214
JB
141%clean
142rm -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/*
This page took 0.1001 seconds and 4 git commands to generate.