33fa5a
%define enable_native_atlas 0
33fa5a
33fa5a
Name:           atlas
33fa5a
Version:        3.10.3
33fa5a
%if "%{?enable_native_atlas}" != "0"
33fa5a
%define dist .native
33fa5a
%endif
33fa5a
Release:        17%{?dist}
33fa5a
Summary:        Automatically Tuned Linear Algebra Software
33fa5a
33fa5a
License:        BSD
33fa5a
URL:            http://math-atlas.sourceforge.net/
33fa5a
Source0:        http://downloads.sourceforge.net/math-atlas/%{name}%{version}.tar.bz2
33fa5a
Source1:        PPRO32.tgz
33fa5a
Source2:        README.dist
33fa5a
#archdefs taken from debian:
33fa5a
Source3: 	POWER332.tar.bz2
33fa5a
Source4: 	IBMz932.tar.bz2
33fa5a
Source5: 	IBMz964.tar.bz2
33fa5a
#upstream arm uses softfp abi, fedora arm uses hard
33fa5a
Source6: 	ARMv732NEON.tar.bz2
33fa5a
#again, taken from debian
33fa5a
Source7: 	IBMz1264.tar.bz2
33fa5a
Source8:	ARMa732.tar.bz2
33fa5a
33fa5a
#Provided By IBM
33fa5a
Source9: IBMz1364VXZ.tar.bz2
33fa5a
Source10: IBMz1464VXZ2.tar.bz2
33fa5a
Source11: IBMz1564VXZ2.tar.bz2
33fa5a
33fa5a
# Properly pass -melf_* to the linker with -Wl, fixes FTBFS bug 817552
33fa5a
# https://sourceforge.net/tracker/?func=detail&atid=379484&aid=3555789&group_id=23725
33fa5a
Patch1:		atlas-melf.patch
33fa5a
Patch2:		atlas-throttling.patch
33fa5a
33fa5a
#credits Lukas Slebodnik
33fa5a
Patch3:		atlas-shared_libraries.patch
33fa5a
33fa5a
Patch4:		atlas-genparse.patch
33fa5a
33fa5a
# Unbundle LAPACK (BZ #1181369)
33fa5a
Patch5:		atlas.3.10.1-unbundle.patch
33fa5a
Patch6:	atlas-gcc10.patch
33fa5a
33fa5a
33fa5a
#patches dealing with z{13,14,15}, provided by IBM
33fa5a
Patch7: 0001-Avoid-c99-standard-compiler.patch
33fa5a
Patch8: 0002-Fix-rpath-link-command-line-options.patch
33fa5a
Patch9: 0003-Fix-SIMD-support-on-IBM-z13.patch
33fa5a
Patch10: 0004-Read-L1-data-cache-size-from-sysconf-if-possible.patch
33fa5a
Patch11: 0005-Optimizations-for-IBM-z13.patch
33fa5a
Patch12: 0006-Add-IBM-z14-support.patch
33fa5a
Patch13: 0007-Enable-cross-compile.patch
33fa5a
Patch14: 0008-Add-IBM-z15-support.patch
33fa5a
33fa5a
#Covscan
33fa5a
Patch101:		atlas-getri.patch
33fa5a
33fa5a
BuildRequires: make
33fa5a
BuildRequires:  gcc-gfortran, lapack-static, gcc
33fa5a
33fa5a
%ifarch x86_64
33fa5a
Obsoletes:      atlas-sse3 < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{ix86}
33fa5a
Obsoletes:      atlas-3dnow < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse2 < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse3 < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
Obsoletes:      atlas-z10 < 3.10.3-11
33fa5a
Obsoletes:      atlas-z196 < 3.10.3-11
33fa5a
%endif
33fa5a
33fa5a
33fa5a
%description
33fa5a
The ATLAS (Automatically Tuned Linear Algebra Software) project is an
33fa5a
ongoing research effort f(ocusing on applying empirical techniques in
33fa5a
order to provide portable performance. At present, it provides C and
33fa5a
Fortran77 interfaces to a portably efficient BLAS implementation, as
33fa5a
well as a few routines from LAPACK.
33fa5a
33fa5a
The performance improvements in ATLAS are obtained largely via
33fa5a
compile-time optimizations and tend to be specific to a given hardware
33fa5a
configuration. In order to package ATLAS some compromises
33fa5a
are necessary so that good performance can be obtained on a variety
33fa5a
of hardware. This set of ATLAS binary packages is therefore not
33fa5a
necessarily optimal for any specific hardware configuration.  However,
33fa5a
the source package can be used to compile customized ATLAS packages;
33fa5a
see the documentation for information.
33fa5a
33fa5a
%package devel
33fa5a
Summary:        Development libraries for ATLAS
33fa5a
Requires:       %{name} = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%ifarch x86_64
33fa5a
Obsoletes:      atlas-sse3-devel < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{ix86}
33fa5a
Obsoletes:      atlas-3dnow-devel < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse-devel < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse2-devel < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse3-devel < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
Obsoletes:      atlas-z10-devel < 3.10.3-11
33fa5a
Obsoletes:      atlas-z196-devel < 3.10.3-11
33fa5a
%endif
33fa5a
33fa5a
%description devel
33fa5a
This package contains headers for development with ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software).
33fa5a
33fa5a
%package static
33fa5a
Summary:        Static libraries for ATLAS
33fa5a
Requires:       %{name}-devel = %{version}-%{release}
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%ifarch x86_64
33fa5a
Obsoletes:      atlas-sse3-static < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{ix86}
33fa5a
Obsoletes:      atlas-3dnow-static < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse-static < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse2-static < 3.10.3-1
33fa5a
Obsoletes:      atlas-sse3-static < 3.10.3-1
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
Obsoletes:      atlas-z10-static < 3.10.3-11
33fa5a
Obsoletes:      atlas-z196-static  < 3.10.3-11
33fa5a
%endif
33fa5a
33fa5a
%description static
33fa5a
This package contains static version of ATLAS (Automatically Tuned
33fa5a
Linear Algebra Software).
33fa5a
33fa5a
33fa5a
%define types base
33fa5a
33fa5a
%if "%{?enable_native_atlas}" == "0"
33fa5a
############## Subpackages for architecture extensions #################
33fa5a
#
33fa5a
%ifarch x86_64
33fa5a
%define types base corei2
33fa5a
33fa5a
%package corei2-static
33fa5a
Summary:        ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs
33fa5a
33fa5a
%description corei2-static
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) static libraries compiled with optimizations for the Corei2 (Ivy/Sandy bridge)
33fa5a
CPUs. The base ATLAS builds for the x86_64 architecture are made for the hammer64 CPUs.
33fa5a
33fa5a
%package corei2
33fa5a
Summary:        ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs
33fa5a
33fa5a
%description corei2
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) libraries compiled with optimizations for the Corei2 (Ivy/Sandy bridge)
33fa5a
CPUs. The base ATLAS builds for the x86_64 architecture are made for the hammer64 CPUs.
33fa5a
33fa5a
%package corei2-devel
33fa5a
Summary:        Development libraries for ATLAS for Corei2 (Ivy/Sandy bridge) CPUs
33fa5a
Requires:       %{name}-corei2 = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%description corei2-devel
33fa5a
This package contains shared and static versions of the ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software) libraries compiled with
33fa5a
optimizations for the corei2 (Ivy/Sandy bridge) CPUs.
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{ix86}
33fa5a
%define types base
33fa5a
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
%define types base z14 z15
33fa5a
33fa5a
%package z14
33fa5a
Summary:        ATLAS libraries for z14
33fa5a
Group:          System Environment/Libraries
33fa5a
33fa5a
%description z14
33fa5a
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
33fa5a
shared libraries compiled with optimizations for the z14 CPUs.
33fa5a
33fa5a
%package z14-devel
33fa5a
Summary:        Development libraries for ATLAS for z14
33fa5a
Group:          Development/Libraries
33fa5a
Requires:       %{name}-z14 = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	chkconfig
33fa5a
Requires(postun):	chkconfig
33fa5a
33fa5a
%description z14-devel
33fa5a
This package contains shared and static versions of the ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software) libraries compiled with
33fa5a
optimizations for the z14 CPUs.
33fa5a
33fa5a
%package z14-static
33fa5a
Summary:        Static libraries for ATLAS for z14
33fa5a
Group:          Development/Libraries
33fa5a
Requires:       %{name}-z14-devel = %{version}-%{release}
33fa5a
Requires(posttrans):	chkconfig
33fa5a
Requires(postun):	chkconfig
33fa5a
33fa5a
%description z14-static
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) static libraries compiled with optimizations for the z14
33fa5a
CPUs.
33fa5a
33fa5a
33fa5a
%package z15
33fa5a
Summary:        ATLAS libraries for z15
33fa5a
Group:          System Environment/Libraries
33fa5a
33fa5a
%description z15
33fa5a
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
33fa5a
shared libraries compiled with optimizations for the z15 CPUs.
33fa5a
33fa5a
%package z15-devel
33fa5a
Summary:        Development libraries for ATLAS for z15
33fa5a
Group:          Development/Libraries
33fa5a
Requires:       %{name}-z15 = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	chkconfig
33fa5a
Requires(postun):	chkconfig
33fa5a
33fa5a
%description z15-devel
33fa5a
This package contains shared and static versions of the ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software) libraries compiled with
33fa5a
optimizations for the z15 CPUs.
33fa5a
33fa5a
%package z15-static
33fa5a
Summary:        Static libraries for ATLAS for z15
33fa5a
Group:          Development/Libraries
33fa5a
Requires:       %{name}-z15-devel = %{version}-%{release}
33fa5a
Requires(posttrans):	chkconfig
33fa5a
Requires(postun):	chkconfig
33fa5a
33fa5a
%description z15-static
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) static libraries compiled with optimizations for the z15
33fa5a
CPUs.
33fa5a
%endif
33fa5a
33fa5a
33fa5a
%ifarch ppc64
33fa5a
%define types base power7 power8
33fa5a
33fa5a
%package power8
33fa5a
Summary:        ATLAS libraries for Power 8
33fa5a
33fa5a
%description power8
33fa5a
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
33fa5a
shared libraries compiled with optimizations for the Power 8 CPUs. 
33fa5a
The base ATLAS builds for the ppc64 architecture are made for Power 5 CPUs.
33fa5a
33fa5a
%package power8-devel
33fa5a
Summary:        Development libraries for ATLAS for Power 8
33fa5a
Requires:       %{name}-power8 = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%description power8-devel
33fa5a
This package contains shared and static versions of the ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software) libraries compiled with
33fa5a
optimizations for the Power 8 CPUs.
33fa5a
33fa5a
%package power8-static
33fa5a
Summary:        Static libraries for ATLAS for Power 8
33fa5a
Requires:       %{name}-power8-devel = %{version}-%{release}
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%description power8-static
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) static libraries compiled with optimizations for the Power 8
33fa5a
CPUs. The base ATLAS builds for the ppc64 architecture are made for the Power 5 CPUs.
33fa5a
33fa5a
%package power7
33fa5a
Summary:        ATLAS libraries for Power 7
33fa5a
33fa5a
%description power7
33fa5a
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
33fa5a
shared libraries compiled with optimizations for the Power 7 CPUs. 
33fa5a
The base ATLAS builds for the ppc64 architecture are made for Power 5 CPUs.
33fa5a
33fa5a
%package power7-devel
33fa5a
Summary:        Development libraries for ATLAS for Power 7
33fa5a
Requires:       %{name}-power7 = %{version}-%{release}
33fa5a
Obsoletes:	%name-header <= %version-%release
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%description power7-devel
33fa5a
This package contains shared and static versions of the ATLAS
33fa5a
(Automatically Tuned Linear Algebra Software) libraries compiled with
33fa5a
optimizations for the Power 7 CPUs.
33fa5a
33fa5a
%package power7-static
33fa5a
Summary:        Static libraries for ATLAS for Power 7
33fa5a
Requires:       %{name}-power7-devel = %{version}-%{release}
33fa5a
Requires(posttrans):	/usr/sbin/alternatives
33fa5a
Requires(postun):	/usr/sbin/alternatives
33fa5a
33fa5a
%description power7-static
33fa5a
This package contains the ATLAS (Automatically Tuned Linear Algebra
33fa5a
Software) static libraries compiled with optimizations for the Power 7
33fa5a
CPUs. The base ATLAS builds for the ppc64 architecture are made for the Power 5 CPUs.
33fa5a
33fa5a
%endif
33fa5a
#end of enable_native_atlas if
33fa5a
%endif
33fa5a
33fa5a
%prep
33fa5a
#cat /proc/cpuinfo
33fa5a
%setup -q -n ATLAS
33fa5a
33fa5a
33fa5a
%patch1 -p1
33fa5a
%patch2 -p1
33fa5a
%patch3 -p2
33fa5a
%patch4 -p1
33fa5a
%patch5 -p1
33fa5a
%patch6 -p1
33fa5a
33fa5a
%patch7 -p1
33fa5a
%patch8 -p1
33fa5a
%patch10 -p1
33fa5a
33fa5a
%ifarch s390x s390
33fa5a
%patch9 -p1
33fa5a
%patch11 -p1
33fa5a
%patch12 -p1
33fa5a
%patch13 -p1
33fa5a
%patch14 -p1
33fa5a
%endif
33fa5a
33fa5a
%patch101 -p1
33fa5a
33fa5a
cp %{SOURCE1} CONFIG/ARCHS/
33fa5a
cp %{SOURCE2} doc
33fa5a
cp %{SOURCE3} CONFIG/ARCHS/
33fa5a
cp %{SOURCE4} CONFIG/ARCHS/
33fa5a
cp %{SOURCE5} CONFIG/ARCHS/
33fa5a
cp %{SOURCE6} CONFIG/ARCHS/
33fa5a
cp %{SOURCE7} CONFIG/ARCHS/
33fa5a
cp %{SOURCE8} CONFIG/ARCHS/
33fa5a
cp %{SOURCE9} CONFIG/ARCHS/
33fa5a
cp %{SOURCE10} CONFIG/ARCHS/
33fa5a
cp %{SOURCE11} CONFIG/ARCHS/
33fa5a
33fa5a
%ifarch %{arm}
33fa5a
sed -i -e 's,-mfloat-abi=softfp,-mfloat-abi=hard,' CONFIG/src/atlcomp.txt
33fa5a
%endif
33fa5a
33fa5a
# Generate lapack library
33fa5a
mkdir lapacklib
33fa5a
cd lapacklib
33fa5a
ar x %{_libdir}/liblapack_pic.a
33fa5a
# Remove functions that have ATLAS implementations
33fa5a
rm -f cgelqf.o cgels.o cgeqlf.o cgeqrf.o cgerqf.o cgesv.o cgetrf.o cgetri.o cgetrs.o clarfb.o clarft.o clauum.o cposv.o cpotrf.o cpotri.o cpotrs.o ctrtri.o dgelqf.o dgels.o dgeqlf.o dgeqrf.o dgerqf.o dgesv.o dgetrf.o dgetri.o dgetrs.o dlamch.o dlarfb.o dlarft.o dlauum.o dposv.o dpotrf.o dpotri.o dpotrs.o dtrtri.o ieeeck.o ilaenv.o lsame.o sgelqf.o sgels.o sgeqlf.o sgeqrf.o sgerqf.o sgesv.o sgetrf.o sgetri.o sgetrs.o slamch.o slarfb.o slarft.o slauum.o sposv.o spotrf.o spotri.o spotrs.o strtri.o xerbla.o zgelqf.o zgels.o zgeqlf.o zgeqrf.o zgerqf.o zgesv.o zgetrf.o zgetri.o zgetrs.o zlarfb.o zlarft.o zlauum.o zposv.o zpotrf.o zpotri.o zpotrs.o ztrtri.o 
33fa5a
# Create new library
33fa5a
ar rcs ../liblapack_pic_pruned.a *.o
33fa5a
cd ..
33fa5a
33fa5a
33fa5a
%build
33fa5a
p=$(pwd)
33fa5a
%undefine _strict_symbol_defs_build
33fa5a
%ifarch %{arm}
33fa5a
%global mode %{nil}
33fa5a
%else
33fa5a
%global mode -b %{__isa_bits}
33fa5a
%endif
33fa5a
33fa5a
%define arg_options %{nil}
33fa5a
%define flags %{nil}
33fa5a
%define threads_option "-t 2"
33fa5a
33fa5a
#Target architectures for the 'base' versions
33fa5a
%ifarch s390x
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A IBMz12 -V 1"
33fa5a
#%define base_options "-A IBMz13 -V 8 -Si archdef 2"
33fa5a
%endif
33fa5a
33fa5a
%ifarch x86_64
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A HAMMER -V 896"
33fa5a
%endif
33fa5a
33fa5a
%ifarch %ix86
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A PIII -V 512"
33fa5a
%endif
33fa5a
33fa5a
%ifarch ppc
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A POWER5 -V 1"
33fa5a
%endif
33fa5a
33fa5a
%ifarch ppc64
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A POWER5 -V 1"
33fa5a
%endif
33fa5a
33fa5a
%ifarch ppc64le
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A POWER8 -V 1"
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{arm}
33fa5a
%define flags "-DATL_ARM_HARDFP=1"
33fa5a
%define base_options "-A ARMa7 -V 1"
33fa5a
%endif
33fa5a
33fa5a
%ifarch aarch64
33fa5a
%define flags %{nil}
33fa5a
%define base_options "-A ARM64a53 -V 1"
33fa5a
%endif
33fa5a
33fa5a
%if "%{?enable_native_atlas}" != "0"
33fa5a
%define	threads_option %{nil}
33fa5a
%define base_options %{nil}
33fa5a
%define flags %{nil}
33fa5a
%endif
33fa5a
33fa5a
for type in %{types}; do
33fa5a
	if [ "$type" = "base" ]; then
33fa5a
		libname=atlas
33fa5a
		arg_options=%{base_options}
33fa5a
		thread_options=%{threads_option}
33fa5a
		%define pr_base %(echo $((%{__isa_bits}+0)))
33fa5a
	else
33fa5a
		libname=atlas-${type}
33fa5a
		if [ "$type" = "corei2" ]; then
33fa5a
			thread_options="-t 4"
33fa5a
			arg_options="-A Corei2 -V 896"
33fa5a
			%define pr_corei2 %(echo $((%{__isa_bits}+2)))
33fa5a
		elif [ "$type" = "corei1" ]; then
33fa5a
			arg_options="-A Corei1 -V 896"
33fa5a
			%define pr_corei1 %(echo $((%{__isa_bits}+2)))
33fa5a
		elif [ "$type" = "z14" ]; then
33fa5a
			  thread_options="-t 4"
33fa5a
			  arg_options="-A IBMz14 -V 4 -Si archdef 2"
33fa5a
			  %define pr_z14 %(echo $((%{__isa_bits}+2)))
33fa5a
		elif [ "$type" = "z15" ]; then
33fa5a
			  thread_options="-t 4"
33fa5a
			  arg_options="-A IBMz15 -V 4 -Si archdef 2"
33fa5a
			  %define pr_z15 %(echo $((%{__isa_bits}+4)))
33fa5a
		elif [ "$type" = "power7" ]; then
33fa5a
			thread_options="-t 4"
33fa5a
			arg_options="-A POWER7 -V 1"
33fa5a
			%define pr_power7 %(echo $((%{__isa_bits}+2)))
33fa5a
		elif [ "$type" = "power8" ]; then
33fa5a
			thread_options="-t 4"
33fa5a
			arg_options="-A POWER8 -V 1"
33fa5a
			%define pr_power8 %(echo $((%{__isa_bits}+4)))
33fa5a
		fi
33fa5a
	fi
33fa5a
	mkdir -p %{_arch}_${type}
33fa5a
	pushd %{_arch}_${type}
33fa5a
	../configure  %{mode} $thread_options $arg_options -D c -DWALL -F xc ' '  -Fa alg '%{flags} -D_FORTIFY_SOURCE=2 -g -Wa,--noexecstack,--generate-missing-build-notes=yes -fstack-protector-strong -fstack-clash-protection -fPIC -fplugin=annobin -Wl,-z,now'\
33fa5a
	--prefix=%{buildroot}%{_prefix}			\
33fa5a
	--incdir=%{buildroot}%{_includedir}		\
33fa5a
	--libdir=%{buildroot}%{_libdir}/${libname}
33fa5a
	#--with-netlib-lapack-tarfile=%{SOURCE10}
33fa5a
33fa5a
	#matches both SLAPACK and SSLAPACK
33fa5a
	sed -i "s#SLAPACKlib.*#SLAPACKlib = ${p}/liblapack_pic_pruned.a#" Make.inc
33fa5a
	cat Make.inc
33fa5a
%if "%{?enable_native_atlas}" == "0"
33fa5a
33fa5a
%ifarch ppc64
33fa5a
	#Use big endian
33fa5a
	sed -i 's#ARCH = POWER564LE#ARCH = POWER564#' Make.inc
33fa5a
	sed -i 's#ARCH = POWER764LE#ARCH = POWER764#' Make.inc
33fa5a
	sed -i 's#ARCH = POWER864LE#ARCH = POWER864#' Make.inc
33fa5a
%endif
33fa5a
33fa5a
%endif
33fa5a
33fa5a
	make build
33fa5a
	cd lib
33fa5a
	make shared
33fa5a
	make ptshared
33fa5a
	popd
33fa5a
done
33fa5a
33fa5a
%install
33fa5a
for type in %{types}; do
33fa5a
	pushd %{_arch}_${type}
33fa5a
	make DESTDIR=%{buildroot} install
33fa5a
        mv %{buildroot}%{_includedir}/atlas %{buildroot}%{_includedir}/atlas-%{_arch}-${type}
33fa5a
	if [ "$type" = "base" ]; then
