Fix s390x builds

This commit is contained in:
sagitter 2016-10-25 15:05:57 +02:00
parent beeaff3d82
commit 1e5bc60e9b

View File

@ -4,7 +4,7 @@
# Testing ?
%bcond_without check
## Debug builds
## Debug builds ?
%bcond_with debug
#
@ -13,10 +13,6 @@
%{?el7:%global _pkgdocdir %{_docdir}/%{name}}
#
# No MPI support on these arches
%ifnarch s390 s390x
%bcond_without openmpi
%endif
# No MPICH support on these arches
%if 0%{?rhel} || 0%{?rhel} < 7
%ifarch %{power64}
@ -31,6 +27,13 @@
%if 0%{?fedora} || 0%{?rhel} >= 7
%bcond_without mpich
%endif
%ifarch s390x
%if 0%{?fedora} >= 25
%bcond_without openmpi
%else
%bcond_with openmpi
%endif
%endif
# We are using blas/lapack on s390x architectures only
# since openblas is not provided
@ -71,9 +74,14 @@
%if %{with openmpi}
%bcond_without mpi
%bcond_without sundials
%ifarch s390x
%bcond_with scalapack
%bcond_with mumps
%else
%bcond_without scalapack
%bcond_without ptscotch
%bcond_without mumps
%endif
%bcond_without ptscotch
%bcond_without hypre
%global _incmpidir %{_includedir}/openmpi-%{_arch}
@ -83,9 +91,14 @@
%if %{with mpich}
%bcond_without mpi
%bcond_without sundials
%ifarch s390x
%bcond_with scalapack
%bcond_with mumps
%else
%bcond_without scalapack
%bcond_without ptscotch
%bcond_without mumps
%endif
%bcond_without ptscotch
%bcond_without hypre
%global _incmpichdir %{_includedir}/mpich-%{_arch}
@ -115,7 +128,7 @@
Name: petsc
Summary: Portable Extensible Toolkit for Scientific Computation
Version: 3.7.4
Release: 9%{?dist}
Release: 10%{?dist}
License: BSD
URL: https://www.mcs.anl.gov/petsc
Source0: http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-%{version}.tar.gz
@ -870,6 +883,9 @@ make -C buildmpich_dir test
%endif
%changelog
* Tue Oct 25 2016 Antonio Trande <sagitter@fedoraproject.org> - 3.7.4-10
- Fix s390 builds
* Mon Oct 24 2016 Antonio Trande <sagitter@fedoraproject.org> - 3.7.4-9
- Build 64bit-int libs (bz#1382916)