Drop unexpected macro file

OBS-URL: https://build.opensuse.org/package/show/science:HPC/openmpi4?expand=0&rev=3
This commit is contained in:
Nicolas Morey-Chaisemartin 2020-03-19 09:11:35 +00:00 committed by Git OBS Bridge
parent b2e374890c
commit 4c599c6422

View File

@ -1,156 +0,0 @@
%mpi_flavor @MPI_FLAVOR@
%mpi_vers @MPI_VERS@
%mpi_vers_nodots @MPI_VERS_NODOTS@
%mpi_major @MPI_MAJOR@
%mpi_flavor_ver @MPI_FLAVOR_VER@
%mpi_base %{_libdir}/mpi/gcc/
%mpi_prefix %{mpi_base}/@MPI_FLAVOR_VER@
%mpi_exec_prefix %{mpi_prefix}
%mpi_sysconfdir %{_sysconfdir}
%mpi_localstatedir %{_localstatedir}
%mpi_sharedstatedir %{_sharedstatedir}
%mpi_bindir %{mpi_prefix}/bin
%mpi_datadir %{mpi_prefix}/share
%mpi_includedir %{mpi_prefix}/include
%mpi_libdir %{mpi_prefix}/%{_lib}
%mpi_libexecdir %{mpi_prefix}/lib
%mpi_sbindir %{mpi_prefix}/sbin
%mpi_docdir %{mpi_datadir}/doc/packages
%mpi_infodir %{mpi_datadir}/info
%mpi_mandir %{mpi_datadir}/man
%mpi_pkgconfigdir %{mpi_libdir}/pkgconfig
%mpi_cmake_dir %{mpi_datadir}/cmake
%mpi_cmake_moddir %{mpi_cmake_moddir}/Modules
# ----------------------------------------------------
%mpi_init source %{mpi_bindir}/mpivars.sh
%mpi_run %{mpi_bindir}/mpirun
%mpi_set_compilers \
export CC="%{mpi_bindir}/mpicc" \
export CXX="%{mpi_bindir}/mpicxx" \
export F77="%{mpi_bindir}/mpif77" \
export FC="%{mpi_bindir}/mpif90" \
export MPICC=$CC \
export MPICXX=$CXX \
export MPIF77=$F77 \
export MPIFC=$FC \
%{nil}
#
# Autotools
#
%mpi_configure \
%{mpi_init} \
%{mpi_set_compilers} \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
%{_configure} --host=%{_host} --build=%{_build} \\\
%{?_program_prefix:--program-prefix=%{_program_prefix}} \\\
--disable-dependency-tracking \\\
--prefix=%{mpi_prefix} \\\
--exec-prefix=%{mpi_exec_prefix} \\\
--bindir=%{mpi_bindir} \\\
--sbindir=%{mpi_sbindir} \\\
--sysconfdir=%{mpi_sysconfdir} \\\
--datadir=%{mpi_datadir} \\\
--includedir=%{mpi_includedir} \\\
--libdir=%{mpi_libdir} \\\
--libexecdir=%{mpi_libexecdir} \\\
--localstatedir=%{mpi_localstatedir} \\\
--sharedstatedir=%{mpi_sharedstatedir} \\\
--mandir=%{mpi_mandir} \\\
--infodir=%{mpi_infodir}
#
# man pages
#
# %{mpi_compress_man <num>} compress man page in %mpi_mandir/man<num>
%mpi_compress_man() \
[ -n "%{*}" ] || { echo "no man page list!" >&2 ; exit 1; } \
for j in %{*}; do \
for i in $(ls %{buildroot}%{mpi_mandir}/man${j}/*.${j}* | grep -v ".*\.gz$"); \
do \
test -L $i && continue \
gzip $i \
done; \
done
# wraps macro from macros.cmake - paths replaced by MPI paths.
%mpi_cmake \
%{!?cmake:%{error: please include macros.cmake}} \
%{mpi_init} \
%{mpi_set_compilers} \
%{?cmake: \
%global __cmake %{_bindir}/cmake \
%define _bindir %{mpi_bindir} \
%define _datadir %{mpi_datadir} \
%define _includedir %{mpi_includedir} \
%define _infodir %{mpi_infodir} \
%define _libdir %{mpi_libdir} \
%define _libexecdir %{mpi_libexecdir} \
%define _localstatedir %{mpi_localstatedir} \
%define _mandir %{mpi_mandir} \
%define _prefix %{mpi_prefix} \
%define _sbindir %{mpi_sbindir} \
%define _sharedstatedir %{mpi_sharedstatedir} \
%define _sysconfdir %{mpi_sysconfdir} \
%cmake \\\
%undefine __cmake \\\
%undefine _bindir \\\
%undefine _datadir \\\
%undefine _includedir \\\
%undefine _infodir \\\
%undefine _libdir \\\
%undefine _libexecdir \\\
%undefine _localstatedir \\\
%undefine _mandir \\\
%undefine _prefix \\\
%undefine _sbindir \\\
%undefine _sharedstatedir \\\
%undefine _sysconfdir \\\
}
# wraps macro from macros.meson - paths replaced by MPI paths.
%mpi_meson \
%{!?meson:%{error: please include macros.meson}} \
%{mpi_init} \
%{mpi_set_compilers} \
%{?meson: \
%global __meson %{_bindir}/meson \
%define _bindir %{mpi_bindir} \
%define _datadir %{mpi_datadir} \
%define _includedir %{mpi_includedir} \
%define _infodir %{mpi_infodir} \
%define _libdir %{mpi_libdir} \
%define _libexecdir %{mpi_libexecdir} \
%define _localstatedir %{mpi_localstatedir} \
%define _mandir %{mpi_mandir} \
%define _prefix %{mpi_prefix} \
%define _sbindir %{mpi_sbindir} \
%define _sharedstatedir %{mpi_sharedstatedir} \
%define _sysconfdir %{mpi_sysconfdir} \
%meson \\\
%undefine __meson \\\
%undefine _bindir \\\
%undefine _datadir \\\
%undefine _includedir \\\
%undefine _infodir \\\
%undefine _libdir \\\
%undefine _libexecdir \\\
%undefine _localstatedir \\\
%undefine _mandir \\\
%undefine _prefix \\\
%undefine _sbindir \\\
%undefine _sharedstatedir \\\
%undefine _sysconfdir \\\
}