]> git.pld-linux.org Git - packages/hdf5.git/blob - hdf5.spec
- updated to 1.6.2, updated config patch
[packages/hdf5.git] / hdf5.spec
1 # TODO:
2 # - build with MPICH
3 # - enable Stream VFD support
4 # - check missing file
5 Summary:        Hierarchical Data Format 5 library
6 Summary(pl):    Biblioteka HDF5 (Hierarchical Data Format 5)
7 Name:           hdf5
8 Version:        1.6.2
9 Release:        0.1
10 Group:          Libraries
11 License:        Nearly BSD, but changed sources must be marked
12 Source0:        ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/%{name}-%{version}/src/%{name}-%{version}.tar.gz
13 # Source0-md5:  9a39a0d8b002b12787436e186133455c
14 Patch0:         %{name}-config.patch
15 URL:            http://hdf.ncsa.uiuc.edu/HDF5/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libjpeg-devel >= 6b
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool
21 BuildRequires:  openssl-devel >= 0.9.7c
22 BuildRequires:  zlib-devel >= 1.1.3
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 HDF5 is a completely new Hierarchical Data Format product consisting
27 of a data format specification and a supporting library
28 implementation. HDF5 is designed to address some of the limitations of
29 the older HDF product and to address current and anticipated
30 requirements of modern systems and applications.
31
32 %description -l pl
33 HDF5 jest ca³kowicie nowym produktem Hierarchiczego Formatu Danych,
34 sk³adaj±cym siê ze specyfikacji formatu danych oraz obs³uguj±cej go
35 biblioteki. HDF5 zosta³ zaprojektowany aby pozbyæ siê ograniczeñ
36 poprzedniego HDF oraz ¿eby zaspokoiæ bie¿±ce i przysz³e potrzeby
37 wspó³czesnych systemów i aplikacji.
38
39 %package devel
40 Summary:        HDF5 library development package
41 Summary(pl):    Pliki nag³ówkowe biblioteki HDF5
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       openssl-devel
45 Requires:       zlib-devel
46
47 %description devel
48 Header files for HDF5 library and HDF5 documentation.
49
50 %description devel -l pl
51 Pliki nag³ówkowe biblioteki HDF5 oraz dokumentacja HDF5.
52
53 %package static
54 Summary:        HDF5 static library
55 Summary(pl):    Statyczna biblioteka HDF5
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static version of HDF5 library.
61
62 %description static -l pl
63 Statyczna wersja biblioteki HDF5.
64
65 %package progs
66 Summary:        HDF5 utilities
67 Summary(pl):    Narzêdzia do plików HDF5
68 Group:          Applications/File
69 Requires:       %{name} = %{version}-%{release}
70
71 %description progs
72 Utilities to convert from/to HDF5 format.
73
74 %description progs -l pl
75 Narzêdzia do konwersji z i to formatu HDF5.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80
81 %build
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 cd c++
86 %{__aclocal}
87 %{__autoconf}
88 cd ..
89 %configure \
90         --enable-cxx \
91         --enable-linux-lfs \
92         --enable-threadsafe \
93         --enable-production \
94         --with-pthread \
95         --with-ssl
96
97 #       --enable-fortran  - requires Fortran90 compiler
98
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_includedir}
104
105 %{__make} install \
106         libdir=$RPM_BUILD_ROOT%{_libdir} \
107         includedir=$RPM_BUILD_ROOT%{_includedir} \
108         bindir=$RPM_BUILD_ROOT%{_bindir} \
109         docdir=$RPM_BUILD_ROOT%{_docdir}
110
111 find doc -name Dependencies -o -name Makefile\* | xargs rm -f
112
113 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
114 mv -f $RPM_BUILD_ROOT%{_docdir}/hdf5/examples/{c,c++} \
115         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post   -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
122
123 %files
124 %defattr(644,root,root,755)
125 %doc COPYING README.txt release_docs/{HISTORY.txt,RELEASE.txt}
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
127 #check this
128 #%{_libdir}/libhdf5.settings
129
130 %files devel
131 %defattr(644,root,root,755)
132 %doc doc/html
133 %attr(755,root,root) %{_libdir}/lib*.so
134 %{_libdir}/lib*.la
135 %{_includedir}/*
136 %{_examplesdir}/%{name}-%{version}
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib*.a
141
142 %files progs
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/*
This page took 0.058442 seconds and 4 git commands to generate.