]> git.pld-linux.org Git - packages/hdf5.git/commitdiff
- updated to 1.8.5-patch1 auto/th/hdf5-1_8_5_patch1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 6 Oct 2010 07:56:12 +0000 (07:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated config,sig patches
- separated c++ APIs
- h5cc/h5c++ moved to appropriate -devel packages

Changed files:
    hdf5-config.patch -> 1.12
    hdf5-sig.patch -> 1.5
    hdf5.spec -> 1.40

hdf5-config.patch
hdf5-sig.patch
hdf5.spec

index 90417b040914528d6a8d8d560acb7216edd8ab7c..dd56e51099116ecb19683581a1bd2b2983a7c0a3 100644 (file)
@@ -1,26 +1,19 @@
---- hdf5-1.8.3/config/gnu-flags.orig   2009-09-06 10:47:13.000000000 +0200
-+++ hdf5-1.8.3/config/gnu-flags        2009-09-06 10:48:19.000000000 +0200
-@@ -143,7 +143,6 @@
+--- hdf5-1.8.5-patch1/config/gnu-flags.orig    2010-08-26 16:21:53.000000000 +0200
++++ hdf5-1.8.5-patch1/config/gnu-flags 2010-10-05 22:12:48.883739367 +0200
+@@ -145,16 +145,12 @@
      # Production
      case "$cc_vendor-$cc_version" in
        gcc-2.95.[34])
 -        PROD_CFLAGS="-O3"
          ;;
-       gcc-4.[34]*)
-         # The optimization level is reduced for gcc 4.[34] due to problems
-@@ -153,7 +152,6 @@
-         # There's either a bug in gcc or our code. Need further investigation.
-       # Turn off all optimizations to allow the tests to pass for now.
-         # - AKC - 2009/04/19
--        PROD_CFLAGS="-O0"
+       gcc-3.*)
+-        PROD_CFLAGS="-O3"
          ;;
-       gcc-3.[0-4]*|gcc-4.[012]*)
-         # The optimization level is reduced for gcc 3.* and 4.* due to problems
-@@ -161,7 +159,6 @@
-         # optimization levels (which shows up as failures for various integer
-         # types -> long long conversions in the test/dtypes test).  Perhaps
-         # later versions of gcc will fix this bug... - QAK - 2003/10/20
--        PROD_CFLAGS="-O"
+       gcc-4.*)
+-        PROD_CFLAGS="-O3"
          ;;
        *)
-         PROD_CFLAGS="-O"
+-        PROD_CFLAGS="-O"
+         ;;
+     esac
index af83bf26bcc0160667f2b447b1658a1ad3120149..2e3a87a54fd3fccdf07d5a798f018e8e64f3faa2 100644 (file)
@@ -1,49 +1,19 @@
---- hdf5-1.8.2/src/H5detect.c.orig     2008-11-10 22:28:08.000000000 +0100
-+++ hdf5-1.8.2/src/H5detect.c  2009-04-23 07:14:48.909720511 +0200
-@@ -109,7 +109,7 @@
- static void detect_C99_integers64(void);
- static void detect_alignments(void);
- static size_t align_g[] = {1, 2, 4, 8, 16};
--static jmp_buf jbuf_g;
-+static sigjmp_buf jbuf_g;
+--- hdf5-1.8.5-patch1/configure.in.orig        2010-08-26 16:27:23.000000000 +0200
++++ hdf5-1.8.5-patch1/configure.in     2010-10-06 08:26:23.847742720 +0200
+@@ -2086,10 +2086,15 @@
+ AC_CHECK_FUNCS(alarm BSDgettimeofday fork frexpf frexpl)
+ AC_CHECK_FUNCS(gethostname getpwuid getrusage lstat)
+ AC_CHECK_FUNCS(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 vasprintf waitpid)
  
