Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDF5: Version 1.14.1 with hdf5 cxx library enabled #8541

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions hdf5.spec
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
### RPM external hdf5 1.10.6
Source: git+https://github.com/HDFGroup/%{n}.git?obj=master/5b9cf732caab9daa6ed1e00f2df4f5a792340196&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz
### RPM external hdf5 1.14.1
%define hdf5_tag hdf5-%(echo %realversion | tr '.' '_')
Source: https://github.com/HDFGroup/hdf5/archive/refs/tags/%{hdf5_tag}.tar.gz
Requires: zlib openmpi

%prep
%setup -n %{n}-%{realversion}
%setup -n %{n}-%{hdf5_tag}

%build
rm -f ./bin/config.{sub,guess}
%get_config_sub ./bin/config.sub
%get_config_guess ./bin/config.guess
chmod +x ./bin/config.{sub,guess}
./configure --enable-shared --enable-parallel --with-zlib=${ZLIB_ROOT} --prefix %{i}
make %{makeprocesses} VERBOSE=1
CXXFLAGS=-I${OPENMPI_ROOT}/include \
LDFLAGS="-L${OPENMPI_ROOT}/lib -lmpi" \
./configure --prefix %{i} \
--disable-sharedlib-rpath \
--disable-static--enable-shared \
--enable-parallel \
--enable-cxx --enable-unsupported --with-zlib=${ZLIB_ROOT}

make %{makeprocesses} V=1

%install
make install
make install V=1

%post
%{relocateConfig}bin/h5pcc
Expand Down
5 changes: 5 additions & 0 deletions scram-tools.file/tools/hdf5/hdf5-cpp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<tool name="hdf5-cpp" version="@TOOL_VERSION@">
<use name="hdf5"/>
<lib name="hdf5_cpp"/>
<lib name="hdf5_hl_cpp"/>
</tool>