File ior.spec of Package ior

#
# spec file for package ior
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           ior
Version:        3.3.0
Release:        0
Summary:        Parallel filesystem I/O benchmark
License:        GPL-2.0-only
URL:            https://github.com/hpc/ior
Source:         https://github.com/hpc/ior/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  hdf5-openmpi4-devel
BuildRequires:  libs3-devel
BuildRequires:  openmpi-macros-devel
BuildRequires:  zlib-devel
Provides:       mdtest = %{version}
Obsoletes:      mdtest < %{version}
%ifarch  x86_64 aarch64 ppc64le s390x
BuildRequires:  librbd-devel
%endif

%description
Parallel filesystem I/O benchmark

%prep
%autosetup
chmod -x README.md doc/USER_GUIDE COPYRIGHT

%build
%{setup_openmpi}
%configure \
  --with-mpiio \
  --with-posix \
  --with-hdf5 \
%ifarch  x86_64 aarch64 ppc64le s390x
  --with-rados
%endif
  %{nil}
%make_build

%install
%make_install
rm %{buildroot}%{_datadir}/USER_GUIDE
rm %{buildroot}%{_libdir}/libaiori.a

%files
%doc NEWS README.md doc/USER_GUIDE
%license COPYRIGHT
%{_bindir}/%{name}
%{_bindir}/mdtest
%{_mandir}/man1/mdtest.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by