update to 3.10.3 [release 3.10.3-1mamba;Wed Feb 24 2021]
This commit is contained in:
parent
4f4f019703
commit
d0f8b69ccc
41
atlas-Makefile
Normal file
41
atlas-Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
include Make.inc
|
||||
|
||||
all: libatlas.so libf77blas.so libptf77blas.so libstcblas.so libptcblas.so \
|
||||
libblas.so libcblas.so liblapack.so.3.6.1 libptlapack.so.3.6.1 liblapack.so.3
|
||||
|
||||
libatlas.so: libatlas.a
|
||||
ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \
|
||||
--no-whole-archive -lc $(LIBS)
|
||||
|
||||
libf77blas.so : libf77blas.a libatlas.so
|
||||
ld $(LDFLAGS) -shared -soname libf77blas.so.3 -o $@ --whole-archive \
|
||||
libf77blas.a --no-whole-archive $(F77SYSLIB) -L. -latlas
|
||||
|
||||
libptf77blas.so : libptf77blas.a libatlas.so
|
||||
ld $(LDFLAGS) -shared -soname libblas.so.3 -o $@ --whole-archive \
|
||||
libptf77blas.a --no-whole-archive $(F77SYSLIB) -L. -latlas
|
||||
|
||||
libstcblas.so : libcblas.a libatlas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname libstcblas.so -o $@ --whole-archive \
|
||||
libcblas.a -L. -latlas -lblas
|
||||
|
||||
libptcblas.so : libptcblas.a libatlas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname libcblas.so -o $@ --whole-archive \
|
||||
libptcblas.a -L. -latlas -lblas
|
||||
|
||||
libblas.so: libptf77blas.so
|
||||
ln -s $< $@
|
||||
|
||||
libcblas.so: libptcblas.so
|
||||
ln -s $< $@
|
||||
|
||||
liblapack.so.3.6.1 : liblapack.a libstcblas.so libf77blas.so
|
||||
ld $(LDFLAGS) -shared -soname libstlapack.so.3 -o $@ --whole-archive \
|
||||
liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lstcblas -lf77blas
|
||||
|
||||
libptlapack.so.3.6.1 : libptlapack.a libcblas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \
|
||||
libptlapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas
|
||||
|
||||
liblapack.so.3: libptlapack.so.3.6.1
|
||||
ln -s $< $@
|
41
atlas-Makefile-x86
Normal file
41
atlas-Makefile-x86
Normal file
@ -0,0 +1,41 @@
|
||||
include Make.inc
|
||||
|
||||
all: libatlas.so libf77blas.so libptf77blas.so libstcblas.so libptcblas.so \
|
||||
libblas.so libcblas.so liblapack.so.3.6.1 libptlapack.so.3.6.1 liblapack.so.3
|
||||
|
||||
libatlas.so: libatlas.a
|
||||
ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \
|
||||
--no-whole-archive -lc $(LIBS)
|
||||
|
||||
libf77blas.so : libf77blas.a libatlas.so
|
||||
ld $(LDFLAGS) -shared -soname libf77blas.so.3 -o $@ --whole-archive \
|
||||
libf77blas.a --no-whole-archive $(F77SYSLIB) -L. -lc -latlas
|
||||
|
||||
libptf77blas.so : libptf77blas.a libatlas.so
|
||||
ld $(LDFLAGS) -shared -soname libblas.so.3 -o $@ --whole-archive \
|
||||
libptf77blas.a --no-whole-archive $(F77SYSLIB) -L. -lc -latlas
|
||||
|
||||
libstcblas.so : libcblas.a libatlas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname libstcblas.so -o $@ --whole-archive \
|
||||
libcblas.a --no-whole-archive $(F77SYSLIB) -L. -lc -latlas -lblas
|
||||
|
||||
libptcblas.so : libptcblas.a libatlas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname libcblas.so -o $@ --whole-archive \
|
||||
libptcblas.a --no-whole-archive $(F77SYSLIB) -L. -lc -latlas -lblas
|
||||
|
||||
libblas.so: libptf77blas.so
|
||||
ln -s $< $@
|
||||
|
||||
libcblas.so: libptcblas.so
|
||||
ln -s $< $@
|
||||
|
||||
liblapack.so.3.6.1 : liblapack.a libstcblas.so libf77blas.so
|
||||
ld $(LDFLAGS) -shared -soname libstlapack.so.3 -o $@ --whole-archive \
|
||||
liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lc -lstcblas -lf77blas
|
||||
|
||||
libptlapack.so.3.6.1 : libptlapack.a libcblas.so libblas.so
|
||||
ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \
|
||||
libptlapack.a --no-whole-archive $(F77SYSLIB) -L. -lc -lcblas -lblas
|
||||
|
||||
liblapack.so.3: libptlapack.so.3.6.1
|
||||
ln -s $< $@
|
519
libatlas.spec
519
libatlas.spec
@ -1,40 +1,8 @@
|
||||
%define major %(echo %version | cut -d. -f 1)
|
||||
%ifarch arm
|
||||
%define enable_native_atlas 0
|
||||
%else
|
||||
%define enable_native_atlas 1
|
||||
%endif
|
||||
|
||||
%if %enable_native_atlas
|
||||
%ifarch %ix86
|
||||
%define types base 3dnow sse sse2 sse3
|
||||
%define mode 32
|
||||
%define pr_sse2 35
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
%define types base sse2
|
||||
%define mode 64
|
||||
%define pr_sse2 63
|
||||
%endif
|
||||
%else
|
||||
%ifarch %ix86 arm
|
||||
%define types base
|
||||
%define mode 32
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
%define types base
|
||||
%define mode 64
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define pr_base 32
|
||||
%define pr_3dnow 33
|
||||
%define pr_sse 34
|
||||
%define pr_sse3 36
|
||||
|
||||
%define lapackver 3.9.0
|
||||
Name: libatlas
|
||||
Version: 3.8.4
|
||||
Release: 3mamba
|
||||
Version: 3.10.3
|
||||
Release: 1mamba
|
||||
Summary: ATLAS - Automatically Tuned Linear Algebra Software
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -43,11 +11,9 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://math-atlas.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/project/math-atlas/Stable/%{version}/atlas%{version}.tar.bz2
|
||||
Source1: ATLAS-README
|
||||
# http://sourceforge.net/cvs/?group_id=23725
|
||||
Source2: PPRO32.tgz
|
||||
Source3: K7323DNow.tgz
|
||||
Source4: USII64.tgz
|
||||
Source5: USII32.tgz
|
||||
Source5: atlas-Makefile-x86
|
||||
Source6: atlas-Makefile
|
||||
Source7: https://github.com/Reference-LAPACK/lapack.git/v%{lapackver}/lapack-%{version}.tar.bz2
|
||||
Patch0: libatlas-3.8.4-shared.patch
|
||||
Patch1: libatlas-3.8.4-fix-melf-link-flags.patch
|
||||
# ARM patch diffed from:
|
||||
@ -62,8 +28,6 @@ BuildRequires: libblas-devel >= 3.4.2-3mamba
|
||||
BuildRequires: liblapack-devel >= 3.4.2-5mamba
|
||||
BuildRequires: libxblas-devel
|
||||
BuildRequires: libgomp-devel
|
||||
#ExclusiveArch: ix86 amd64 x86_64
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
The ATLAS (Automatically Tuned Linear Algebra Software) project is an ongoing research effort focusing on applying empirical techniques in order to provide portable performance. At present, it provides C and Fortran77 interfaces to a portably efficient BLAS implementation, as well as a few routines from LAPACK.
|
||||
@ -78,105 +42,6 @@ Requires: chkconfig
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the libraries and headers for development with ATLAS.
|
||||
|
||||
%if %enable_native_atlas
|
||||
|
||||
%ifarch x86_64
|
||||
|
||||
%package sse2
|
||||
Group: System/Libraries
|
||||
Summary: ATLAS libraries for SSE2 extensions
|
||||
|
||||
%description sse2
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the ATLAS libraries compiled with optimizations for the SSE2 extensions to the x86_64 architecture.
|
||||
|
||||
%package sse2-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development libraries for ATLAS with SSE2 extensions
|
||||
Requires: %{name}-sse2 = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: chkconfig
|
||||
|
||||
%description sse2-devel
|
||||
This package contains shared and static versions of the ATLAS libraries compiled with optimizations for the SSE2 extensions to the x86_64 architecture.
|
||||
|
||||
%endif
|
||||
|
||||
%ifarch %ix86
|
||||
%package 3dnow
|
||||
Group: System/Libraries
|
||||
Summary: ATLAS libraries for 3DNow extensions
|
||||
|
||||
%description 3dnow
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the ATLAS libraries compiled with optimizations for the 3DNow extension to the ix86 architecture.
|
||||
|
||||
%package 3dnow-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development libraries for ATLAS with 3DNow extensions
|
||||
Requires: %{name}-3dnow = %{version}-%{release}
|
||||
Requires: chkconfig
|
||||
|
||||
%description 3dnow-devel
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains headers and shared versions of the ATLAS libraries compiled with optimizations for the 3DNow extensions to the ix86 architecture.
|
||||
|
||||
%package sse
|
||||
Group: System/Libraries
|
||||
Summary: ATLAS libraries for SSE extensions
|
||||
|
||||
%description sse
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the ATLAS libraries compiled with optimizations for the SSE(1) extensions to the ix86 architecture.
|
||||
|
||||
%package sse-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development libraries for ATLAS with SSE extensions
|
||||
Requires: %{name}-sse = %{version}-%{release}
|
||||
Requires: chkconfig
|
||||
|
||||
%description sse-devel
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains headers and shared versions of the ATLAS libraries compiled with optimizations for the SSE(1) extensions to the ix86 architecture.
|
||||
|
||||
%package sse2
|
||||
Group: System/Libraries
|
||||
Summary: ATLAS libraries for SSE2 extensions
|
||||
|
||||
%description sse2
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains ATLAS shared libraries compiled with optimizations for the SSE2 extensions to the ix86 architecture.
|
||||
|
||||
%package sse2-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development libraries for ATLAS with SSE2 extensions
|
||||
Requires: %{name}-sse2 = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: chkconfig
|
||||
|
||||
%description sse2-devel
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains ATLAS shared libraries compiled with optimizations for the SSE2 extensions to the ix86 architecture.
|
||||
|
||||
%package sse3
|
||||
Group: System/Libraries
|
||||
Summary: ATLAS libraries for SSE3 extensions
|
||||
|
||||
%description sse3
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the ATLAS libraries compiled with optimizations for the SSE3.
|
||||
|
||||
%package sse3-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development libraries for ATLAS with SSE3 extensions
|
||||
Requires: %{name}-sse3 = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: chkconfig
|
||||
|
||||
%description sse3-devel
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains development libraries for ATLAS with SSE3 extensions to the ix86 architecture.
|
||||
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
@ -186,119 +51,53 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
ATLAS - Automatically Tuned Linear Algebra Software.
|
||||
This package contains the documentation for %{name}.
|
||||
|
||||
#% debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -c -a0
|
||||
#-D -T
|
||||
#:<< __EOF
|
||||
cd ATLAS
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%ifarch arm
|
||||
%patch2 -p1
|
||||
%endif
|
||||
|
||||
cp %{SOURCE1} openmamba-README
|
||||
sed -i "s|@VER_REL@|%{version}-%{release}|" openmamba-README
|
||||
|
||||
%ifnarch arm
|
||||
cp %{SOURCE2} CONFIG/ARCHS/
|
||||
cp %{SOURCE3} CONFIG/ARCHS/
|
||||
cp %{SOURCE4} CONFIG/ARCHS/
|
||||
cp %{SOURCE5} CONFIG/ARCHS/
|
||||
%endif
|
||||
#% setup -q -c -a0
|
||||
%setup -q -c -D -T
|
||||
:<< __EOF
|
||||
mkdir -p ATLAS/build
|
||||
cp %{SOURCE7} ATLAS/build
|
||||
|
||||
%build
|
||||
#:<< _EOF
|
||||
cd ATLAS
|
||||
for type in %{types}; do
|
||||
if [ "$type" = "base" ]; then
|
||||
libname=atlas
|
||||
else
|
||||
libname=atlas-${type}
|
||||
fi
|
||||
mkdir -p %{_arch}_${type}
|
||||
cd %{_arch}_${type}
|
||||
../configure -b %{mode} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
|
||||
cd ATLAS/build
|
||||
../configure \
|
||||
%ifarch %{ix86}
|
||||
-b 32 -A x86x87 -V -i \
|
||||
%endif
|
||||
%ifarch arm
|
||||
-Si archdef 0 -Si cputhrchk 0 \
|
||||
-b 32 -A ARMa7 \
|
||||
%endif
|
||||
--prefix=%{buildroot}%{_prefix} \
|
||||
--incdir=%{buildroot}%{_includedir} \
|
||||
--libdir=%{buildroot}%{_libdir}/${libname} \
|
||||
--with-netlib-lapack=%{_libdir}/liblapack.a
|
||||
sed -i "s|LDFLAGS = \(.*\)|LDFLAGS = \1 -Wl,--allow-multiple-definition -lxblas|" Make.inc
|
||||
# -Si cputhrchk 0
|
||||
--prefix=%{_prefix} \
|
||||
--shared \
|
||||
--with-netlib-lapack-tarfile="lapack-%{version}.tar.bz2"
|
||||
|
||||
%ifarch x86_64
|
||||
if [ "$type" = "sse2" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = HAMMER64SSE2#' Make.inc
|
||||
sed -i 's#-DATL_SSE3##' Make.inc
|
||||
sed -i 's#-msse3#-msse2#' Make.inc
|
||||
fi
|
||||
%endif
|
||||
|
||||
%ifarch %ix86
|
||||
if [ "$type" = "base" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = PPRO32#' Make.inc
|
||||
sed -i 's#-DATL_SSE3 -DATL_SSE2 -DATL_SSE1##' Make.inc
|
||||
sed -i 's#-mfpmath=sse -msse3#-mfpmath=387#' Make.inc
|
||||
elif [ "$type" = "3dnow" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = K7323DNow#' Make.inc
|
||||
sed -i 's#-DATL_SSE3 -DATL_SSE2 -DATL_SSE1##' Make.inc
|
||||
sed -i 's#-mfpmath=sse -msse3#-mfpmath=387#' Make.inc
|
||||
elif [ "$type" = "sse" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = PIII32SSE1#' Make.inc
|
||||
sed -i 's#-DATL_SSE3 -DATL_SSE2##' Make.inc
|
||||
sed -i 's#-msse3#-msse#' Make.inc
|
||||
elif [ "$type" = "sse2" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = P432SSE2#' Make.inc
|
||||
sed -i 's#-DATL_SSE3##' Make.inc
|
||||
sed -i 's#-msse3#-msse2#' Make.inc
|
||||
elif [ "$type" = "sse3" ]; then
|
||||
sed -i 's#ARCH =.*#ARCH = P4E32SSE3#' Make.inc
|
||||
fi
|
||||
%endif
|
||||
make build || make build || make build
|
||||
make build
|
||||
cd lib
|
||||
make shared
|
||||
#%ifarch x86_64
|
||||
# LDFLAGS=
|
||||
#%endif
|
||||
|
||||
make ptshared
|
||||
#%ifarch x86_64
|
||||
# LDFLAGS=
|
||||
#%endif
|
||||
|
||||
cd ..
|
||||
done
|
||||
%ifarch %{ix86}
|
||||
cp %{SOURCE5} Makefile
|
||||
%else
|
||||
cp %{SOURCE6} Makefile
|
||||
%endif
|
||||
make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
cd ATLAS
|
||||
for type in %{types}; do
|
||||
cd %{_arch}_${type}
|
||||
make DESTDIR=%{buildroot} install
|
||||
mv %{buildroot}%{_includedir}/atlas %{buildroot}%{_includedir}/atlas-%{_arch}-${type}
|
||||
if [ "$type" = "base" ]; then
|
||||
cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas/
|
||||
rm -f %{buildroot}%{_libdir}/atlas/*.a
|
||||
else
|
||||
cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas-${type}/
|
||||
rm -f %{buildroot}%{_libdir}/atlas-${type}/*.a
|
||||
fi
|
||||
cd ..
|
||||
cd ATLAS/build
|
||||
install -d -m0755 %{buildroot}%{_libdir}/atlas/
|
||||
%make install DESTDIR=%{buildroot}%{_prefix} LIBINSTdir=%{buildroot}%{_libdir}/atlas/
|
||||
cp -d lib/*.so %{buildroot}%{_libdir}/atlas/
|
||||
install -m755 lib/liblapack.so.3.6.1 %{buildroot}%{_libdir}/atlas/liblapack.so.%{lapackver}
|
||||
install -m755 lib/libptlapack.so.3.6.1 %{buildroot}%{_libdir}/atlas/libptlapack.so.%{lapackver}
|
||||
ln -s liblapack.so.%{lapackver} %{buildroot}%{_libdir}/atlas/liblapack.so.3
|
||||
ln -s liblapack.so.3 %{buildroot}%{_libdir}/atlas/liblapack.so
|
||||
ln -s libblas.so %{buildroot}%{_libdir}/atlas/libblas.so.3
|
||||
ln -s libcblas.so %{buildroot}%{_libdir}/atlas/libcblas.so.3
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||
if [ "$type" = "base" ]; then
|
||||
echo "%{_libdir}/atlas" \
|
||||
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}.conf
|
||||
else
|
||||
echo "%{_libdir}/atlas-${type}" \
|
||||
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-${type}.conf
|
||||
fi
|
||||
done
|
||||
mkdir -p %{buildroot}%{_includedir}/atlas
|
||||
install -d -m0755 %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||
echo "%{_libdir}/atlas" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/atlas.conf
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -306,246 +105,28 @@ mkdir -p %{buildroot}%{_includedir}/atlas
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-base %{pr_base}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-base
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-base
|
||||
fi
|
||||
:
|
||||
|
||||
%if %enable_native_atlas
|
||||
|
||||
%ifarch x86_64
|
||||
|
||||
%post sse2 -p /sbin/ldconfig
|
||||
|
||||
%postun sse2 -p /sbin/ldconfig
|
||||
|
||||
%post sse2-devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-sse2 %{pr_sse2}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun sse2-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun sse2-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
|
||||
fi
|
||||
:
|
||||
|
||||
%endif
|
||||
|
||||
%ifarch %ix86
|
||||
%post 3dnow -p /sbin/ldconfig
|
||||
|
||||
%postun 3dnow -p /sbin/ldconfig
|
||||
|
||||
%post 3dnow-devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-3dnow %{pr_3dnow}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun 3dnow-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-3dnow
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun 3dnow-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-3dnow
|
||||
fi
|
||||
:
|
||||
|
||||
%post sse -p /sbin/ldconfig
|
||||
|
||||
%postun sse -p /sbin/ldconfig
|
||||
|
||||
|
||||
%post sse-devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-sse %{pr_sse}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun sse-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun sse-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse
|
||||
fi
|
||||
:
|
||||
|
||||
%post sse2 -p /sbin/ldconfig
|
||||
|
||||
%postun sse2 -p /sbin/ldconfig
|
||||
|
||||
%post sse2-devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-sse2 %{pr_sse2}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun sse2-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun sse2-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
|
||||
fi
|
||||
:
|
||||
|
||||
%post sse3 -p /sbin/ldconfig
|
||||
|
||||
%postun sse3 -p /sbin/ldconfig
|
||||
|
||||
%post sse3-devel
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install %{_includedir}/atlas atlas-inc \
|
||||
%{_includedir}/atlas-%{_arch}-sse3 %{pr_sse3}
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun sse3-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse3
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun sse3-devel
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse3
|
||||
fi
|
||||
:
|
||||
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}.conf
|
||||
%{_sysconfdir}/ld.so.conf.d/atlas.conf
|
||||
%dir %{_libdir}/atlas
|
||||
%{_libdir}/atlas/*.so.*
|
||||
%doc ATLAS/*README
|
||||
%{_libdir}/atlas/*.so*
|
||||
#%doc ATLAS/*README
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/atlas-%{_arch}-base
|
||||
%{_includedir}/atlas-%{_arch}-base/*
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/atlas/*.so
|
||||
|
||||
%if %enable_native_atlas
|
||||
|
||||
%ifarch x86_64
|
||||
|
||||
%files sse2
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-sse2.conf
|
||||
%dir %{_libdir}/atlas-sse2
|
||||
%{_libdir}/atlas-sse2/*.so.*
|
||||
|
||||
%files sse2-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/atlas-sse2/*.so
|
||||
%{_includedir}/atlas-%{_arch}-sse2/
|
||||
%{_includedir}/*.h
|
||||
%ghost %{_includedir}/atlas
|
||||
|
||||
%endif
|
||||
|
||||
%ifarch %ix86
|
||||
|
||||
%files 3dnow
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-3dnow.conf
|
||||
%dir %{_libdir}/atlas-3dnow
|
||||
%{_libdir}/atlas-3dnow/*.so.*
|
||||
|
||||
%files 3dnow-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/atlas-3dnow/*.so
|
||||
%{_includedir}/atlas-%{_arch}-3dnow/
|
||||
%{_includedir}/*.h
|
||||
%ghost %{_includedir}/atlas
|
||||
|
||||
%files sse
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-sse.conf
|
||||
%dir %{_libdir}/atlas-sse
|
||||
%{_libdir}/atlas-sse/*.so.*
|
||||
|
||||
%files sse-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/atlas-sse/*.so
|
||||
%{_includedir}/atlas-%{_arch}-sse/
|
||||
%{_includedir}/*.h
|
||||
%ghost %{_includedir}/atlas
|
||||
|
||||
%files sse2
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-sse2.conf
|
||||
%dir %{_libdir}/atlas-sse2
|
||||
%{_libdir}/atlas-sse2/*.so.*
|
||||
|
||||
%files sse2-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/atlas-sse2/*.so
|
||||
%{_includedir}/atlas-%{_arch}-sse2/
|
||||
%{_includedir}/*.h
|
||||
%ghost %{_includedir}/atlas
|
||||
|
||||
%files sse3
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/atlas-%{_arch}-sse3.conf
|
||||
%dir %{_libdir}/atlas-sse3
|
||||
%{_libdir}/atlas-sse3/*.so.*
|
||||
|
||||
%files sse3-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/atlas-sse3/*.so
|
||||
%{_includedir}/atlas-%{_arch}-sse3/
|
||||
%{_includedir}/*.h
|
||||
%ghost %{_includedir}/atlas
|
||||
|
||||
%endif
|
||||
%endif
|
||||
%dir %{_includedir}/atlas
|
||||
%{_includedir}/atlas/*.h
|
||||
%{_libdir}/atlas/*.a
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc ATLAS/doc
|
||||
|
||||
%changelog
|
||||
* Wed Feb 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.3-1mamba
|
||||
- update to 3.10.3
|
||||
|
||||
* Mon Aug 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.4-3mamba
|
||||
- rebuilt with liblapack-3.4.2-5mamba implementing extended precision routines (xblas)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user