import openblas-0.3.15-6.el8
This commit is contained in:
parent
6293654834
commit
3ad61eceb6
@ -2,8 +2,8 @@
|
|||||||
# Version of bundled lapack
|
# Version of bundled lapack
|
||||||
%global lapackver 3.9.1
|
%global lapackver 3.9.1
|
||||||
|
|
||||||
# Use strip from gcc-toolset-11
|
# Use strip from gcc-toolset-12
|
||||||
%global __strip "scl enable gcc-toolset-11 -- strip"
|
%global __strip "scl enable gcc-toolset-12 -- strip"
|
||||||
|
|
||||||
# DO NOT "CLEAN UP" OR MODIFY THIS SPEC FILE WITHOUT ASKING THE
|
# DO NOT "CLEAN UP" OR MODIFY THIS SPEC FILE WITHOUT ASKING THE
|
||||||
# MAINTAINER FIRST!
|
# MAINTAINER FIRST!
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.15
|
Version: 0.3.15
|
||||||
Release: 4%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2
|
Summary: An optimized BLAS library based on GotoBLAS2
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -40,9 +40,9 @@ Patch5: openblas-0.3.15-power-optimize.patch
|
|||||||
Patch6: openblas-CVE-2021-4048.patch
|
Patch6: openblas-CVE-2021-4048.patch
|
||||||
|
|
||||||
BuildRequires: scl-utils
|
BuildRequires: scl-utils
|
||||||
BuildRequires: gcc-toolset-11-gcc
|
BuildRequires: gcc-toolset-12-gcc
|
||||||
BuildRequires: gcc-toolset-11-gcc-gfortran
|
BuildRequires: gcc-toolset-12-gcc-gfortran
|
||||||
BuildRequires: gcc-toolset-11-annobin-plugin-gcc
|
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
|
|
||||||
@ -344,8 +344,8 @@ rm -rf netliblapack64
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Enable gcc-toolset-11
|
# Enable gcc-toolset-12
|
||||||
source scl_source enable gcc-toolset-11
|
source scl_source enable gcc-toolset-12
|
||||||
|
|
||||||
%if !%{lapacke}
|
%if !%{lapacke}
|
||||||
LAPACKE="NO_LAPACKE=1"
|
LAPACKE="NO_LAPACKE=1"
|
||||||
@ -380,7 +380,7 @@ TARGET="TARGET=POWER7 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
|||||||
TARGET="TARGET=POWER8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
TARGET="TARGET=POWER8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
@ -434,12 +434,12 @@ make -C openmp64_ $TARGET USE_THREAD=1 USE_OPENMP=1 FC=gfortran CC=gcc COMMON_
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Enable gcc-toolset-11
|
# Enable gcc-toolset-12
|
||||||
source scl_source enable gcc-toolset-11
|
source scl_source enable gcc-toolset-12
|
||||||
|
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
# Install serial library and headers
|
# Install serial library and headers
|
||||||
make -C serial USE_THREAD=0 PREFIX=%{buildroot} OPENBLAS_LIBRARY_DIR=%{buildroot}%{_libdir} OPENBLAS_INCLUDE_DIR=%{buildroot}%{_includedir}/%name OPENBLAS_BINARY_DIR=%{buildroot}%{_bindir} OPENBLAS_CMAKE_DIR=%{buildroot}%{_libdir}/cmake install
|
make -C serial USE_THREAD=0 DESTDIR=%{buildroot} OPENBLAS_LIBRARY_DIR=%{_libdir} OPENBLAS_INCLUDE_DIR=%{_includedir}/%name OPENBLAS_BINARY_DIR=%{_bindir} OPENBLAS_CMAKE_DIR=%{_libdir}/cmake install
|
||||||
|
|
||||||
# Copy lapacke include files
|
# Copy lapacke include files
|
||||||
%if %{with system_lapack} && %{lapacke}
|
%if %{with system_lapack} && %{lapacke}
|
||||||
@ -455,6 +455,9 @@ suffix=""
|
|||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
suffix="_armv7"
|
suffix="_armv7"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch aarch64
|
||||||
|
suffix="_armv8"
|
||||||
|
%endif
|
||||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
||||||
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||||
if [[ "$suffix" != "" ]]; then
|
if [[ "$suffix" != "" ]]; then
|
||||||
@ -578,8 +581,6 @@ done
|
|||||||
|
|
||||||
# Get rid of generated CMake config
|
# Get rid of generated CMake config
|
||||||
rm -rf %{buildroot}%{_libdir}/cmake
|
rm -rf %{buildroot}%{_libdir}/cmake
|
||||||
# Get rid of generated pkgconfig
|
|
||||||
rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -651,6 +652,8 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
|
%{_libdir}/pkgconfig/
|
||||||
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
%{_libdir}/lib%{name}o.so
|
%{_libdir}/lib%{name}o.so
|
||||||
%{_libdir}/lib%{name}p.so
|
%{_libdir}/lib%{name}p.so
|
||||||
@ -680,6 +683,15 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 16 2023 Matej Mužila <mmuzila@redhat.com> - 0.3.15-6
|
||||||
|
- Include openblas.pc
|
||||||
|
- Resolves: #2115722
|
||||||
|
|
||||||
|
* Wed Feb 15 2023 Nikola Forró <nforro@redhat.com> - 0.3.15-5
|
||||||
|
- Disable dynamic CPU detection on aarch64
|
||||||
|
- Use gcc-toolset-12
|
||||||
|
- Resolves: #2170398
|
||||||
|
|
||||||
* Wed Jun 15 2022 Matej Mužila <mmuzila@redhat.com> - 0.3.15-4
|
* Wed Jun 15 2022 Matej Mužila <mmuzila@redhat.com> - 0.3.15-4
|
||||||
- Fix out-of-bounds read in *larrv
|
- Fix out-of-bounds read in *larrv
|
||||||
- Resolves: CVE-2021-4048
|
- Resolves: CVE-2021-4048
|
||||||
|
Loading…
Reference in New Issue
Block a user