]> git.pld-linux.org Git - SPECS.git/blob - h4h5tools.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / h4h5tools.spec
1 Summary:        HDF 4.x to/from HDF5 conversion tools
2 Summary(pl.UTF-8):      Narzędzia do konwersji pomiędzy HDF 4.x i HDF5
3 Name:           h4h5tools
4 Version:        2.2.4
5 Release:        1
6 Group:          Applications/File
7 License:        BSD-like, changed sources must be marked
8 Source0:        https://support.hdfgroup.org/ftp/HDF5/releases/h4toh5/h4toh5-%{version}/src/%{name}-%{version}.tar.gz
9 # Source0-md5:  a1f3dd2882d890f40454782fa50d077d
10 Patch0:         %{name}-config.patch
11 Patch1:         %{name}-shared.patch
12 Patch2:         %{name}-hdfeos.patch
13 Patch3:         %{name}-format.patch
14 URL:            http://portal.hdfgroup.org/display/support/h4h5tools
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  hdf-devel >= 4.2.6
18 BuildRequires:  hdf-eos-devel >= 2.17
19 BuildRequires:  hdf5-devel >= 1.6.10
20 BuildRequires:  libjpeg-devel >= 6b
21 BuildRequires:  libtool
22 BuildRequires:  zlib-devel >= 1.1.3
23 Obsoletes:      hdf5-hdf4
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Utilities to convert files from HDF 4.x to HDF5 or from HDF5 to HDF
28 4.x format.
29
30 %description -l pl.UTF-8
31 Narzędzia do konwersji plików z formatu HDF 4.x do HDF5 oraz z HDF5 do
32 HDF 4.x.
33
34 %package lib
35 Summary:        HDF 4.x to/from HDF5 conversion library
36 Summary(pl.UTF-8):      Biblioteka do konwersji pomiędzy HDF 4.x i HDF5
37 Group:          Development/Libraries
38 Requires:       hdf >= 4.2.6
39 Requires:       hdf-eos >= 2.17
40 Requires:       hdf5 >= 1.6.10
41
42 %description lib
43 Library for file convertion from HDF 4.x to HDF5 or from HDF5 to HDF
44 4.x format.
45
46 %description lib -l pl.UTF-8
47 Biblioteka do konwersji plików z formatu HDF 4.x do HDF5 oraz z HDF5
48 do HDF 4.x.
49
50 %package devel
51 Summary:        Header files for HDF 4.x to/from HDF5 conversion library
52 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki konwersji pomiędzy HDF 4.x i HDF5
53 Group:          Development/Libraries
54 Requires:       %{name}-lib = %{version}-%{release}
55 Requires:       hdf-devel >= 4.2.6
56 Requires:       hdf-eos-devel >= 2.17
57 Requires:       hdf5-devel >= 1.6.10
58
59 %description devel
60 Header files and documentation for HDF 4.x to/from HDF5 format
61 conversion library.
62
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe i dokumentacja do biblioteki konwersji plików z
65 formatu HDF 4.x do HDF5 i odwrotnie.
66
67 %package static
68 Summary:        Static HDF 4.x to/from HDF5 conversion library
69 Summary(pl.UTF-8):      Biblioteka statyczna do konwersji pomiędzy HDF 4.x i HDF5
70 Group:          Development/Libraries
71 Requires:       %{name}-lib = %{version}-%{release}
72
73 %description static
74 Static library for file convertion from HDF 4.x to HDF5 or from HDF5
75 to HDF 4.x format.
76
77 %description static -l pl.UTF-8
78 Biblioteka statyczna do konwersji plików z formatu HDF 4.x do HDF5
79 oraz z HDF5 do HDF 4.x.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85 %patch2 -p1
86 %patch3 -p1
87
88 %build
89 %{__libtoolize}
90 %{__aclocal}
91 %{__autoconf}
92 %{__automake}
93 CPPFLAGS="%{rpmcppflags} -I/usr/include/hdf -DH5_USE_16_API"
94 %configure \
95         --with-hdfeos2
96
97 %{__make} \
98         h5toh4_LDADD="-lmfhdf"
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   lib -p /sbin/ldconfig
110 %postun lib -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc COPYING release_docs/{HISTORY,RELEASE}.txt
115 %attr(755,root,root) %{_bindir}/h4toh5
116 %attr(755,root,root) %{_bindir}/h5toh4
117
118 %files lib
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libh4toh5.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libh4toh5.so.0
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libh4toh5.so
126 %{_libdir}/libh4toh5.la
127 %{_includedir}/H4TOH5api_adpt.h
128 %{_includedir}/h4toh5*.h
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libh4toh5.a
This page took 0.181247 seconds and 3 git commands to generate.