Accepting request 851870 from home:eeich:branches:science:HPC
- Preliminary %check stage. A number of checks fail currently. These need to be looked at. OBS-URL: https://build.opensuse.org/request/show/851870 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpiP?expand=0&rev=35
This commit is contained in:
30
mpiP.spec
30
mpiP.spec
@@ -264,14 +264,16 @@ Release: 0
|
||||
URL: https://github.com/LLNL/mpiP
|
||||
Source0: https://github.com/LLNL/mpiP/releases/download/%{version}/mpip-%{version}.tgz#/%{pname}-%{version}.tgz
|
||||
Patch1: mpip.unwinder.patch
|
||||
Patch2: Add-return-value-to-non-void-function.patch
|
||||
|
||||
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
|
||||
BuildRequires: %{mpi_family}%{?mpi_ver}-%{compiler_family}%{?c_f_ver}-hpc-macros-devel
|
||||
BuildRequires: binutils-devel
|
||||
BuildRequires: dejagnu
|
||||
BuildRequires: libunwind-devel
|
||||
BuildRequires: lua-lmod
|
||||
BuildRequires: python
|
||||
BuildRequires: slurm-node
|
||||
#BuildRequires: slurm-node
|
||||
BuildRequires: suse-hpc
|
||||
%{?hpc_requires}
|
||||
|
||||
@@ -305,6 +307,8 @@ Group: Development/Libraries/C and C++
|
||||
%description devel-static
|
||||
mpiP is a profiling library for MPI applications.
|
||||
|
||||
This package contains the static libraries.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for the mpiP profiling library
|
||||
Group: Documentation/Other
|
||||
@@ -318,16 +322,18 @@ This contains the documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pname}-%{version}
|
||||
%patch1 -p1
|
||||
%autopatch -p1
|
||||
sed -i -e "/-shared -o \$@/s#\(\${LDFLAGS}\)#\1 -Wl,-soname,\$@#" Makefile.in
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
%hpc_setup
|
||||
CC=mpicc
|
||||
CXX=mpicxx
|
||||
FC=mpif90
|
||||
CFLAGS="-D__DATE__=\\\"NODATE\\\" -D__TIME__=\\\"NOTIME\\\""
|
||||
export LDFLAGS=-Wl,-soname,libmpiP.so
|
||||
export CC=mpicc
|
||||
export CXX=mpicxx
|
||||
export FC=mpifort
|
||||
export F77=$FC
|
||||
export CFLAGS="-D__DATE__=\\\"NODATE\\\" -D__TIME__=\\\"NOTIME\\\""
|
||||
export FFLAGS="-std=legacy"
|
||||
%hpc_configure \
|
||||
--enable-demangling \
|
||||
%ifarch aarch64
|
||||
@@ -383,6 +389,16 @@ setenv %{hpc_upcase %pname}_LIB %{hpc_libdir}
|
||||
|
||||
EOF
|
||||
|
||||
%check
|
||||
%hpc_setup
|
||||
export CC=mpicc
|
||||
export CXX=mpicxx
|
||||
export FC=mpifort
|
||||
export F77=$FC
|
||||
export FFLAGS="-std=legacy"
|
||||
LD_LIBRARY_PATH=$(pwd)${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
make FFLAGS+=${FFLAGS} check || exit 0
|
||||
|
||||
%postun
|
||||
%hpc_module_delete_if_default
|
||||
|
||||
|
Reference in New Issue
Block a user