]> git.pld-linux.org Git - packages/hdf.git/blob - hdf.spec
- updated Source0 URL
[packages/hdf.git] / hdf.spec
1 Summary:        Hierarchical Data Format library
2 Summary(pl):    Biblioteka HDF (Hierarchical Data Format)
3 Name:           hdf
4 Version:        4.2r0
5 Release:        1
6 Group:          Libraries
7 License:        Nearly BSD, but changed sources must be marked
8 Source0:        ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz
9 # Source0-md5:  3cede01c62864f5a902ef8e06a525aae
10 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
11 # Source1-md5:  607df78cacc131b37dfdb443e61e789a
12 Patch0:         %{name}-shared.patch
13 Patch1:         %{name}-opt.patch
14 URL:            http://hdf.ncsa.uiuc.edu/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gcc-g77
20 BuildRequires:  groff
21 BuildRequires:  libjpeg-devel >= 6b
22 BuildRequires:  libtool >= 2:1.4d-3
23 BuildRequires:  which
24 BuildRequires:  zlib-devel >= 1.1.3
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 HDF is a multi-object file format that facilitates the transfer of
29 various types of scientific data between machines and operating
30 systems. Machines currently supported include the Cray, HP, Vax, Sun,
31 IBM RS/6000, Silicon Graphics, Macintosh, and IBM PC computers. HDF
32 allows self-definitions of data content and easy extensibility for
33 future enhancements or compatibility with other standard formats. HDF
34 includes Fortran and C calling interfaces,and utilities to prepare raw
35 image of data files or for use with other NCSA software. The HDF
36 library contains interfaces for storing and retrieving compressed or
37 uncompressed 8-bit and 24-bit raster images with palettes,
38 n-Dimensional scientific datasets and binary tables. An interface is
39 also included that allows arbitray grouping of other HDF objects.
40
41 %description -l pl
42 HDF jest wieloobiektowym formatem plików u³atwiaj±cym przenoszenie
43 ró¿nych danych naukowych pomiêdzy ró¿nymi komputerami i systemami
44 operacyjnymi. Aktualnie obs³ugiwane s± m.in. Cray, HP, Vax, Sun, IBM
45 RS/6000, Silicon Graphics, Macintosh i IBM PC. HDF zawiera interfejsy
46 do Fortranu i C oraz narzêdzia do przygotowywania plików z danymi.
47 Biblioteka pozwala na przechowywanie i odczytywanie skompresowanych
48 lub nie 8-bitowych i 24-bitowych obrazków z palet±, wielowymiarowych
49 zestawów danych itp.
50
51 %package devel
52 Summary:        HDF library development package
53 Summary(pl):    Pliki nag³ówkowe biblioteki HDF
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       libjpeg-devel
57 Requires:       zlib-devel
58
59 %description devel
60 Header files for HDF library.
61
62 %description devel -l pl
63 Pliki nag³ówkowe biblioteki HDF.
64
65 %package static
66 Summary:        HDF static library
67 Summary(pl):    Statyczna biblioteka HDF
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 Static version of HDF library.
73
74 %description static -l pl
75 Statyczna wersja biblioteki HDF.
76
77 %package progs
78 Summary:        HDF utilities
79 Summary(pl):    Narzêdzia do plików HDF
80 Group:          Applications/File
81 Requires:       %{name} = %{version}-%{release}
82
83 %description progs
84 Utilities to convert from/to HDF format.
85
86 %description progs -l pl
87 Narzêdzia do konwersji z i to formatu HDF.
88
89 %prep
90 %setup -q -n HDF%{version}
91 %patch0 -p1
92 %patch1 -p1
93
94 %ifarch ppc ppc64 sparc sparcv9 sparc64
95 %{__perl} -pi -e 's/^SWAP.*$/SWAP=/' config/mh-linux
96 %endif
97
98 %build
99 cp -f /usr/share/automake/config.* hdf/fmpool
100 %{__libtoolize}
101 %{__aclocal}
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure
106
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{3,7},%{_includedir}/hdf}
112
113 %{__make} install \
114         DESTDIR=$RPM_BUILD_ROOT
115
116 mv -f $RPM_BUILD_ROOT%{_includedir}/*.{h,inc,f90} $RPM_BUILD_ROOT%{_includedir}/hdf
117
118 install man/gr_chunk.3 $RPM_BUILD_ROOT%{_mandir}/man3
119 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/hdf.1 $RPM_BUILD_ROOT%{_mandir}/man7/hdf.7
120
121 # resolve conflict with netcdf
122 for i in ncdump ncgen ; do
123         mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/hdf$i
124         mv -f $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/hdf$i.1
125 done
126
127 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
128
129 %clean
130 rm -rf $RPM_BUILD_ROOT
131
132 %post   -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
134
135 %files
136 %defattr(644,root,root,755)
137 %doc COPYING README release_notes/*
138 %attr(755,root,root) %{_libdir}/libdf.so.*.*
139 %attr(755,root,root) %{_libdir}/libmfhdf.so.*.*
140
141 %files devel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libdf.so
144 %attr(755,root,root) %{_libdir}/libmfhdf.so
145 %{_libdir}/libdf.la
146 %{_libdir}/libmfhdf.la
147 # static-only stub
148 %{_libdir}/libudport.a
149 %{_includedir}/hdf
150 %{_mandir}/man[37]/*
151
152 %files static
153 %defattr(644,root,root,755)
154 %{_libdir}/libdf.a
155 %{_libdir}/libmfhdf.a
156
157 %files progs
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_bindir}/*
160 %{_mandir}/man1/*
This page took 0.172277 seconds and 4 git commands to generate.