\f
- /*-------------------------------------------------------------------------
-@@ -368,7 +368,7 @@
-     void              (*_handler2)(int) = signal(SIGSEGV, sigsegv_handler);   \
-                                                                             \
-     _buf = (char*)malloc(sizeof(TYPE) + align_g[NELMTS(align_g) - 1]);              \
--    if(setjmp(jbuf_g)) _ano++;                                                      \
-+    if(sigsetjmp(jbuf_g, 1)) _ano++;                                                \
-     if(_ano < NELMTS(align_g)) {                                            \
-       *((TYPE*)(_buf+align_g[_ano])) = _val; /*possible SIGBUS or SEGSEGV*/   \
-       _val2 = *((TYPE*)(_buf+align_g[_ano])); /*possible SIGBUS or SEGSEGV*/  \
-@@ -385,7 +385,7 @@
-           memcpy(_buf+align_g[_ano]+(INFO.offset/8),((char *)&_val)+(INFO.offset/8),(size_t)(INFO.precision/8)); \
-       _val2 = *((TYPE*)(_buf+align_g[_ano]));                               \
-       if(_val!=_val2)                                                       \
--          longjmp(jbuf_g, 1);                                               \
-+          siglongjmp(jbuf_g, 1);                                                    \
-       /* End Cray Check */                                                  \
-       (INFO.align)=align_g[_ano];                                           \
-     } else {                                                                \
-@@ -469,7 +469,7 @@
- sigsegv_handler(int UNUSED signo)
- {
-     signal(SIGSEGV, sigsegv_handler);
--    longjmp(jbuf_g, 1);
-+    siglongjmp(jbuf_g, 1);
- }
\f
-@@ -494,10 +494,7 @@
- sigbus_handler(int UNUSED signo)
- {
-     signal(SIGBUS, sigbus_handler);
--    longjmp(jbuf_g, 1);
--#ifdef H5_HAVE_SIGLONGJMP
-     siglongjmp(jbuf_g, 1);
--#endif /* H5_HAVE_SIGLONGJMP */
- }
\f
++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])])])
++
+ dnl Check for vsnprintf() separately, so we can detect situations where it
+ dnl doesn't return the correct size for formatted strings that are too large
+ dnl for the buffer provided
index 1dd072c07a6654b8d3977e5a786de4eb851cad85..c78130e4dbf71c564e73bfc13ceb0ab4b97cd89e 100644 (file)
--- a/hdf5.spec
+++ b/hdf5.spec
@@ -8,12 +8,12 @@
 Summary:       Hierarchical Data Format 5 library
 Summary(pl.UTF-8):     Biblioteka HDF5 (Hierarchical Data Format 5)
 Name:          hdf5
-Version:       1.8.4.patch1
+Version:       1.8.5.patch1
 Release:       1
 License:       Nearly BSD, but changed sources must be marked
 Group:         Libraries
-Source0:       ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-1.8.4-patch1.tar.gz
-# Source0-md5: aa3878d2fcc5fe92a1482d79cf2eee58
+Source0:       ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-1.8.5-patch1.tar.gz
+# Source0-md5: d22a35a17877e369055ed50da5ba91fa
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-sig.patch
 Patch2:                %{name}-link.patch
@@ -23,7 +23,6 @@ BuildRequires:        automake
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:1.5
-BuildRequires: openssl-devel >= 0.9.7d
 %{?with_szip:BuildRequires:    szip-devel >= 2.0}
 BuildRequires: zlib-devel >= 1.1.3
 Obsoletes:     hdf5_hl
@@ -48,7 +47,6 @@ Summary:      HDF5 library development package
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki HDF5
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      openssl-devel
 %{?with_szip:Requires: szip-devel >= 2.0}
 Requires:      zlib-devel
 Obsoletes:     hdf5_hl-devel
@@ -73,6 +71,46 @@ Static version of HDF5 library.
 %description static -l pl.UTF-8
 Statyczna wersja biblioteki HDF5.
 
