From 8cd7f5b38375c0d1d4df70e681170ec6396e707e Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 27 Aug 2018 06:41:24 +0300 Subject: [PATCH] Add support for RISC-V (riscv64) Signed-off-by: David Abdurachmanov --- elpa.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/elpa.spec b/elpa.spec index a09498a..e5be567 100644 --- a/elpa.spec +++ b/elpa.spec @@ -1,4 +1,4 @@ -%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64 s390x} +%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64 s390x riscv64} %ifnarch %{openblas_arches} # matches openblas/scalapack ExclusiveArch %global with_atlas 1 @@ -15,7 +15,7 @@ Summary: High-performance library for parallel solution of eigenvalue problems Name: elpa Version: 2017.05.003 -Release: 3%{?dist} +Release: 3.0.riscv64%{?dist} URL: https://elpa.mpcdf.mpg.de/software Source0: https://elpa.mpcdf.mpg.de/html/Releases/%{version}/elpa-%{version}.tar.gz Source1: https://elpa.mpcdf.mpg.de/html/Releases/%{version}/elpa-%{version}.tar.gz.asc @@ -35,7 +35,9 @@ BuildRequires: openblas-devel BuildRequires: gcc-gfortran BuildRequires: gnupg2 BuildRequires: libtool +%ifnarch riscv64 BuildRequires: /usr/bin/execstack +%endif %if %{with papi} BuildRequires: papi-devel %endif @@ -232,7 +234,9 @@ for s in '' _openmp ; do libdir=%{_libdir} fmoddir=%{_fmoddir} fi +%ifnarch riscv64 execstack -c .libs/libelpa${s}.so.%{sover}.* %{buildroot}${libdir}/libelpa${s}.so.%{sover}.* +%endif mkdir -p %{buildroot}${fmoddir} for f in $(ls -1 %{buildroot}%{_includedir}/elpa${s}-%{version}/modules/*.mod) ; do m=$(basename ${f} .mod) @@ -348,6 +352,9 @@ done %{_fmoddir}/openmpi*/*.mod %changelog +* Mon Aug 27 2018 David Abdurachmanov - 2017.05.003-3.0.riscv64 +- Add support for RISC-V (riscv64) + * Thu Jul 12 2018 Fedora Release Engineering - 2017.05.003-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild