rebuilt with 64 bit interface library and DYNAMIC_ARCH to fix sigill crash seen with digikam [release 0.3.28-2mamba;Sat Dec 07 2024]

This commit is contained in:
Silvan Calarco 2024-12-08 12:11:14 +01:00
parent 91493f9735
commit 5df8c32c2a

View File

@ -1,6 +1,6 @@
Name: openblas
Version: 0.3.28
Release: 1mamba
Release: 2mamba
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
Group: System/Libraries
Vendor: openmamba
@ -10,12 +10,10 @@ URL: https://www.openblas.net
Source: https://github.com/xianyi/OpenBLAS.git/v%{version}/OpenBLAS-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: gcc-fortran
BuildRequires: glibc-devel
BuildRequires: libgcc
%ifnarch arm aarch64
BuildRequires: libquadmath-devel
%endif
BuildRequires: libgfortran
BuildRequires: libgomp-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
@ -35,11 +33,25 @@ This package contains shared libraries for %{name}.
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}64
Group: System/Libraries
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version (64 bit interface)
%description -n lib%{name}64
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version (64 bit interface).
This package contains shared libraries for %{name}.
%package -n lib%{name}64-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name}64 = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}64-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
@ -48,23 +60,55 @@ This package contains libraries and header files for developing applications tha
%build
%cmake -d build \
\
%ifarch arm
-DCMAKE_ASM_FLAGS="%{optflags} -mfpu=neon-vfpv3"
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DNO_AFFINITY=ON \
-DUSE_OPENMP=1 \
-DNO_WARMUP=1 \
%ifarch %{ix86} x86_64
-DTARGET=CORE2 \
%endif
%ifarch aarch64
-DTARGET=ARMV8 \
%endif
-DNUM_THREADS=64 \
-DDYNAMIC_ARCH=ON
%make
cd ..
%ifarch x86_64 aarch64
%cmake -d build64 \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DNO_AFFINITY=ON \
-DUSE_OPENMP=1 \
-DNO_WARMUP=1 \
%ifarch %{ix86} x86_64
-DTARGET=CORE2 \
%endif
%ifarch aarch64
-DTARGET=ARMV8 \
%endif
-DNUM_THREADS=64 \
-DDYNAMIC_ARCH=ON \
-DINTERFACE64=1
%make
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%ifarch x86_64 aarch64
%makeinstall -C build64
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libopenblas.so.*
@ -80,8 +124,27 @@ This package contains libraries and header files for developing applications tha
%{_libdir}/cmake/OpenBLAS/OpenBLAS*.cmake
%doc README.md
%ifarch aarch64 x86_64
%files -n lib%{name}64
%defattr(-,root,root)
%{_libdir}/libopenblas_64.so.*
%doc LICENSE
%files -n lib%{name}64-devel
%defattr(-,root,root)
%dir %{_includedir}/openblas64
%{_includedir}/openblas64/*.h
%{_libdir}/libopenblas_64.so
%{_libdir}/pkgconfig/openblas64.pc
%dir %{_libdir}/cmake/OpenBLAS64
%{_libdir}/cmake/OpenBLAS64/OpenBLAS*.cmake
%doc README.md
%endif
%changelog
* Sat Dec 07 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.28-2mamba
- rebuilt with 64 bit interface library and DYNAMIC_ARCH to fix sigill crash seen with digikam
* Fri Aug 09 2024 Automatic Build System <autodist@openmamba.org> 0.3.28-1mamba
- automatic version update by autodist