+%package c++
+Summary:       C++ APIs for HDF5
+Summary(pl.UTF-8):     API C++ bibliotek HDF5
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description c++
+C++ APIs for HDF5 (both base hdf5 and hdf5_hl).
+
+%description c++ -l pl.UTF-8
+API C++ dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i hdf5_hl).
+
+%package c++-devel
+Summary:       Header files for HDF5 C++ APIs
+Summary(pl.UTF-8):     Pliki nagłówkowe API C++ bibliotek HDF5
+Group:         Development/Libraries
+Requires:      %{name}-c++ = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      libstdc++-devel
+
+%description c++-devel
+Header files for HDF5 C++ APIs (both base hdf5 and hdf5_hl).
+
+%description c++-devel -l pl.UTF-8
+Pliki nagłówkowe API C++ bibliotek HDF5 (zarówno podstawowej hdf5, jak
+i hdf5_hl).
+
+%package c++-static
+Summary:       C++ APIs for HDF5 - static libraries
+Summary(pl.UTF-8):     API C++ bibliotek HDF5 - biblioteki statyczne
+Group:         Development/Libraries
+Requires:      %{name}-c++-devel = %{version}-%{release}
+
+%description c++-static
+C++ APIs for HDF5 (both base hdf5 and hdf5_hl) - static libraries.
+
+%description c++-static -l pl.UTF-8
+API C++ dla bibliotek HDF5 (zarówno podstawowej hdf5, jak i hdf5_hl) -
+biblioteki statyczne.
+
 %package progs
 Summary:       HDF5 utilities
 Summary(pl.UTF-8):     Narzędzia do plików HDF5
@@ -86,7 +124,7 @@ Utilities to convert from/to HDF5 format.
 Narzędzia do konwersji z i to formatu HDF5.
 
 %prep
-%setup -q -n %{name}-1.8.4-patch1
+%setup -q -n %{name}-1.8.5-patch1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -103,7 +141,6 @@ Narzędzia do konwersji z i to formatu HDF5.
        --enable-linux-lfs \
        --enable-production \
        --with-pthread \
-       --with-ssl \
        %{?with_szip:--with-szlib}
 
 #      --enable-threadsafe is incompatible with cxx/fortran
@@ -115,17 +152,20 @@ Narzędzia do konwersji z i to formatu HDF5.
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_includedir}
 
-%{__make} install \
-       libdir=$RPM_BUILD_ROOT%{_libdir} \
-       includedir=$RPM_BUILD_ROOT%{_includedir} \
-       bindir=$RPM_BUILD_ROOT%{_bindir} \
-       docdir=$RPM_BUILD_ROOT%{_docdir}
+%{__make} install-recursive \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl
 %{__make} -C examples install-examples \
-       EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c
+       EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c \
+       EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %{__make} -C c++/examples install-examples \
        EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/c++
+%{__make} -C hl/examples install-examples \
+       EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl/c \
+       EXAMPLETOPDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl
+%{__make} -C hl/c++/examples install-examples \
+       EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl/c++
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -133,34 +173,73 @@ rm -rf $RPM_BUILD_ROOT
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
+%post  c++ -p /sbin/ldconfig
+%postun        c++ -p /sbin/ldconfig
+
 %files
 %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.6
-%attr(755,root,root) %{_libdir}/libhdf5_cpp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.6
 %attr(755,root,root) %{_libdir}/libhdf5_hl.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libhdf5_hl.so.6
-%attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.6
 # used to show configuration at runtime
 %{_libdir}/libhdf5.settings
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/h5cc
 %attr(755,root,root) %{_libdir}/libhdf5.so
-%attr(755,root,root) %{_libdir}/libhdf5_cpp.so
 %attr(755,root,root) %{_libdir}/libhdf5_hl.so
-%attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so
 %{_libdir}/libhdf5.la
-%{_libdir}/libhdf5_cpp.la
 %{_libdir}/libhdf5_hl.la
-%{_libdir}/libhdf5_hl_cpp.la
-%{_includedir}/H5*.h
+%{_includedir}/H5ACpublic.h
+%{_includedir}/H5Apublic.h
+%{_includedir}/H5Cpublic.h
+%{_includedir}/H5DSpublic.h
+%{_includedir}/H5Dpublic.h
+%{_includedir}/H5Epubgen.h
+%{_includedir}/H5Epublic.h
+%{_includedir}/H5FDcore.h
+%{_includedir}/H5FDdirect.h
+%{_includedir}/H5FDfamily.h
+%{_includedir}/H5FDlog.h
+%{_includedir}/H5FDmpi.h
+%{_includedir}/H5FDmpio.h
+%{_includedir}/H5FDmpiposix.h
+%{_includedir}/H5FDmulti.h
+%{_includedir}/H5FDpublic.h
+%{_includedir}/H5FDsec2.h
+%{_includedir}/H5FDstdio.h
+%{_includedir}/H5Fpublic.h
+%{_includedir}/H5Gpublic.h
+%{_includedir}/H5IMpublic.h
+%{_includedir}/H5Include.h
+%{_includedir}/H5Ipublic.h
+%{_includedir}/H5LTpublic.h
+%{_includedir}/H5Lpublic.h
+%{_includedir}/H5MMpublic.h
+%{_includedir}/H5Opublic.h
+%{_includedir}/H5PTpublic.h
+%{_includedir}/H5Ppublic.h
+%{_includedir}/H5Rpublic.h
+%{_includedir}/H5Spublic.h
+%{_includedir}/H5TBpublic.h
+%{_includedir}/H5Tpublic.h
+%{_includedir}/H5Zpublic.h
+%{_includedir}/H5api_adpt.h
+%{_includedir}/H5overflow.h
+%{_includedir}/H5pubconf.h
+%{_includedir}/H5public.h
+%{_includedir}/H5version.h
 %{_includedir}/hdf5.h
 %{_includedir}/hdf5_hl.h
