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