33fa5a
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas/
33fa5a
		rm -f %{buildroot}%{_libdir}/atlas/*.a
33fa5a
		cp -pr lib/libcblas.a lib/libatlas.a lib/libf77blas.a lib/liblapack.a %{buildroot}%{_libdir}/atlas/
33fa5a
	else
33fa5a
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas-${type}/
33fa5a
		rm -f %{buildroot}%{_libdir}/atlas-${type}/*.a
33fa5a
		cp -pr lib/libcblas.a lib/libatlas.a lib/libf77blas.a lib/liblapack.a %{buildroot}%{_libdir}/atlas-${type}/
33fa5a
	fi
33fa5a
	popd
33fa5a
33fa5a
	mkdir -p %{buildroot}/etc/ld.so.conf.d
33fa5a
	if [ "$type" = "base" ]; then
33fa5a
		echo "%{_libdir}/atlas"		\
33fa5a
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}.conf
33fa5a
	else
33fa5a
		echo "%{_libdir}/atlas-${type}"	\
33fa5a
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}-${type}.conf
33fa5a
	fi
33fa5a
done
33fa5a
33fa5a
#create pkgconfig file
33fa5a
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
33fa5a
cat > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/atlas.pc << DATA
33fa5a
Name: %{name}
33fa5a
Version: %{version}
33fa5a
Description: %{summary}
33fa5a
Cflags: -I%{_includedir}/atlas/
33fa5a
Libs: -L%{_libdir}/atlas/ -lsatlas
33fa5a
DATA
33fa5a
33fa5a
33fa5a
mkdir -p %{buildroot}%{_includedir}/atlas
33fa5a
33fa5a
33fa5a
%check
33fa5a
for type in %{types}; do
33fa5a
	if [ "$type" = "z14" ] || [ "$type" = "z15" ]; then
33fa5a
	    # skip the tests (may fail due to illegal instructions).
33fa5a
		  echo "Skipping tests for the $type subpackage"
33fa5a
	else
33fa5a
	    pushd %{_arch}_${type}
33fa5a
	    make check ptcheck
33fa5a
	    popd
33fa5a
  fi
33fa5a
done
33fa5a
#%endif
33fa5a
33fa5a
%post -p /sbin/ldconfig
33fa5a
33fa5a
%postun -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans devel
33fa5a
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
		%{_includedir}/atlas-%{_arch}-base %{pr_base}
33fa5a
33fa5a
%postun devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-base
33fa5a
fi
33fa5a
33fa5a
%if "%{?enable_native_atlas}" == "0"
33fa5a
%ifarch x86_64
33fa5a
33fa5a
%post -n atlas-corei2 -p /sbin/ldconfig
33fa5a
33fa5a
%postun -n atlas-corei2 -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans corei2-devel
33fa5a
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
		%{_includedir}/atlas-%{_arch}-corei2  %{pr_corei2}
33fa5a
33fa5a
%postun corei2-devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-corei2
33fa5a
fi
33fa5a
33fa5a
%endif
33fa5a
33fa5a
%ifarch %{ix86}
33fa5a
# No arch specific packages
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
33fa5a
%post -n atlas-z14 -p /sbin/ldconfig
33fa5a
33fa5a
%postun -n atlas-z14 -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans z14-devel
33fa5a
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
						    %{_includedir}/atlas-%{_arch}-z14  %{pr_z14}
33fa5a
33fa5a
%postun z14-devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
		/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-z14
33fa5a
fi
33fa5a
33fa5a
%post -n atlas-z15 -p /sbin/ldconfig
33fa5a
33fa5a
%postun -n atlas-z15 -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans z15-devel
33fa5a
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
					  %{_includedir}/atlas-%{_arch}-z15  %{pr_z15}
33fa5a
33fa5a
%postun z15-devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
		/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-z15
33fa5a
fi
33fa5a
33fa5a
%endif
33fa5a
33fa5a
%ifarch ppc64
33fa5a
33fa5a
%post -n atlas-power7 -p /sbin/ldconfig
33fa5a
33fa5a
%postun -n atlas-power7 -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans power7-devel
33fa5a
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
		%{_includedir}/atlas-%{_arch}-power7  %{pr_power7}
33fa5a
33fa5a
%postun power7-devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-power7
33fa5a
fi
33fa5a
33fa5a
%post -n atlas-ppc8 -p /sbin/ldconfig
33fa5a
33fa5a
%postun -n atlas-ppc8 -p /sbin/ldconfig
33fa5a
33fa5a
%posttrans ppc8-devel
33fa5a
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
33fa5a
		%{_includedir}/atlas-%{_arch}-ppc8  %{pr_ppc8}
33fa5a
33fa5a
%postun ppc8-devel
33fa5a
if [ $1 -ge 0 ] ; then
33fa5a
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-ppc8
33fa5a
fi
33fa5a
33fa5a
%endif
33fa5a
#enable_native_atlas
33fa5a
%endif
33fa5a
%files
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas
33fa5a
%{_libdir}/atlas/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}.conf
33fa5a
33fa5a
%files devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-base/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
%{_libdir}/pkgconfig/atlas.pc
33fa5a
33fa5a
%files static
33fa5a
%{_libdir}/atlas/*.a
33fa5a
33fa5a
%if "%{?enable_native_atlas}" == "0"
33fa5a
33fa5a
%ifarch x86_64
33fa5a
33fa5a
%files corei2
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas-corei2
33fa5a
%{_libdir}/atlas-corei2/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-corei2.conf
33fa5a
33fa5a
%files corei2-devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas-corei2/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-corei2/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
33fa5a
%files corei2-static
33fa5a
%{_libdir}/atlas-corei2/*.a
33fa5a
%endif
33fa5a
33fa5a
%ifarch ppc64
33fa5a
33fa5a
33fa5a
%files power8
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas-power8
33fa5a
%{_libdir}/atlas-power8/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-power8.conf
33fa5a
33fa5a
%files power8-devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas-power8/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-power8/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
33fa5a
%files power8-static
33fa5a
%{_libdir}/atlas-power8/*.a
33fa5a
33fa5a
%files power7
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas-power7
33fa5a
%{_libdir}/atlas-power7/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-power7.conf
33fa5a
33fa5a
%files power7-devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas-power7/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-power7/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
33fa5a
%files power7-static
33fa5a
%{_libdir}/atlas-power7/*.a
33fa5a
%endif
33fa5a
33fa5a
%ifarch s390 s390x
33fa5a
33fa5a
%files z14
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas-z14
33fa5a
%{_libdir}/atlas-z14/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-z14.conf
33fa5a
33fa5a
%files z14-devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas-z14/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-z14/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
33fa5a
%files z14-static
33fa5a
%{_libdir}/atlas-z14/*.a
33fa5a
33fa5a
33fa5a
%files z15
33fa5a
%doc doc/README.dist
33fa5a
%dir %{_libdir}/atlas-z15
33fa5a
%{_libdir}/atlas-z15/*.so.*
33fa5a
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-z15.conf
33fa5a
33fa5a
%files z15-devel
33fa5a
%doc doc
33fa5a
%{_libdir}/atlas-z15/*.so
33fa5a
%{_includedir}/atlas-%{_arch}-z15/
33fa5a
%{_includedir}/*.h
33fa5a
%ghost %{_includedir}/atlas
33fa5a
33fa5a
%files z15-static
33fa5a
%{_libdir}/atlas-z15/*.a
33fa5a
33fa5a
%endif
33fa5a
33fa5a
33fa5a
#enable_native_atlas if
33fa5a
%endif
33fa5a
33fa5a
%changelog
33fa5a
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.10.3-17
33fa5a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
33fa5a
  Related: rhbz#1991688
33fa5a
33fa5a
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.10.3-16
33fa5a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
33fa5a
33fa5a
* Mon Feb 22 2021 Jakub Martisko <jamartis@redhat.com> - 3.10.3-15
33fa5a
- Remove unused scriptlets
33fa5a
33fa5a
* Mon Feb 22 2021 Jakub Martisko <jamartis@redhat.com> - 3.10.3-14
33fa5a
- Fix the messed scriptlets
33fa5a
Resolves: #1929845
33fa5a
33fa5a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-13
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
33fa5a
33fa5a
* Thu Aug 27 2020 Jakub Martisko <jamartis@redhat.com> - 3.10.3.13
33fa5a
- Sync with rhel 8.3 + cleanup
33fa5a
- Add new subpackages - z{14,15}
33fa5a
- Unlike in rhel8, the base subpackage still needs to be build for z12.
33fa5a
- Covscan related bugfixes
33fa5a
- Spec and git cleanup (remove unused patches/sources)
33fa5a
33fa5a
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-12
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
33fa5a
33fa5a
* Thu Feb 13 2020 Jakub Martisko <jamartis@redhat.com> - 3.10.3-11
33fa5a
- Drop IBM z10 and z196 subpackages
33fa5a
- s390 is now optimized for z12
33fa5a
Related: #1780286
33fa5a
33fa5a
* Mon Jan 27 2020 Jakub Martisko <jamartis@redhat.com> - 3.10.3-10
33fa5a
- Fix compatibility with gcc 10
33fa5a
- Sync compiler/linker flags with RHEL
33fa5a
33fa5a
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-9
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
33fa5a
33fa5a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-8
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
33fa5a
33fa5a
* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 3.10.3-7
33fa5a
- Update requires for alternatives
33fa5a
33fa5a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-6
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
33fa5a
33fa5a
* Wed Apr 11 2018 Jakub Martisko <jamartis@redhat.com> - 3.10.3-5
33fa5a
- Pass RPM_LD_FLAGS to linker
33fa5a
33fa5a
* Thu Mar 01 2018 Jakub Martisko <jamartis@redhat.com> - 3.10.3-4
33fa5a
- Add gcc to buildrequires
33fa5a
33fa5a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3-3
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
33fa5a
33fa5a
* Tue Jan 30 2018 Björn Esser <besser82@fedoraproject.org> - 3.10.3-2
33fa5a
- Rebuilt for GCC8
33fa5a
33fa5a
* Thu Aug 17 2017 Jakub Martisko <jamartis@redhat.com> - 3.10.3-1
33fa5a
- Update to new 3.10.3 stable version.
33fa5a
- Remove ppc64/ppc64le related patches.
33fa5a
- All packages now use -A option to specify the target CPU/Architecture instead of 
33fa5a
sed substitutions and auto detection. The packages should now be less dependant on the 
33fa5a
builder machine used.
33fa5a
- Base package for each architecture should now be configured to be compatible with the 
33fa5a
most basic machine of given type.
33fa5a
- In addittion to base package, added some optimized packages for more advanced CPUs for
33fa5a
most architectures.
33fa5a
- Dropped sse2/sse3 subpackages for ix86
33fa5a
33fa5a
* Wed Aug 16 2017 Tom Callaway <spot@fedoraproject.org> - 3.10.2-20
33fa5a
- rebuild again for fixed lapack
33fa5a
33fa5a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.2-12
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
33fa5a
33fa5a
* Sun Nov 29 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.10.2-11
33fa5a
- Rebuild for updated lapack
33fa5a
33fa5a
* Thu Nov 26 2015 Than Ngo <than@redhat.com> 3.10.2-10
33fa5a
- backport upstream patch for power8 support
33fa5a
33fa5a
* Fri Nov 13 2015 Than Ngo <than@redhat.com> 3.10.2-9
33fa5a
- add correct assembler option for ppc64
33fa5a
33fa5a
* Wed Nov 04 2015 Than Ngo <than@redhat.com> - 3.10.2-8
33fa5a
- add correct machine type for ppc64 -> fix build failure on ppc64
33fa5a
33fa5a
* Wed Oct 28 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.10.2-7
33fa5a
- Drop bundled(lapack) which was already fixed in atlas-3.10.1-18.
33fa5a
33fa5a
* Thu Jul 09 2015 Than Ngo <than@redhat.com> 3.10.2-6
33fa5a
- fix ppc64le patch
33fa5a
33fa5a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.2-5
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
33fa5a
33fa5a
* Wed Jun 10 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 3.10.2-4
33fa5a
- Refreshed AArch64 patch
33fa5a
33fa5a
* Fri Jun 05 2015 Dan Horák <dan[at]danny.cz> - 3.10.2-3
33fa5a
- drop upstreamed s390 patch
33fa5a
33fa5a
* Wed May 20 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.2-2
33fa5a
- include all single-threaded wrapper libraries in -static subpackage
33fa5a
- bz#1222079
33fa5a
33fa5a
* Thu May 14 2015 Orion Poplawski <orion@cora.nwra.com> - 3.10.2-1
33fa5a
- Update to 3.10.2 (bug #1118596)
33fa5a
- Autodetect arm arch
33fa5a
- Add arch_option for ppc64le
33fa5a
33fa5a
* Thu Mar 05 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-22
33fa5a
- lapack bundled again, mark this.
33fa5a
33fa5a
* Sat Feb 07 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.10.1-21
33fa5a
- Devel packages don't need to require lapack-devel anymore.
33fa5a
33fa5a
* Fri Jan 30 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.10.1-20
33fa5a
- Link statically to system LAPACK as in earlier versions of Fedora and as
33fa5a
  in OpenBLAS (BZ #1181369).
33fa5a
33fa5a
* Wed Jan 28 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-19
33fa5a
- updated chkconfig and dependencies of atlas-devel after unbundling
33fa5a
33fa5a
* Fri Jan 23 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-18
33fa5a
- unbundled lapack (only a few modified routines shipped with atlas sources are supposed to stay)
33fa5a
33fa5a
* Thu Oct 30 2014 Jaromir Capik <jcapik@redhat.com> - 3.10.1-17
33fa5a
- patching for Power8 to pass performance tunings and tests on P8 builders
33fa5a
33fa5a
* Fri Oct 24 2014 Orion Poplawski <orion@cora.nwra.com> - 3.10.1-16
33fa5a
- Fix alternatives install
33fa5a
33fa5a
* Thu Oct 23 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-15
33fa5a
- added pkgconfig file
33fa5a
33fa5a
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.1-14
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
33fa5a
33fa5a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.1-13
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
33fa5a
33fa5a
* Mon Feb 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.10.1-12
33fa5a
- Don't fail build on make check on aarch64 due to issues with tests
33fa5a
33fa5a
* Sun Feb 16 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 3.10.1-11
33fa5a
- Unbreak AArch64 build.
33fa5a
- ARMv8 is different from ARMv7 so should not be treated as such. Otherwise
33fa5a
  atlas tries to do some crazy ARMv764 build and fail.
33fa5a
33fa5a
* Wed Nov 20 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-10
33fa5a
- updated lapack to 3.5.0
33fa5a
33fa5a
* Wed Nov 13 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-9
33fa5a
- updated subpackage description
33fa5a
33fa5a
* Tue Nov 05 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-8
33fa5a
- patch for aarch64 from https://bugzilla.redhat.com/attachment.cgi?id=755555
33fa5a
33fa5a
* Wed Oct 16 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-7
33fa5a
- Provides: bundled(lapack)
33fa5a
33fa5a
* Thu Oct 10 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-6
33fa5a
- make check on arm enabled - seems to work
33fa5a
33fa5a
* Wed Oct 2 2013 Orion Poplawski <orion@cora.nwra.com> - 3.10.1-5
33fa5a
- Add -DATL_ARM_HARDFP=1 for arm build
33fa5a
- Rework how arm flags are set
33fa5a
33fa5a
* Mon Sep 30 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-4
33fa5a
- disable tests on arm to allow update for x86
33fa5a
33fa5a
* Tue Sep 24 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-3
33fa5a
- disable affinity to prevent crash on systems with fewer cpus
33fa5a
33fa5a
* Mon Sep 23 2013 Orion Poplawski <orion@cora.nwra.com> - 3.10.1-2
33fa5a
- Add %%check section
33fa5a
33fa5a
* Fri Sep 20 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 3.10.1-1
33fa5a
- Rebase to 3.10.1
33fa5a
- Dropped x86_64-SSE2, ix86-SSE1, ix86-3DNow, z10, z196 (uncompilable).
33fa5a
- Modified incompatible patches.
33fa5a
- Added armv7neon support, modified archdef from softfp abi to hard abi.
33fa5a
- Modified Make.lib to include build-id, soname, versioned library name and symlinks.
33fa5a
- Now builds monolithic libsatlas (serial) and libtatlas (threaded)
33fa5a
  libraries with lapack and blas included.
33fa5a
- Lapack source tarball needed instead of static library.
33fa5a
- Disabled cpu throttling detection again (sorry, could not work on atlas
33fa5a
  otherwise, feel free to enable yet again - atlas-throttling.patch).
33fa5a
- Removed mentions of "Fedora" to promote redistribution.
33fa5a
- Modified parts of atlas.spec sometimes left in place, work still in progress,
33fa5a
  cleanup needed.
33fa5a
33fa5a
33fa5a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.4-9
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
33fa5a
33fa5a
* Sun Jan 27 2013 Peter Robinson <pbrobinson@fedoraproject.org> 3.8.4-8
33fa5a
- Rebuild for ARM glibc/binutils issues
33fa5a
33fa5a
* Fri Sep 07 2012 Orion Poplawski <orion@nwra.com> - 3.8.4-7
33fa5a
- Rebuild with lapack 3.4.1
33fa5a
33fa5a
* Thu Aug 09 2012 Orion Poplawski <orion@nwra.com> - 3.8.4-6
33fa5a
- Add patch to properly pass -melf_* to the linker with -Wl (bug 817552)
33fa5a
33fa5a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.4-5
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
33fa5a
33fa5a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.4-4
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
33fa5a
33fa5a
* Thu Sep 01 2011 Deji Akingunola <dakingun@gmail.com> - 3.8.4-3
33fa5a
- Apply patch to enable arm build (Patch provided by Jitesh Shah <jiteshs@marvell.com>)
33fa5a
- Stop turning off throttle checking, upstream frown at it (seems O.K. for Koji)
33fa5a
33fa5a
* Mon Jun 20 2011 Dan Horák <dan[at]danny.cz> - 3.8.4-2
33fa5a
- Use -march=z10 for z196 optimised build because the builder is a z10
33fa5a
  (Christian Bornträger)
33fa5a
33fa5a
* Tue Jun 14 2011 Deji Akingunola <dakingun@gmail.com> - 3.8.4-1
33fa5a
- Update to 3.8.4
33fa5a
- Build the default package for SSE2 and add a SSE3 subpackage on x86_64
33fa5a
- Apply patch (and arch defs.) to build on s390 and s390x (Dan Horák)
33fa5a
- Fix-up build on s390 and s390x (Christian Bornträger)
33fa5a
33fa5a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
33fa5a
33fa5a
* Mon Jul 26 2010 Deji Akingunola <dakingun@gmail.com> - 3.8.3-18
33fa5a
- Create a subpackage for SSE2 on x86_64
33fa5a
33fa5a
* Sat Jul 17 2010 Dan Horák <dan[at]danny.cz> - 3.8.3-17
33fa5a
- rebuild against fixed lapack libraries
33fa5a
33fa5a
* Thu Jul 15 2010 Dan Horák <dan[at]danny.cz> - 3.8.3-16
33fa5a
- fix build on s390 (patch by Karsten Hopp)
33fa5a
33fa5a
* Wed Feb 10 2010 Deji Akingunola <dakingun@gmail.com> - 3.8.3-15
33fa5a
- Disable the problematic sparc patch
33fa5a
- Change lapack-devel BR to lapack-static, where liblapack_pic.a now resides.
33fa5a
33fa5a
* Wed Feb 03 2010 Dennis Gilmore <dennis@ausil.us> - 3.8.3-14
33fa5a
- fix sparc build
33fa5a
33fa5a
* Fri Jan 29 2010 Deji Akingunola <dakingun@gmail.com> - 3.8.3-13
33fa5a
- Remove static libraries.
33fa5a
- Fix typo in SSE3 subpackage's summary.
33fa5a
33fa5a
* Sat Oct 24 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-12
33fa5a
- Use alternatives to workaround multilib conflicts (BZ#508565). 
33fa5a
33fa5a
* Tue Sep 29 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-11
33fa5a
- Obsolete the -header subpackage properly. 
33fa5a
33fa5a
* Sat Sep 26 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-10
33fa5a
- Use the new arch. default for Pentium PRO (Fedora bug #510498)
33fa5a
- (Re-)Introduce 3dNow subpackage
33fa5a
33fa5a
* Sun Sep  6 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 3.8.3-9
33fa5a
- Rebuild against fixed lapack (see #520518)
33fa5a
33fa5a
* Thu Aug 13 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-8
33fa5a
- Revert the last change, it doesn't solve the problem. 
33fa5a
33fa5a
* Tue Aug 04 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-7
33fa5a
- Create a -header subpackage to avoid multilib conflicts (BZ#508565). 
33fa5a
33fa5a
* Tue Aug 04 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-6
33fa5a
- Add '-g' to build flag to allow proper genration of debuginfo subpackages (Fedora bug #509813)
33fa5a
- Build for F12
33fa5a
33fa5a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.3-5
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
33fa5a
33fa5a
* Sat May 02 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-4
33fa5a
- Use the right -msse* option for the -sse* subpackages (Fedora bug #498715)
33fa5a
33fa5a
* Tue Apr 21 2009 Karsten Hopp <karsten@redhat.com> 3.8.3-3.1
33fa5a
- add s390x to 64 bit archs
33fa5a
33fa5a
* Fri Feb 27 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-3
33fa5a
- Rebuild
33fa5a
33fa5a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.3-2
33fa5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
33fa5a
33fa5a
* Sun Feb 22 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-1
33fa5a
- Update to version 3.8.3
33fa5a
33fa5a
* Sun Dec 21 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-5
33fa5a
- Link in appropriate libs when creating shared libs, reported by Orcan 'oget' Ogetbil (BZ#475411)
33fa5a
33fa5a
* Tue Dec 16 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-4
33fa5a
- Don't symlink the atlas libdir on i386, cause upgrade issue (BZ#476787)
33fa5a
- Fix options passed to gcc when making shared libs
33fa5a
33fa5a
* Tue Dec 16 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-3
33fa5a
- Use 'gcc -shared' to build shared libs instead of stock 'ld'
33fa5a
33fa5a
* Sat Dec 13 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-2
33fa5a
- Properly obsolete/provide older subpackages that are no longer packaged.
33fa5a
33fa5a
* Mon Sep 01 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-1
33fa5a
- Upgrade to ver 3.8.2 with refined build procedures.
33fa5a
33fa5a
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-15
33fa5a
- Disable altivec package--it is causing illegal instructions during build.
33fa5a
33fa5a
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-14
33fa5a
- Enable compilation on alpha (bug 426086).
33fa5a
- Patch for compilation on ia64 (bug 432744).
33fa5a
33fa5a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.6.0-13
33fa5a
- Autorebuild for GCC 4.3
33fa5a
33fa5a
* Mon Jun  4 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.0-12
33fa5a
- Rebuild for ppc64
33fa5a
33fa5a
* Fri Sep  8 2006 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-11
33fa5a
- Rebuild for FC6.
33fa5a
- Remove outdated comments from spec file.
33fa5a
33fa5a
* Mon Feb 13 2006 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-10
33fa5a
- Rebuild for Fedora Extras 5.
33fa5a
- Add --noexecstack to compilation of assembly kernels. These were
33fa5a
  previously marked executable, which caused problems with selinux.
33fa5a
33fa5a
* Mon Dec 19 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-9
33fa5a
- Rebuild for gcc 4.1.
33fa5a
33fa5a
* Mon Oct 10 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-8
33fa5a
- Make all devel subpackages depend on their non-devel counterparts.
33fa5a
- Add /etc/ld.so.conf.d files for -sse and -3dnow, because they don't
33fa5a
  seem to get picked up automatically.
33fa5a
33fa5a
* Wed Oct 05 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-7
33fa5a
- Forgot to add the new patch to sources.
33fa5a
33fa5a
* Tue Oct 04 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-6
33fa5a
- Use new Debian patch, and enable shared libs (they previously failed
33fa5a
  to build on gcc 4).
33fa5a
- Minor updates to description and README.Fedora file.
33fa5a
- Fix buildroot name to match FE preferred form.
33fa5a
- Fixes for custom optimized builds.
33fa5a
- Add dist tag.
33fa5a
33fa5a
* Wed Sep 28 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-5
33fa5a
- fix files lists.
33fa5a
33fa5a
* Mon Sep 26 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-4
33fa5a
- generate library symlinks earlier for the benefit of later linking steps.
33fa5a
33fa5a
* Wed Sep 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-3
33fa5a
- Change lapack dependency to lapack-devel, and use lapack_pic.a for
33fa5a
  building liblapack.so.
33fa5a
33fa5a
* Wed Sep 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-2
33fa5a
- Add "bit" macro to correctly build on x86_64.
33fa5a
33fa5a
* Tue Aug 16 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-1
33fa5a
- Initial version.