-%{_examplesdir}/%{name}-%{version}
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/run-all-ex.sh
+%{_examplesdir}/%{name}-%{version}/c
+%dir %{_examplesdir}/%{name}-%{version}/hl
+%{_examplesdir}/%{name}-%{version}/hl/run-hl-ex.sh
+%{_examplesdir}/%{name}-%{version}/hl/c
 
 %files static
 %defattr(644,root,root,755)
@@ -169,6 +248,68 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libhdf5_hl.a
 %{_libdir}/libhdf5_hl_cpp.a
 
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhdf5_cpp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_cpp.so.6
+%attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhdf5_hl_cpp.so.6
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/h5c++
+%attr(755,root,root) %{_libdir}/libhdf5_cpp.so
+%attr(755,root,root) %{_libdir}/libhdf5_hl_cpp.so
+%{_libdir}/libhdf5_cpp.la
+%{_libdir}/libhdf5_hl_cpp.la
+%{_includedir}/H5AbstractDs.h
+%{_includedir}/H5ArrayType.h
+%{_includedir}/H5AtomType.h
+%{_includedir}/H5Attribute.h
+%{_includedir}/H5Classes.h
+%{_includedir}/H5CommonFG.h
+%{_includedir}/H5CompType.h
+%{_includedir}/H5Cpp.h
+%{_includedir}/H5CppDoc.h
+%{_includedir}/H5DataSet.h
+%{_includedir}/H5DataSpace.h
+%{_includedir}/H5DataType.h
+%{_includedir}/H5DcreatProp.h
+%{_includedir}/H5DxferProp.h
+%{_includedir}/H5EnumType.h
+%{_includedir}/H5Exception.h
+%{_includedir}/H5FaccProp.h
+%{_includedir}/H5FcreatProp.h
+%{_includedir}/H5File.h
+%{_includedir}/H5FloatType.h
+%{_includedir}/H5Group.h
+%{_includedir}/H5IdComponent.h
+%{_includedir}/H5IntType.h
+%{_includedir}/H5Library.h
+%{_includedir}/H5Object.h
+%{_includedir}/H5PacketTable.h
+%{_includedir}/H5PredType.h
+%{_includedir}/H5PropList.h
+%{_includedir}/H5StrType.h
+%{_includedir}/H5VarLenType.h
+%{_examplesdir}/%{name}-%{version}/c++
+%{_examplesdir}/%{name}-%{version}/hl/c++
+
 %files progs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/gif2h5
+%attr(755,root,root) %{_bindir}/h52gif
+%attr(755,root,root) %{_bindir}/h5copy
+%attr(755,root,root) %{_bindir}/h5debug
+%attr(755,root,root) %{_bindir}/h5diff
+%attr(755,root,root) %{_bindir}/h5dump
+%attr(755,root,root) %{_bindir}/h5import
+%attr(755,root,root) %{_bindir}/h5jam
+%attr(755,root,root) %{_bindir}/h5ls
+%attr(755,root,root) %{_bindir}/h5mkgrp
+%attr(755,root,root) %{_bindir}/h5perf_serial
+%attr(755,root,root) %{_bindir}/h5redeploy
+%attr(755,root,root) %{_bindir}/h5repack
+%attr(755,root,root) %{_bindir}/h5repart
+%attr(755,root,root) %{_bindir}/h5stat
+%attr(755,root,root) %{_bindir}/h5unjam
This page took 0.23026 seconds and 4 git commands to generate.