- Fix previous commit for static build on aarch64
- Run %fdupes on man folder as suggested by rpmlint OBS-URL: https://build.opensuse.org/package/show/science/lapack?expand=0&rev=53
This commit is contained in:
parent
9f78bb124b
commit
e2ef7e9055
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 4 16:48:42 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Fix previous commit for static build on aarch64
|
||||||
|
- Run %fdupes on man folder as suggested by rpmlint
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 4 09:42:18 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Mon Nov 4 09:42:18 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
10
lapack.spec
10
lapack.spec
@ -49,6 +49,7 @@ Patch1: fix-lapack-testing.patch
|
|||||||
Source98: lapack.rpmlintrc
|
Source98: lapack.rpmlintrc
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
@ -279,10 +280,6 @@ This package provides the man pages for BLAS, CBLAS, and LAPACK.
|
|||||||
sed -i -E '1{s@#!/usr/bin/env python[0-9]*@#!%{_bindir}/python%{python3_version}@}' lapack_testing.py
|
sed -i -E '1{s@#!/usr/bin/env python[0-9]*@#!%{_bindir}/python%{python3_version}@}' lapack_testing.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch aarch64
|
|
||||||
# https://github.com/scipy/scipy/issues/21475#issuecomment-2454203196
|
|
||||||
%global optflags %{optflags} "-ffp-contract=off"
|
|
||||||
%endif
|
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
%if 0%{?sle_version:%sle_version} >= 150000
|
%if 0%{?sle_version:%sle_version} >= 150000
|
||||||
%global precflags "-mfpmath=sse"
|
%global precflags "-mfpmath=sse"
|
||||||
@ -295,6 +292,10 @@ sed -i -E '1{s@#!/usr/bin/env python[0-9]*@#!%{_bindir}/python%{python3_version}
|
|||||||
%if %{without shared}
|
%if %{without shared}
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch aarch64
|
||||||
|
# https://github.com/scipy/scipy/issues/21475#issuecomment-2454203196
|
||||||
|
%global optflags %{optflags} "-ffp-contract=off" %{_lto_cflags}
|
||||||
|
%endif
|
||||||
%global optflags_f %{optflags}
|
%global optflags_f %{optflags}
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
@ -345,6 +346,7 @@ mv %{__builddir}/DOCS/man/man3/isnan{,-lapack}.3
|
|||||||
# Install man pages
|
# Install man pages
|
||||||
mkdir -p %{buildroot}%{_mandir}
|
mkdir -p %{buildroot}%{_mandir}
|
||||||
cp -r %{__builddir}/DOCS/man/man3 %{buildroot}%{_mandir}/
|
cp -r %{__builddir}/DOCS/man/man3 %{buildroot}%{_mandir}/
|
||||||
|
%fdupes -s %{buildroot}/%{_mandir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user