2012-03-09 21:23:35 +01:00
#
2012-03-12 20:12:59 +01:00
# spec file for package hdf5
2012-03-09 21:23:35 +01:00
#
2015-05-20 23:44:45 +02:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2012-03-09 21:23:35 +01:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-03-12 20:12:59 +01:00
2012-09-17 16:57:16 +02:00
%if 0%{?sles_version}
2012-11-21 17:00:51 +01:00
%define _mvapich2 1
2012-09-17 16:57:16 +02:00
%endif
2012-11-21 17:00:51 +01:00
%if 0%{?suse_version}
%define _openmpi 1
%endif
%define _mpi %{?_openmpi:openmpi} %{?_mvapich2:mvapich2}
2012-03-12 20:12:59 +01:00
Name : hdf5
2015-07-27 18:01:54 +02:00
%define libname libhdf5
2015-07-25 07:43:29 +02:00
Version : 1.8.15
2012-03-12 20:12:59 +01:00
Release : 0
2015-07-27 18:01:54 +02:00
%define sonum 10
Summary : Command-line programs for the HDF5 scientific data format
2012-03-12 20:12:59 +01:00
License : BSD-3-Clause
2015-07-27 18:01:54 +02:00
Group : Productivity/Scientific/Other
2012-03-12 20:12:59 +01:00
Url : http://www.hdfgroup.org/HDF5/
2014-06-25 10:48:59 +02:00
Source0 : http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-%{version} /src/hdf5-%{version} .tar.bz2
2015-01-15 16:01:05 +01:00
Source1 : baselibs.conf
2012-03-12 20:12:59 +01:00
Patch0 : hdf5-LD_LIBRARY_PATH.patch
Patch1 : hdf5-non_void_return.patch
2013-06-18 10:31:19 +02:00
# not really needed but we want to get noticed if hdf5 doesn' t know our host
Patch2 : hdf5-1.8.11-abort_unknown_host_config.patch
2012-06-26 15:51:23 +02:00
%ifarch %arm
2012-11-21 17:00:51 +01:00
Patch4 : hdf5-1.8.10-tests-arm.patch
2012-06-26 15:51:23 +02:00
%endif
2015-07-25 07:43:29 +02:00
Patch5 : hdf5-ldouble-ppc64le.patch
2015-08-13 11:57:20 +02:00
# PATCH-FIX-UPSTREAM hdf5-cpp-compilation-errors.patch badshah400@gmail.com -- Reverted a change to the H5api_adpt.h that caused compilation errors for the C++ HDF5 applications; patch taken from upstream svn
Patch6 : hdf5-cpp-compilation-errors.patch
2012-03-12 20:12:59 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2012-05-29 11:43:46 +02:00
BuildRequires : gcc-c++
2012-06-26 15:51:23 +02:00
%if 0%{?suse_version} > 1140
2012-05-29 11:43:46 +02:00
BuildRequires : gcc-fortran
2012-06-26 15:51:23 +02:00
%endif
2012-05-29 11:43:46 +02:00
BuildRequires : krb5-devel
BuildRequires : openssl-devel
BuildRequires : zlib-devel
2012-06-26 15:51:23 +02:00
%if 0%{?suse_version} >= 1110
BuildRequires : fdupes
%endif
2012-11-21 17:00:51 +01:00
%if 0%{?_openmpi}
2012-09-17 16:57:16 +02:00
BuildRequires : openmpi-devel
2012-11-21 17:00:51 +01:00
%endif
%if 0%{?_mvapich2}
2012-09-17 16:57:16 +02:00
BuildRequires : mvapich2-devel
%endif
2015-07-27 18:01:54 +02:00
Requires : %{libname} -%{sonum} = %{version}
Requires : %{libname} _hl%{sonum} = %{version}
2012-03-09 21:23:35 +01:00
%description
2015-07-27 18:01:54 +02:00
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
This package contains utility functions for working with HDF5 files.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%package -n %{name}-openmpi
Summary : Command-line programs for the HDF5 scientific data format
Group : Productivity/Scientific/Other
Requires : %{libname} -%{sonum} -openmpi = %{version}
Requires : %{libname} _hl%{sonum} -openmpi = %{version}
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%description -n %{name}-openmpi
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the openmpi version utility functions for working
with HDF5 files.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%package -n %{name}-mvapich2
Summary : Command-line programs for the HDF5 scientific data format
Group : Productivity/Scientific/Other
Requires : %{libname} -%{sonum} -mvapich2 = %{version}
Requires : %{libname} _hl%{sonum} -mvapich2 = %{version}
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%description -n %{name}-mvapich2
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the mvapich2 version utility functions for working
with HDF5 files.
%package -n %{libname}-%{sonum}
Summary : Shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}-%{sonum}
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the HDF5 runtime libraries.
%package -n %{libname}-%{sonum}-openmpi
Summary : Shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}-%{sonum}-openmpi
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the openmpi version of the HDF5 runtime libraries.
%package -n %{libname}-%{sonum}-mvapich2
Summary : Shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}-%{sonum}-mvapich2
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the mvapich2 version of the HDF5 runtime libraries.
%package -n %{libname}_hl%{sonum}
Summary : High-level shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}_hl%{sonum}
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the the high-level HDF5 runtime libraries.
%package -n %{libname}_hl%{sonum}-openmpi
Summary : High-level shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}_hl%{sonum}-openmpi
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the openmpi version of the high-level HDF5
runtime libraries.
%package -n %{libname}_hl%{sonum}-mvapich2
Summary : High-level shared libraries for the HDF5 scientific data format
Group : Productivity/Scientific/Other
%description -n %{libname}_hl%{sonum}-mvapich2
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains the mvapich2 version of the high-level HDF5
runtime libraries.
%package devel-data
Summary : Development data files for %{name}
Group : Development/Libraries/Other
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%description devel-data
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains generic files needed to create projects that use
any version of HDF5.
%package devel
Summary : Development files for %{name}
2012-09-17 16:57:16 +02:00
Group : Development/Libraries/Other
2015-07-27 18:01:54 +02:00
Requires : %{name} = %{version}
Requires : %{name} -devel-data = %{version}
# Required by Fortran programs?
Requires : %{libname} -%{sonum} = %{version}
Requires : %{libname} _hl%{sonum} = %{version}
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%description devel
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package contains all files needed to create projects that use
HDF5.
2012-09-17 16:57:16 +02:00
%package openmpi-devel
2015-07-27 18:01:54 +02:00
Summary : Development files for %{name} -openmpi
2012-09-17 16:57:16 +02:00
Group : Development/Libraries/Parallel
2015-07-27 18:01:54 +02:00
Requires : %{name} -devel-data = %{version}
2015-08-13 11:57:20 +02:00
Requires : %{name} -openmpi = %{version}
2012-09-17 16:57:16 +02:00
# Required by Fortran programs?
2015-07-27 18:01:54 +02:00
Requires : %{libname} -%{sonum} -openmpi = %{version}
Requires : %{libname} _hl%{sonum} -openmpi = %{version}
2012-09-17 16:57:16 +02:00
%description openmpi-devel
2015-07-27 18:01:54 +02:00
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
2012-09-17 16:57:16 +02:00
This package contains all files needed to create projects that use
2015-07-27 18:01:54 +02:00
the openmpi version of HDF5.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%package mvapich2-devel
Summary : Development files for %{name} -mvapich2
Group : Development/Libraries/Parallel
Requires : %{name} -devel-data = %{version}
2015-08-13 11:57:20 +02:00
Requires : %{name} -mvapich2 = %{version}
2015-07-27 18:01:54 +02:00
# Required by Fortran programs?
Requires : %{libname} -%{sonum} -mvapich2 = %{version}
Requires : %{libname} _hl%{sonum} -mvapich2 = %{version}
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%description mvapich2-devel
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
This package contains all files needed to create projects that use
the mvapich2 version of HDF5.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%package devel-static
Summary : Static development files for %{name}
2012-09-17 16:57:16 +02:00
Group : Development/Libraries/Other
2015-07-27 18:01:54 +02:00
Requires : %{name} -devel = %{version}
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%description devel-static
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package provides the static libraries for HDF5.
%package openmpi-devel-static
Summary : Static development files for %{name} -openmpi
2012-09-17 16:57:16 +02:00
Group : Development/Libraries/Parallel
2015-07-27 18:01:54 +02:00
Requires : %{name} -openmpi-devel = %{version}
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%description openmpi-devel-static
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package provides the static libraries for the openmpi version of HDF5.
2012-09-17 16:57:16 +02:00
%package mvapich2-devel-static
2015-07-27 18:01:54 +02:00
Summary : Static development files for %{name} -mvapich2
Group : Development/Libraries/Parallel
2015-07-27 12:12:44 +02:00
Requires : %{name} -mvapich2-devel = %{version}
2012-09-17 16:57:16 +02:00
%description mvapich2-devel-static
2015-07-27 18:01:54 +02:00
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package provides the static libraries for the mvapich2 version of HDF5.
%package examples
Summary : Examples for %{name}
Group : Documentation/Other
Requires : %{libname} -%{sonum} = %{version}
Requires : %{libname} _hl%{sonum} = %{version}
%description examples
HDF5 is a data model, library, and file format for storing and
managing data. It supports an unlimited variety of datatypes, and
is designed for flexible and efficient I/O and for high volume and
complex data. HDF5 is portable and is extensible, allowing
applications to evolve in their use of HDF5.
The HDF5 technology suite is designed to organize, store, discover,
access, analyze, share, and preserve diverse, complex data in
continuously evolving heterogeneous computing and storage environments.
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
HDF5 supports all types of data stored digitally, regardless of origin
or size. Petabytes of remote sensing data collected by satellites,
terabytes of computational results from nuclear testing models, and
megabytes of high-resolution MRI brain scans are stored in HDF5 files,
together with metadata necessary for efficient data sharing,
processing, visualization, and archiving.
This package provides examples of HDF5 library use.
2012-09-17 16:57:16 +02:00
2012-03-09 21:23:35 +01:00
%prep
2014-06-25 10:48:59 +02:00
%setup -q
2015-07-27 18:01:54 +02:00
# don't forget to increase sonum, see also baselibs.conf
2013-06-18 10:31:19 +02:00
LT_VERS_INTERFACE=$(sed -n 's/^ *LT_VERS_INTERFACE *= *//p' config/lt_vers.am)
2015-07-27 18:01:54 +02:00
test " %{sonum} " = " $ { L T _ V E R S _ I N T E R F A C E } " || exit 1
2012-03-09 21:23:35 +01:00
%patch0 -p1 -b .LD_LIBRARY_PATH
2012-06-26 15:51:23 +02:00
%patch1 -p0 -b .non_void_return
2013-06-18 10:31:19 +02:00
%patch2 -p0 -b .abort_unknown_host_config
2012-06-26 15:51:23 +02:00
%ifarch %arm
%patch4 -p0 -b .tests-arm
%endif
2013-09-25 17:14:33 +02:00
%patch5 -p1
2015-08-13 11:57:20 +02:00
%patch6 -p0
2012-03-09 21:23:35 +01:00
2012-11-21 17:00:51 +01:00
echo " p r e p a r e p a r a l l e l b u i l d s : % _ m p i "
2012-09-26 09:54:36 +02:00
for build_dir in build %_mpi; do
mkdir $build_dir
ln -s ../configure $build_dir
2012-09-17 16:57:16 +02:00
done
2012-03-09 21:23:35 +01:00
%build
export CC=gcc
export CXX=g++
export F9X=gfortran
2013-06-18 10:31:19 +02:00
# workaround for known gcc issue, see RELEASE.txt
2013-09-16 12:36:18 +02:00
if gcc --version |grep -q " 4 \ . [ 6 8 ] " ; then
2013-06-18 10:31:19 +02:00
export CFLAGS=" ${RPM_OPT_FLAGS / - O 2 / - O 0 } "
fi
%ifarch %arm
# we want to have useful H5_CFLAGS on arm too
test -e config/linux-gnueabi || cp config/linux-gnu config/linux-gnueabi
%endif
2012-03-09 21:23:35 +01:00
2015-07-25 07:43:29 +02:00
# NOTE: --enable-unsupported is required when --enable-fortran
# and/or --enable-cxx is enabled along with --enable-threadsafe.
# Building with thise combination results in thread-safe C
# libraries and non-thread-safe fotran and/or C++ libraries. So
# you have to explicitly allow building the thread-safe C
# library and the non-thread-safe C++ and fortran libraries in
# order to make sure people don't assume that their fotran or
# C++ code is thread-safe. Since our users are going to be
# accessing this through other programs, this doesn't matter.
2012-09-26 09:54:36 +02:00
pushd build
2012-03-09 21:23:35 +01:00
%configure \
2012-09-26 09:54:36 +02:00
--docdir=%{_docdir} /%{name} \
2012-03-09 21:23:35 +01:00
--disable-dependency-tracking \
%if 0%{?suse_version} > 1140
--enable-fortran \
2015-07-25 07:43:29 +02:00
--enable-fortran2003 \
2012-03-09 21:23:35 +01:00
%endif
2015-07-25 07:43:29 +02:00
--enable-unsupported \
2012-03-09 21:23:35 +01:00
--enable-hl \
--enable-shared \
--enable-cxx \
2015-07-25 07:43:29 +02:00
--enable-threadsafe \
2012-06-26 15:51:23 +02:00
--with-pthread
2012-03-09 21:23:35 +01:00
2013-06-18 10:31:19 +02:00
make V=1 %{?_smp_mflags}
2012-09-26 09:54:36 +02:00
popd
2012-03-09 21:23:35 +01:00
2012-09-17 16:57:16 +02:00
for mpi in %_mpi;
do
2015-07-27 18:01:54 +02:00
pushd $mpi
2012-09-17 16:57:16 +02:00
export CC=" %{_libdir} / m p i / g c c / $ m p i / b i n / m p i c c "
export FC=" %{_libdir} / m p i / g c c / $ m p i / b i n / m p i f 9 0 "
export F77=" %{_libdir} / m p i / g c c / $ m p i / b i n / m p i f 7 7 "
2012-09-26 09:54:36 +02:00
export LD_LIBRARY_PATH=" %{_libdir} / m p i / g c c / $ m p i / % _ l i b "
2012-09-17 16:57:16 +02:00
%configure \
2012-09-26 09:54:36 +02:00
--docdir=%{_docdir} /%{name} \
2012-09-17 16:57:16 +02:00
--prefix=%{_libdir} /mpi/gcc/$mpi \
2012-09-29 15:32:19 +02:00
--exec-prefix=%{_libdir} /mpi/gcc/$mpi \
2012-09-17 16:57:16 +02:00
--bindir=%{_libdir} /mpi/gcc/$mpi/bin \
--libdir=%{_libdir} /mpi/gcc/$mpi/%_lib \
--datadir=%{_libdir} /mpi/gcc/$mpi/share \
--includedir=%{_libdir} /mpi/gcc/$mpi/include \
--disable-dependency-tracking \
%if 0%{?suse_version} > 1140
--enable-fortran \
2015-07-25 07:43:29 +02:00
--enable-fortran2003 \
2012-09-17 16:57:16 +02:00
%endif
2015-07-25 07:43:29 +02:00
--enable-unsupported \
2012-09-17 16:57:16 +02:00
--enable-hl \
--enable-shared \
2015-07-25 07:43:29 +02:00
--enable-threadsafe \
2012-09-17 16:57:16 +02:00
--enable-parallel \
--with-pthread
make %{?_smp_mflags}
2015-07-27 18:01:54 +02:00
popd
2012-09-17 16:57:16 +02:00
done
2012-03-09 21:23:35 +01:00
%install
2012-09-29 15:32:19 +02:00
# install serial and parallel builds, (the serial one will win in case of
# duplicate files)
for build_dir in %_mpi build; do
2012-09-26 09:54:36 +02:00
make install DESTDIR=" % b u i l d r o o t " -C " $ b u i l d _ d i r "
done
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
find " % b u i l d r o o t / %{_libdir} " -type f -name " * . l a " | xargs rm -f
2012-03-09 21:23:35 +01:00
find %{buildroot} %{_datadir} /hdf5_examples -type f \
| grep -v " . s h $ " | xargs chmod 644
2012-09-29 15:32:19 +02:00
# delete examples from parallel builds
rm -rf %{buildroot} %{_libdir} /mpi/gcc/*/share/hdf5_examples
2012-06-26 15:51:23 +02:00
%if 0%{?suse_version} >= 1110
2012-03-09 21:23:35 +01:00
%fdupes -s %{buildroot} /%{_datadir}
2012-06-26 15:51:23 +02:00
%endif
2012-03-09 21:23:35 +01:00
# rpm macro for version checking
mkdir -p %{buildroot} %{_sysconfdir} /rpm
cat > %{buildroot} %{_sysconfdir} /rpm/macros.hdf5 <<EOF
#
2015-07-27 18:01:54 +02:00
# RPM macros for hdf5 packaging
2012-03-09 21:23:35 +01:00
#
2015-07-27 18:01:54 +02:00
%_hdf5_sonum %{sonum}
2012-03-09 21:23:35 +01:00
%_hdf5_version %{version}
EOF
%check
2013-09-25 17:14:33 +02:00
%if 0%{?qemu_user_space_build}
# default timeout is 1200 seconds
export HDF5_ALARM_SECONDS=3600
%endif
2012-09-26 09:54:36 +02:00
make -C build check
# ignore errors for parallel builds
export HDF5_Make_Ignore=yes
for mpi in %_mpi; do
make -C $mpi check
done
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%post -n %{libname}-%{sonum} -p /sbin/ldconfig
%postun -n %{libname}-%{sonum} -p /sbin/ldconfig
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%post -n %{libname}_hl%{sonum} -p /sbin/ldconfig
%postun -n %{libname}_hl%{sonum} -p /sbin/ldconfig
2012-03-09 21:23:35 +01:00
2012-11-21 17:00:51 +01:00
%if 0%{?_openmpi}
2015-07-27 18:01:54 +02:00
%post -n %{libname}-%{sonum}-openmpi -p /sbin/ldconfig
%postun -n %{libname}-%{sonum}-openmpi -p /sbin/ldconfig
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%post -n %{libname}_hl%{sonum}-openmpi -p /sbin/ldconfig
%postun -n %{libname}_hl%{sonum}-openmpi -p /sbin/ldconfig
2012-11-21 17:00:51 +01:00
%endif
2012-09-17 16:57:16 +02:00
2012-11-21 17:00:51 +01:00
%if 0%{?_mvapich2}
2015-07-27 18:01:54 +02:00
%post -n %{libname}-%{sonum}-mvapich2 -p /sbin/ldconfig
%postun -n %{libname}-%{sonum}-mvapich2 -p /sbin/ldconfig
2012-09-17 16:57:16 +02:00
2015-07-27 18:01:54 +02:00
%post -n %{libname}_hl%{sonum}-mvapich2 -p /sbin/ldconfig
%postun -n %{libname}_hl%{sonum}-mvapich2 -p /sbin/ldconfig
2012-09-17 16:57:16 +02:00
%endif
2012-03-09 21:23:35 +01:00
%files
%defattr (-,root,root)
2012-03-12 20:12:59 +01:00
%{_bindir} /gif2h5
%{_bindir} /h52gif
%{_bindir} /h5copy
%{_bindir} /h5debug
%{_bindir} /h5diff
%{_bindir} /h5dump
%{_bindir} /h5import
%{_bindir} /h5jam
%{_bindir} /h5ls
%{_bindir} /h5mkgrp
%{_bindir} /h5perf_serial
%{_bindir} /h5redeploy
%{_bindir} /h5repack
%{_bindir} /h5repart
%{_bindir} /h5stat
%{_bindir} /h5unjam
2012-03-09 21:23:35 +01:00
2015-07-27 18:01:54 +02:00
%files -n %{libname}-%{sonum}
%defattr (-,root,root)
%doc COPYING ACKNOWLEDGMENTS README.txt
%doc release_docs/HISTORY-1_0-1_8_0_rc3.txt
%doc release_docs/HISTORY-1_8.txt
%doc release_docs/RELEASE.txt
2012-03-09 21:23:35 +01:00
%defattr (0755,root,root)
%{_libdir} /libhdf5.so.*
%{_libdir} /libhdf5_cpp.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /libhdf5_fortran.so.*
%endif
2015-07-27 18:01:54 +02:00
%files -n libhdf5_hl%{sonum}
2012-03-09 21:23:35 +01:00
%defattr (0755,root,root)
%{_libdir} /libhdf5_hl.so.*
%{_libdir} /libhdf5_hl_cpp.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /libhdf5hl_fortran.so.*
%endif
2015-07-27 18:01:54 +02:00
%files devel-data
%defattr (-,root,root,-)
%config (noreplace) %{_sysconfdir} /rpm/macros.hdf5
2012-03-09 21:23:35 +01:00
%files devel
%defattr (-,root,root)
2012-03-12 20:12:59 +01:00
%{_bindir} /h5c++
%{_bindir} /h5cc
%if 0%{?suse_version} > 1140
%{_bindir} /h5fc
%endif
2012-03-09 21:23:35 +01:00
%{_includedir} /*.h
%{_libdir} /*.so
2012-03-12 20:12:59 +01:00
%{_libdir} /*.settings
2012-03-09 21:23:35 +01:00
%if 0%{?suse_version} > 1140
%{_includedir} /*.mod
%endif
%files devel-static
%defattr (-,root,root)
%{_libdir} /*.a
%files examples
%defattr (-,root,root)
%{_datadir} /hdf5_examples
2012-11-21 17:00:51 +01:00
%if 0%{?_openmpi}
2012-09-17 16:57:16 +02:00
%files -n %{name}-openmpi
%defattr (-,root,root)
%{_libdir} /mpi/gcc/openmpi/bin/gif2h5
%{_libdir} /mpi/gcc/openmpi/bin/h52gif
%{_libdir} /mpi/gcc/openmpi/bin/h5copy
%{_libdir} /mpi/gcc/openmpi/bin/h5debug
%{_libdir} /mpi/gcc/openmpi/bin/h5diff
%{_libdir} /mpi/gcc/openmpi/bin/h5dump
%{_libdir} /mpi/gcc/openmpi/bin/h5import
%{_libdir} /mpi/gcc/openmpi/bin/h5jam
%{_libdir} /mpi/gcc/openmpi/bin/h5ls
%{_libdir} /mpi/gcc/openmpi/bin/h5mkgrp
%{_libdir} /mpi/gcc/openmpi/bin/h5perf
%{_libdir} /mpi/gcc/openmpi/bin/h5perf_serial
%{_libdir} /mpi/gcc/openmpi/bin/h5redeploy
%{_libdir} /mpi/gcc/openmpi/bin/h5repack
%{_libdir} /mpi/gcc/openmpi/bin/h5repart
%{_libdir} /mpi/gcc/openmpi/bin/h5stat
%{_libdir} /mpi/gcc/openmpi/bin/h5unjam
%{_libdir} /mpi/gcc/openmpi/bin/ph5diff
2015-07-27 18:01:54 +02:00
%files -n %{libname}-%{sonum}-openmpi
%defattr (-,root,root)
%doc COPYING ACKNOWLEDGMENTS README.txt
%doc release_docs/HISTORY-1_0-1_8_0_rc3.txt
%doc release_docs/HISTORY-1_8.txt
%doc release_docs/RELEASE.txt
2012-09-17 16:57:16 +02:00
%defattr (0755,root,root)
%{_libdir} /mpi/gcc/openmpi/%_lib/libhdf5.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/openmpi/%_lib/libhdf5_fortran.so.*
%endif
2015-07-27 18:01:54 +02:00
%files -n libhdf5_hl%{sonum}-openmpi
2012-09-17 16:57:16 +02:00
%defattr (0755,root,root)
%{_libdir} /mpi/gcc/openmpi/%_lib/libhdf5_hl.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/openmpi/%_lib/libhdf5hl_fortran.so.*
%endif
%files openmpi-devel
%defattr (-,root,root)
%{_libdir} /mpi/gcc/openmpi/bin/h5pcc
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/openmpi/bin/h5pfc
%endif
%{_libdir} /mpi/gcc/openmpi/include/*.h
%{_libdir} /mpi/gcc/openmpi/%_lib/*.so
%{_libdir} /mpi/gcc/openmpi/%_lib/*.settings
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/openmpi/include/*.mod
%endif
%files openmpi-devel-static
%defattr (-,root,root)
%{_libdir} /mpi/gcc/openmpi/%_lib/*.a
2012-11-21 17:00:51 +01:00
%endif
2012-09-17 16:57:16 +02:00
2012-11-21 17:00:51 +01:00
%if 0%{?_mvapich2}
2012-09-17 16:57:16 +02:00
%files -n %{name}-mvapich2
%defattr (-,root,root)
%{_libdir} /mpi/gcc/mvapich2/bin/gif2h5
%{_libdir} /mpi/gcc/mvapich2/bin/h52gif
%{_libdir} /mpi/gcc/mvapich2/bin/h5copy
%{_libdir} /mpi/gcc/mvapich2/bin/h5debug
%{_libdir} /mpi/gcc/mvapich2/bin/h5diff
%{_libdir} /mpi/gcc/mvapich2/bin/h5dump
%{_libdir} /mpi/gcc/mvapich2/bin/h5import
%{_libdir} /mpi/gcc/mvapich2/bin/h5jam
%{_libdir} /mpi/gcc/mvapich2/bin/h5ls
%{_libdir} /mpi/gcc/mvapich2/bin/h5mkgrp
%{_libdir} /mpi/gcc/mvapich2/bin/h5perf
%{_libdir} /mpi/gcc/mvapich2/bin/h5perf_serial
%{_libdir} /mpi/gcc/mvapich2/bin/h5redeploy
%{_libdir} /mpi/gcc/mvapich2/bin/h5repack
%{_libdir} /mpi/gcc/mvapich2/bin/h5repart
%{_libdir} /mpi/gcc/mvapich2/bin/h5stat
%{_libdir} /mpi/gcc/mvapich2/bin/h5unjam
%{_libdir} /mpi/gcc/mvapich2/bin/ph5diff
2015-07-27 18:01:54 +02:00
%files -n %{libname}-%{sonum}-mvapich2
%defattr (-,root,root)
%doc COPYING ACKNOWLEDGMENTS README.txt
%doc release_docs/HISTORY-1_0-1_8_0_rc3.txt
%doc release_docs/HISTORY-1_8.txt
%doc release_docs/RELEASE.txt
2012-09-17 16:57:16 +02:00
%defattr (0755,root,root)
%{_libdir} /mpi/gcc/mvapich2/%_lib/libhdf5.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/mvapich2/%_lib/libhdf5_fortran.so.*
%endif
2015-07-27 18:01:54 +02:00
%files -n libhdf5_hl%{sonum}-mvapich2
2012-09-17 16:57:16 +02:00
%defattr (0755,root,root)
%{_libdir} /mpi/gcc/mvapich2/%_lib/libhdf5_hl.so.*
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/mvapich2/%_lib/libhdf5hl_fortran.so.*
%endif
%files mvapich2-devel
%defattr (-,root,root)
%{_libdir} /mpi/gcc/mvapich2/bin/h5pcc
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/mvapich2/bin/h5pfc
%endif
%{_libdir} /mpi/gcc/mvapich2/include/*.h
%{_libdir} /mpi/gcc/mvapich2/%_lib/*.so
%{_libdir} /mpi/gcc/mvapich2/%_lib/*.settings
%if 0%{?suse_version} > 1140
%{_libdir} /mpi/gcc/mvapich2/include/*.mod
%endif
%files mvapich2-devel-static
%defattr (-,root,root)
%{_libdir} /mpi/gcc/mvapich2/%_lib/*.a
%endif
2012-03-09 21:23:35 +01:00
%changelog