--- /dev/null
+--- hdf5-1.8.15/test/error_test.c.orig 2015-05-01 20:36:27.000000000 +0200
++++ hdf5-1.8.15/test/error_test.c 2015-05-20 18:28:01.999946222 +0200
+@@ -498,7 +498,7 @@
+ if(err_num != 0) TEST_ERROR
+
+ /* Push an error with a long description */
+- if(H5Epush(estack_id, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, err_msg) < 0) TEST_ERROR;
++ if(H5Epush(estack_id, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, "%s", err_msg) < 0) TEST_ERROR;
+
+ /* Check the number of errors on stack */
+ err_num = H5Eget_num(estack_id);
+@@ -543,7 +543,7 @@
+ herr_t ret; /* Generic return value */
+
+ /* Push an error with a long description */
+- if(H5Epush(H5E_DEFAULT, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, err_msg) < 0) TEST_ERROR;
++ if(H5Epush(H5E_DEFAULT, __FILE__, err_func, __LINE__, ERR_CLS, ERR_MAJ_TEST, ERR_MIN_SUBROUTINE, "%s", err_msg) < 0) TEST_ERROR;
+
+ /* Check the number of errors on stack */
+ err_num = H5Eget_num(H5E_DEFAULT);
---- hdf5-1.8.14/configure.ac.orig 2014-11-14 21:04:02.769225653 +0100
-+++ hdf5-1.8.14/configure.ac 2014-11-14 21:06:03.502553920 +0100
-@@ -2253,10 +2253,15 @@
- AC_CHECK_FUNCS([alarm BSDgettimeofday fork frexpf frexpl])
- AC_CHECK_FUNCS([gethostname getpwuid getrusage lstat])
- AC_CHECK_FUNCS([rand_r random setsysinfo])
+--- hdf5-1.8.15/configure.ac.orig 2015-05-20 17:40:38.246732231 +0200
++++ hdf5-1.8.15/configure.ac 2015-05-20 17:41:46.156729379 +0200
+@@ -1643,10 +1643,15 @@
+ AC_CHECK_FUNCS([alarm clock_gettime difftime fork frexpf frexpl])
+ AC_CHECK_FUNCS([gethostname getpwuid getrusage gettimeofday])
+ AC_CHECK_FUNCS([lstat rand_r random setsysinfo])
-AC_CHECK_FUNCS([signal longjmp setjmp siglongjmp sigsetjmp sigprocmask])
+AC_CHECK_FUNCS([signal longjmp setjmp siglongjmp sigprocmask])
AC_CHECK_FUNCS([snprintf srandom strdup symlink system])
- AC_CHECK_FUNCS([tmpfile asprintf vasprintf waitpid])
+ AC_CHECK_FUNCS([tmpfile asprintf vasprintf vsnprintf waitpid])
+dnl cannot be detected in glibc by plain AC_CHECK_FUNCS
+AH_TEMPLATE([HAVE_SIGSETJMP], [Have sigsetjmp function])
+AC_CHECK_FUNC([sigsetjmp], [AC_DEFINE([HAVE_SIGSETJMP])],
+ [AC_CHECK_FUNC([__sigsetjmp], [AC_DEFINE([HAVE_SIGSETJMP])])])
+
- ## Check for vsnprintf() separately, so we can detect situations where it
- ## doesn't return the correct size for formatted strings that are too large
- ## for the buffer provided
+ ## ----------------------------------------------------------------------
+ ## Check compiler characteristics
+ ##
Summary: Hierarchical Data Format 5 library
Summary(pl.UTF-8): Biblioteka HDF5 (Hierarchical Data Format 5)
Name: hdf5
-Version: 1.8.14
-Release: 3
+Version: 1.8.15
+Release: 1
License: Nearly BSD, but changed sources must be marked
Group: Libraries
Source0: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}.tar.bz2
-# Source0-md5: 719df6d46eea52e42dd97d59dcbf5311
+# Source0-md5: c3cfd7aeca8ca15160d9784af6748ac4
Patch0: %{name}-config.patch
Patch1: %{name}-sig.patch
Patch2: %{name}-cmake.patch
-Patch3: %{name}-link.patch
+Patch3: %{name}-format.patch
URL: http://www.hdfgroup.org/HDF5/
BuildRequires: autoconf >= 2.69
BuildRequires: automake >= 1:1.11
vminor=$(sed -ne 's/^#define H5_VERS_MINOR\s*\([0-9]\+\).*/\1/p' src/H5public.h)
vrel=$(sed -ne 's/^#define H5_VERS_RELEASE\s*\([0-9]\+\).*/\1/p' src/H5public.h)
vsubr=$(sed -ne 's/^#define H5_VERS_SUBRELEASE\s*\([^ \t]\+\).*/\1/p' src/H5public.h)
-for f in FindHDF5.cmake hdf5-config-version.cmake hdf5-config.cmake.install hdf5-targets.cmake hdf5-targets-noconfig.cmake ; do
+for f in FindHDF5.cmake hdf5-config-version.cmake hdf5-config.cmake hdf5-targets.cmake hdf5-targets-noconfig.cmake ; do
sed -e 's,@HDF5_PACKAGE@,hdf5,' \
-e 's,@HDF_PACKAGE_EXT@,,' \
-e "s,@HDF5_VERSION_STRING@,%{version}," \
-e "s,@lib@,%{_lib}," \
config/cmake/${f}.in > $RPM_BUILD_ROOT%{_datadir}/cmake/hdf5/$f
done
-mv $RPM_BUILD_ROOT%{_datadir}/cmake/hdf5/hdf5-config.cmake{.install,}
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc COPYING README.txt release_docs/{HISTORY*.txt,RELEASE.txt}
%attr(755,root,root) %{_libdir}/libhdf5.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5.so.10
%attr(755,root,root) %{_libdir}/libhdf5_hl.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl.so.10
# used to show configuration at runtime
%{_libdir}/libhdf5.settings
%{_includedir}/H5PTpublic.h
%{_includedir}/H5Ppublic.h
%{_includedir}/H5PLextern.h
+%{_includedir}/H5PLpublic.h
%{_includedir}/H5Rpublic.h
%{_includedir}/H5Spublic.h
%{_includedir}/H5TBpublic.h
%files c++
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libhdf5_cpp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.10
%attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.10
%files c++-devel
%defattr(644,root,root,755)
%files fortran
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libhdf5_fortran.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_fortran.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_fortran.so.10
%attr(755,root,root) %{_libdir}/libhdf5hl_fortran.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5hl_fortran.so.9
+%attr(755,root,root) %ghost %{_libdir}/libhdf5hl_fortran.so.10
%files fortran-devel
%defattr(644,root,root,755)