Deji Akingunola 9680a0
%define enable_native_atlas 0
Deji Akingunola 9680a0
Quentin Spencer cdd562
Name:           atlas
Deji Akingunola e96058
Version:        3.8.3
Deji Akingunola 8409cc
Release:        14%{?dist}
Quentin Spencer cdd562
Summary:        Automatically Tuned Linear Algebra Software
Quentin Spencer cdd562
Quentin Spencer cdd562
Group:          System Environment/Libraries
Quentin Spencer cdd562
License:        BSD
Quentin Spencer cdd562
URL:            http://math-atlas.sourceforge.net/
Deji Akingunola e96058
Source0:        http://downloads.sourceforge.net/math-atlas/%{name}%{version}.tar.bz2
Deji Akingunola 7d1f5e
Source1:        PPRO32.tgz
Deji Akingunola 7d1f5e
Source2:        K7323DNow.tgz
Deji Akingunola 7d1f5e
Source3:        README.Fedora
Dennis Gilmore d59808
Source4:        USII64.tgz
Dennis Gilmore d59808
Source5:        USII32.tgz
Deji Akingunola 9680a0
Patch0:		atlas-fedora_shared.patch
Dennis Gilmore d59808
Patch1:         atlas-sparc-linux.patch
Quentin Spencer cdd562
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Quentin Spencer cdd562
Deji Akingunola 8409cc
BuildRequires:  gcc-gfortran lapack-static
Quentin Spencer cdd562
Quentin Spencer cdd562
%description
Quentin Spencer cdd562
The ATLAS (Automatically Tuned Linear Algebra Software) project is an
Quentin Spencer cdd562
ongoing research effort focusing on applying empirical techniques in
Quentin Spencer cdd562
order to provide portable performance. At present, it provides C and
Quentin Spencer cdd562
Fortran77 interfaces to a portably efficient BLAS implementation, as
Quentin Spencer cdd562
well as a few routines from LAPACK.
Quentin Spencer cdd562
Quentin Spencer 2c4ed2
The performance improvements in ATLAS are obtained largely via
Quentin Spencer cdd562
compile-time optimizations and tend to be specific to a given hardware
Quentin Spencer cdd562
configuration. In order to package ATLAS for Fedora some compromises
Quentin Spencer 2c4ed2
are necessary so that good performance can be obtained on a variety
Quentin Spencer cdd562
of hardware. This set of ATLAS binary packages is therefore not
Quentin Spencer 2c4ed2
necessarily optimal for any specific hardware configuration.  However,
Quentin Spencer 2c4ed2
the source package can be used to compile customized ATLAS packages;
Quentin Spencer 2c4ed2
see the documentation for information.
Quentin Spencer cdd562
Quentin Spencer cdd562
%package devel
Quentin Spencer cdd562
Summary:        Development libraries for ATLAS
Quentin Spencer cdd562
Group:          Development/Libraries
Quentin Spencer cdd562
Requires:       %{name} = %{version}-%{release}
Deji Akingunola 26cb43
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttrans):	chkconfig
Deji Akingunola 26cb43
Requires(preun):	chkconfig
Quentin Spencer cdd562
Quentin Spencer cdd562
%description devel
Deji Akingunola 8409cc
This package contains the libraries and headers for development
Quentin Spencer cdd562
with ATLAS (Automatically Tuned Linear Algebra Software).
Quentin Spencer cdd562
Deji Akingunola 9680a0
%define types base
Quentin Spencer cdd562
Deji Akingunola 9680a0
%if "%{?enable_native_atlas}" == "0"
Quentin Spencer cdd562
############## Subpackages for architecture extensions #################
Quentin Spencer cdd562
#
Deji Akingunola 8409cc
%ifarch x86_64
Deji Akingunola 8409cc
%define types base sse2
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%package sse2
Deji Akingunola 8409cc
Summary:        ATLAS libraries for SSE2 extensions
Deji Akingunola 8409cc
Group:          System Environment/Libraries
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%description sse2
Deji Akingunola 8409cc
This package contains the ATLAS (Automatically Tuned Linear Algebra
Deji Akingunola 8409cc
Software) libraries compiled with optimizations for the SSE2
Deji Akingunola 8409cc
extensions to the x86_64 architecture. The base ATLAS builds in Fedora for the
Deji Akingunola 8409cc
x86_64 architecture are made fro the SSE3 extensions.
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%package sse2-devel
Deji Akingunola 8409cc
Summary:        Development libraries for ATLAS with SSE2 extensions
Deji Akingunola 8409cc
Group:          Development/Libraries
Deji Akingunola 8409cc
Requires:       %{name}-sse2 = %{version}-%{release}
Deji Akingunola 8409cc
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttans):	chkconfig
Deji Akingunola 8409cc
Requires(preun):	chkconfig
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%description sse2-devel
Deji Akingunola 8409cc
This package contains shared and static versions of the ATLAS
Deji Akingunola 8409cc
(Automatically Tuned Linear Algebra Software) libraries compiled with
Deji Akingunola 8409cc
optimizations for the SSE2 extensions to the x86_64 architecture.
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%endif
Deji Akingunola 8409cc
Deji Akingunola 2119a1
%ifarch %{ix86}
Deji Akingunola 7d1f5e
%define types base 3dnow sse sse2 sse3
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%package 3dnow
Deji Akingunola 7d1f5e
Summary:        ATLAS libraries for 3DNow extensions
Deji Akingunola 7d1f5e
Group:          System Environment/Libraries
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%description 3dnow
Deji Akingunola 7d1f5e
This package contains the ATLAS (Automatically Tuned Linear Algebra
Deji Akingunola 7d1f5e
Software) libraries compiled with optimizations for the 3DNow extension
Deji Akingunola 7d1f5e
to the ix86 architecture. Fedora also produces ATLAS build with SSE, SSE2
Deji Akingunola 7d1f5e
and SSE3 extensions.
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%package 3dnow-devel
Deji Akingunola 7d1f5e
Summary:        Development libraries for ATLAS with 3DNow extensions
Deji Akingunola 7d1f5e
Group:          Development/Libraries
Deji Akingunola 7d1f5e
Requires:       %{name}-3dnow = %{version}-%{release}
Deji Akingunola 26cb43
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttrans):	chkconfig
Deji Akingunola 26cb43
Requires(preun):	chkconfig
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%description 3dnow-devel
Deji Akingunola 8409cc
This package contains headers and shared versions of the ATLAS
Deji Akingunola 7d1f5e
(Automatically Tuned Linear Algebra Software) libraries compiled with
Deji Akingunola 7d1f5e
optimizations for the 3DNow extensions to the ix86 architecture.
Quentin Spencer cdd562
Quentin Spencer cdd562
%package sse
Quentin Spencer cdd562
Summary:        ATLAS libraries for SSE extensions
Quentin Spencer cdd562
Group:          System Environment/Libraries
Deji Akingunola 9680a0
Quentin Spencer cdd562
%description sse
Quentin Spencer cdd562
This package contains the ATLAS (Automatically Tuned Linear Algebra
Deji Akingunola 9680a0
Software) libraries compiled with optimizations for the SSE(1) extensions
Deji Akingunola 9680a0
to the ix86 architecture. Fedora also produces ATLAS build with SSE2 and SSE3
Deji Akingunola 9680a0
extensions.
Deji Akingunola 9680a0
Quentin Spencer cdd562
%package sse-devel
Quentin Spencer cdd562
Summary:        Development libraries for ATLAS with SSE extensions
Quentin Spencer cdd562
Group:          Development/Libraries
Quentin Spencer ee675c
Requires:       %{name}-sse = %{version}-%{release}
Deji Akingunola 26cb43
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttrans):	chkconfig
Deji Akingunola 26cb43
Requires(preun):	chkconfig
Deji Akingunola 9680a0
Quentin Spencer cdd562
%description sse-devel
Deji Akingunola 8409cc
This package contains headers and shared versions of the ATLAS
Quentin Spencer cdd562
(Automatically Tuned Linear Algebra Software) libraries compiled with
Deji Akingunola 9680a0
optimizations for the SSE(1) extensions to the ix86 architecture.
Quentin Spencer cdd562
Quentin Spencer cdd562
%package sse2
Quentin Spencer cdd562
Summary:        ATLAS libraries for SSE2 extensions
Quentin Spencer cdd562
Group:          System Environment/Libraries
Deji Akingunola 9680a0
Quentin Spencer cdd562
%description sse2
Deji Akingunola 8409cc
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
Deji Akingunola 8409cc
shared libraries compiled with optimizations for the SSE2
Deji Akingunola 9680a0
extensions to the ix86 architecture. Fedora also produces ATLAS build with
Deji Akingunola 9680a0
SSE(1) and SSE3 extensions.
Deji Akingunola 9680a0
Quentin Spencer cdd562
%package sse2-devel
Quentin Spencer cdd562
Summary:        Development libraries for ATLAS with SSE2 extensions
Quentin Spencer cdd562
Group:          Development/Libraries
Quentin Spencer ee675c
Requires:       %{name}-sse2 = %{version}-%{release}
Deji Akingunola 26cb43
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttrans):	chkconfig
Deji Akingunola 26cb43
Requires(preun):	chkconfig
Deji Akingunola 9680a0
Quentin Spencer cdd562
%description sse2-devel
Deji Akingunola 8409cc
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
Deji Akingunola 8409cc
shared libraries compiled with optimizations for the SSE2 extensions to the
Deji Akingunola 8409cc
ix86 architecture.
Quentin Spencer cdd562
Deji Akingunola 9680a0
%package sse3
Deji Akingunola 8409cc
Summary:        ATLAS libraries for SSE3 extensions
Quentin Spencer cdd562
Group:          System Environment/Libraries
Deji Akingunola 9680a0
Deji Akingunola 9680a0
%description sse3
Quentin Spencer cdd562
This package contains the ATLAS (Automatically Tuned Linear Algebra
Deji Akingunola 9680a0
Software) libraries compiled with optimizations for the SSE3.
Deji Akingunola 9680a0
Fedora also produces ATLAS build with SSE(1) and SSE2 extensions.
Deji Akingunola 9680a0
Deji Akingunola 9680a0
%package sse3-devel
Deji Akingunola 8409cc
Summary:        Development libraries for ATLAS with SSE3 extensions
Quentin Spencer cdd562
Group:          Development/Libraries
Deji Akingunola 9680a0
Requires:       %{name}-sse3 = %{version}-%{release}
Deji Akingunola 26cb43
Obsoletes:	%name-header <= %version-%release
Deji Akingunola 8409cc
Requires(posttrans):	chkconfig
Deji Akingunola 26cb43
Requires(preun):	chkconfig
Deji Akingunola 9680a0
Deji Akingunola 9680a0
%description sse3-devel
Deji Akingunola 8409cc
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
Deji Akingunola 8409cc
shared libraries compiled with optimizations for the SSE3 extensions to the ix86 architecture.
Quentin Spencer cdd562
Quentin Spencer cdd562
%endif
Quentin Spencer cdd562
%endif
Quentin Spencer cdd562
Quentin Spencer cdd562
%prep
Quentin Spencer cdd562
%setup -q -n ATLAS
Deji Akingunola 9680a0
%patch0 -p0 -b .shared
Deji Akingunola 8409cc
#%patch1 -p1 -b .sparc
Deji Akingunola 7d1f5e
cp %{SOURCE1} CONFIG/ARCHS/
Deji Akingunola 7d1f5e
cp %{SOURCE2} CONFIG/ARCHS/
Deji Akingunola 7d1f5e
cp %{SOURCE3} doc
Dennis Gilmore d59808
cp %{SOURCE4} CONFIG/ARCHS/
Dennis Gilmore d59808
cp %{SOURCE5} CONFIG/ARCHS/
Quentin Spencer cdd562
Quentin Spencer cdd562
%build
Deji Akingunola 9680a0
for type in %{types}; do
Deji Akingunola 9680a0
	if [ "$type" = "base" ]; then
Deji Akingunola 9680a0
		libname=atlas
Deji Akingunola 26cb43
		%define pr_base %(echo $((%{__isa_bits}+0)))
Deji Akingunola 9680a0
	else
Deji Akingunola 9680a0
		libname=atlas-${type}
Deji Akingunola 9680a0
	fi
Deji Akingunola 9680a0
	mkdir -p %{_arch}_${type}
Deji Akingunola 9680a0
	pushd %{_arch}_${type}
Deji Akingunola 26cb43
	../configure -b %{__isa_bits} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
Deji Akingunola 9680a0
	--prefix=%{buildroot}%{_prefix}			\
Deji Akingunola 9680a0
	--incdir=%{buildroot}%{_includedir}		\
Deji Akingunola 9680a0
	--libdir=%{buildroot}%{_libdir}/${libname}	\
Deji Akingunola 8409cc
	--with-netlib-lapack=%{_libdir}/liblapack_pic.a	\
Deji Akingunola 8409cc
	-Si cputhrchk 0
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%ifarch x86_64
Deji Akingunola 8409cc
	if [ "$type" = "sse2" ]; then
Deji Akingunola 8409cc
		sed -i 's#ARCH =.*#ARCH = HAMMER64SSE2#' Make.inc
Deji Akingunola 8409cc
		sed -i 's#-DATL_SSE3##' Make.inc 
Deji Akingunola 8409cc
		sed -i 's#-msse3#-msse2#' Make.inc 
Deji Akingunola 8409cc
		%define pr_sse2 %(echo $((%{__isa_bits}-1)))
Deji Akingunola 8409cc
	fi
Deji Akingunola 8409cc
%endif
Deji Akingunola 9680a0
Deji Akingunola 7d1f5e
%ifarch %{ix86}
Deji Akingunola 7d1f5e
	if [ "$type" = "base" ]; then
Deji Akingunola 7d1f5e
		sed -i 's#ARCH =.*#ARCH = PPRO32#' Make.inc
Deji Akingunola 7d1f5e
		sed -i 's#-DATL_SSE3 -DATL_SSE2 -DATL_SSE1##' Make.inc 
Deji Akingunola 7d1f5e
		sed -i 's#-mfpmath=sse -msse3#-mfpmath=387#' Make.inc 
Deji Akingunola 7d1f5e
	elif [ "$type" = "3dnow" ]; then
Deji Akingunola 7d1f5e
		sed -i 's#ARCH =.*#ARCH = K7323DNow#' Make.inc
Deji Akingunola 7d1f5e
		sed -i 's#-DATL_SSE3 -DATL_SSE2 -DATL_SSE1##' Make.inc 
Deji Akingunola 7d1f5e
		sed -i 's#-mfpmath=sse -msse3#-mfpmath=387#' Make.inc 
Deji Akingunola 26cb43
		%define pr_3dnow %(echo $((%{__isa_bits}+1)))
Deji Akingunola 7d1f5e
	elif [ "$type" = "sse" ]; then
Deji Akingunola 9680a0
		sed -i 's#ARCH =.*#ARCH = PIII32SSE1#' Make.inc
Deji Akingunola 9680a0
		sed -i 's#-DATL_SSE3 -DATL_SSE2##' Make.inc 
Deji Akingunola dbe4a7
		sed -i 's#-msse3#-msse#' Make.inc 
Deji Akingunola 26cb43
		%define pr_sse %(echo $((%{__isa_bits}+2)))
Deji Akingunola 9680a0
	elif [ "$type" = "sse2" ]; then
Deji Akingunola 9680a0
		sed -i 's#ARCH =.*#ARCH = P432SSE2#' Make.inc
Deji Akingunola 9680a0
		sed -i 's#-DATL_SSE3##' Make.inc 
Deji Akingunola dbe4a7
		sed -i 's#-msse3#-msse2#' Make.inc 
Deji Akingunola 26cb43
		%define pr_sse2 %(echo $((%{__isa_bits}+3)))
Deji Akingunola 9680a0
	elif [ "$type" = "sse3" ]; then
Deji Akingunola 9680a0
		sed -i 's#ARCH =.*#ARCH = P4E32SSE3#' Make.inc
Deji Akingunola 26cb43
		%define pr_sse3 %(echo $((%{__isa_bits}+4)))
Deji Akingunola 9680a0
	fi
Deji Akingunola 7d1f5e
%endif
Deji Akingunola 9680a0
	make build
Deji Akingunola 9680a0
	cd lib
Deji Akingunola 9680a0
	make shared
Deji Akingunola 9680a0
	make ptshared
Deji Akingunola 9680a0
	popd
Quentin Spencer cdd562
done
Quentin Spencer cdd562
Quentin Spencer cdd562
%install
Deji Akingunola 9680a0
rm -rf %{buildroot}
Deji Akingunola 9680a0
for type in %{types}; do
Deji Akingunola 9680a0
	pushd %{_arch}_${type}
Deji Akingunola 9680a0
	make DESTDIR=%{buildroot} install
Deji Akingunola 26cb43
        mv %{buildroot}%{_includedir}/atlas %{buildroot}%{_includedir}/atlas-%{_arch}-${type}
Deji Akingunola 9680a0
	if [ "$type" = "base" ]; then
Deji Akingunola 9680a0
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas/
Deji Akingunola 8409cc
		rm -f %{buildroot}%{_libdir}/atlas/*.a
Deji Akingunola 9680a0
	else
Deji Akingunola 9680a0
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas-${type}/
Deji Akingunola 8409cc
		rm -f %{buildroot}%{_libdir}/atlas-${type}/*.a
Deji Akingunola 9680a0
	fi
Deji Akingunola 9680a0
	popd
Deji Akingunola 9680a0
Deji Akingunola 9680a0
	mkdir -p %{buildroot}/etc/ld.so.conf.d
Deji Akingunola 9680a0
	if [ "$type" = "base" ]; then
Deji Akingunola 9680a0
		echo "%{_libdir}/atlas"		\
Deji Akingunola 9680a0
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}.conf
Deji Akingunola 9680a0
	else
Deji Akingunola 9680a0
		echo "%{_libdir}/atlas-${type}"	\
Deji Akingunola 8409cc
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}-${type}.conf
Deji Akingunola 9680a0
	fi
Quentin Spencer cdd562
done
Deji Akingunola 26cb43
mkdir -p %{buildroot}%{_includedir}/atlas
Deji Akingunola 26cb43
Quentin Spencer cdd562
Quentin Spencer cdd562
%clean
Deji Akingunola 9680a0
rm -rf %{buildroot}
Deji Akingunola 9680a0
Quentin Spencer cdd562
%post -p /sbin/ldconfig
Quentin Spencer cdd562
Quentin Spencer cdd562
%postun -p /sbin/ldconfig
Quentin Spencer cdd562
Deji Akingunola 26cb43
%posttrans devel
Deji Akingunola 26cb43
if [ $1 -eq 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 26cb43
		%{_includedir}/atlas-%{_arch}-base %{pr_base}
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 26cb43
%preun devel
Deji Akingunola 26cb43
if [ $1 -ge 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-base
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 8409cc
%if "%{?enable_native_atlas}" == "0"
Deji Akingunola 8409cc
%ifarch x86_64
Deji Akingunola 7d1f5e
Deji Akingunola 8409cc
%post -n atlas-sse2 -p /sbin/ldconfig
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%postun -n atlas-sse2 -p /sbin/ldconfig
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%posttrans sse2-devel
Deji Akingunola 8409cc
if [ $1 -eq 0 ] ; then
Deji Akingunola 8409cc
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 8409cc
		%{_includedir}/atlas-%{_arch}-sse2  %{pr_sse2}
Deji Akingunola 8409cc
fi
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%preun sse2-devel
Deji Akingunola 8409cc
if [ $1 -ge 0 ] ; then
Deji Akingunola 8409cc
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
Deji Akingunola 8409cc
fi
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%endif
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%ifarch %{ix86}
Deji Akingunola 7d1f5e
%post -n atlas-3dnow -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%postun -n atlas-3dnow -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 26cb43
%posttrans 3dnow-devel
Deji Akingunola 26cb43
if [ $1 -eq 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 26cb43
		%{_includedir}/atlas-%{_arch}-3dnow  %{pr_3dnow}
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 26cb43
%preun 3dnow-devel
Deji Akingunola 26cb43
if [ $1 -ge 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-3dnow
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 7d1f5e
%post -n atlas-sse -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%postun -n atlas-sse -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 26cb43
%posttrans sse-devel
Deji Akingunola 26cb43
if [ $1 -eq 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 26cb43
		%{_includedir}/atlas-%{_arch}-sse  %{pr_sse}
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 26cb43
%preun sse-devel
Deji Akingunola 26cb43
if [ $1 -ge 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 7d1f5e
%post -n atlas-sse2 -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%postun -n atlas-sse2 -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 26cb43
%posttrans sse2-devel
Deji Akingunola 26cb43
if [ $1 -eq 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 26cb43
		%{_includedir}/atlas-%{_arch}-sse2  %{pr_sse2}
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 26cb43
%preun sse2-devel
Deji Akingunola 26cb43
if [ $1 -ge 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse2
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 7d1f5e
%post -n atlas-sse3 -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 7d1f5e
%postun -n atlas-sse3 -p /sbin/ldconfig
Deji Akingunola 7d1f5e
Deji Akingunola 26cb43
%posttrans sse3-devel
Deji Akingunola 26cb43
if [ $1 -eq 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
Deji Akingunola 26cb43
		%{_includedir}/atlas-%{_arch}-sse3  %{pr_sse3}
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 26cb43
%preun sse3-devel
Deji Akingunola 26cb43
if [ $1 -ge 0 ] ; then
Deji Akingunola 26cb43
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-sse3
Deji Akingunola 26cb43
fi
Deji Akingunola 26cb43
Deji Akingunola 7d1f5e
%endif
Deji Akingunola 8409cc
%endif
Deji Akingunola 7d1f5e
Quentin Spencer cdd562
%files
Quentin Spencer cdd562
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc/README.Fedora
Quentin Spencer cdd562
%dir %{_libdir}/atlas
Quentin Spencer 2c4ed2
%{_libdir}/atlas/*.so.*
Quentin Spencer cdd562
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}.conf
Quentin Spencer cdd562
Quentin Spencer cdd562
%files devel
Quentin Spencer cdd562
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc
Quentin Spencer cdd562
%{_libdir}/atlas/*.so
Deji Akingunola 26cb43
%{_includedir}/atlas-%{_arch}-base/
Deji Akingunola 7dd552
%{_includedir}/*.h
Deji Akingunola 26cb43
%ghost %{_includedir}/atlas
Quentin Spencer cdd562
Deji Akingunola 8409cc
%if "%{?enable_native_atlas}" == "0"
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%ifarch x86_64
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%files sse2
Deji Akingunola 8409cc
%defattr(-,root,root,-)
Deji Akingunola 8409cc
%doc doc/README.Fedora
Deji Akingunola 8409cc
%dir %{_libdir}/atlas-sse2
Deji Akingunola 8409cc
%{_libdir}/atlas-sse2/*.so.*
Deji Akingunola 8409cc
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-sse2.conf
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%files sse2-devel
Deji Akingunola 8409cc
%defattr(-,root,root,-)
Deji Akingunola 8409cc
%doc doc
Deji Akingunola 8409cc
%{_libdir}/atlas-sse2/*.so
Deji Akingunola 8409cc
%{_includedir}/atlas-%{_arch}-sse2/
Deji Akingunola 8409cc
%{_includedir}/*.h
Deji Akingunola 8409cc
%ghost %{_includedir}/atlas
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%endif
Deji Akingunola 8409cc
Deji Akingunola 8409cc
%ifarch %{ix86}
Deji Akingunola 9680a0
Deji Akingunola 7d1f5e
%files 3dnow
Deji Akingunola 7d1f5e
%defattr(-,root,root,-)
Deji Akingunola 7d1f5e
%doc doc/README.Fedora
Deji Akingunola 7d1f5e
%dir %{_libdir}/atlas-3dnow
Deji Akingunola 7d1f5e
%{_libdir}/atlas-3dnow/*.so.*
Deji Akingunola 8409cc
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-3dnow.conf
Deji Akingunola 9680a0
Deji Akingunola 7d1f5e
%files 3dnow-devel
Deji Akingunola 7d1f5e
%defattr(-,root,root,-)
Deji Akingunola 7d1f5e
%doc doc
Deji Akingunola 7d1f5e
%{_libdir}/atlas-3dnow/*.so
Deji Akingunola 26cb43
%{_includedir}/atlas-%{_arch}-3dnow/
Deji Akingunola 7d1f5e
%{_includedir}/*.h
Deji Akingunola 26cb43
%ghost %{_includedir}/atlas
Quentin Spencer cdd562
Quentin Spencer 2c4ed2
%files sse
Quentin Spencer 2c4ed2
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc/README.Fedora
Deji Akingunola 9680a0
%dir %{_libdir}/atlas-sse
Deji Akingunola 9680a0
%{_libdir}/atlas-sse/*.so.*
Deji Akingunola 8409cc
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-sse.conf
Quentin Spencer cdd562
Quentin Spencer cdd562
%files sse-devel
Quentin Spencer cdd562
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc
Deji Akingunola 9680a0
%{_libdir}/atlas-sse/*.so
Deji Akingunola 26cb43
%{_includedir}/atlas-%{_arch}-sse/
Deji Akingunola 7dd552
%{_includedir}/*.h
Deji Akingunola 26cb43
%ghost %{_includedir}/atlas
Quentin Spencer cdd562
Quentin Spencer 2c4ed2
%files sse2
Quentin Spencer 2c4ed2
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc/README.Fedora
Deji Akingunola 9680a0
%dir %{_libdir}/atlas-sse2
Deji Akingunola 9680a0
%{_libdir}/atlas-sse2/*.so.*
Deji Akingunola 8409cc
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-sse2.conf
Quentin Spencer cdd562
Quentin Spencer cdd562
%files sse2-devel
Quentin Spencer cdd562
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc
Deji Akingunola 9680a0
%{_libdir}/atlas-sse2/*.so
Deji Akingunola 26cb43
%{_includedir}/atlas-%{_arch}-sse2/
Deji Akingunola 7dd552
%{_includedir}/*.h
Deji Akingunola 26cb43
%ghost %{_includedir}/atlas
Quentin Spencer cdd562
Deji Akingunola 9680a0
%files sse3
Quentin Spencer 2c4ed2
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc/README.Fedora
Deji Akingunola 9680a0
%dir %{_libdir}/atlas-sse3
Deji Akingunola 9680a0
%{_libdir}/atlas-sse3/*.so.*
Deji Akingunola 8409cc
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-sse3.conf
Quentin Spencer cdd562
Deji Akingunola 9680a0
%files sse3-devel
Quentin Spencer cdd562
%defattr(-,root,root,-)
Deji Akingunola 9680a0
%doc doc
Deji Akingunola 9680a0
%{_libdir}/atlas-sse3/*.so
Deji Akingunola 26cb43
%{_includedir}/atlas-%{_arch}-sse3/
Deji Akingunola 9b1309
%{_includedir}/*.h
Deji Akingunola 26cb43
%ghost %{_includedir}/atlas
Deji Akingunola 9b1309
Deji Akingunola 7dd552
%endif
Deji Akingunola 8409cc
%endif
Deji Akingunola 7dd552
Deji Akingunola 9680a0
%changelog
Deji Akingunola 8409cc
* Tue Jul 27 2010 Deji Akingunola <dakingun@gmail.com> - 3.8.3-14
Deji Akingunola 8409cc
- Create a subpackage for SSE2 on x86_64
Deji Akingunola 8409cc
- Remove static libraries.
Deji Akingunola 8409cc
- Fix typo in SSE3 subpackage's summary.
Deji Akingunola 8409cc
Dennis Gilmore d59808
* Tue Feb 02 2010 Dennis Gilmore <dennis@ausil.us> - 3.8.3-13
Dennis Gilmore d59808
- fix sparc to build 
Dennis Gilmore d59808
Deji Akingunola 26cb43
* Sat Oct 24 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-12
Deji Akingunola 26cb43
- Use alternatives to workaround multilib conflicts (BZ#508565). 
Deji Akingunola 26cb43
Deji Akingunola 26cb43
* Tue Sep 29 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-11
Deji Akingunola 26cb43
- Obsolete the -header subpackage properly. 
Deji Akingunola 26cb43
Deji Akingunola 7d1f5e
* Sat Sep 26 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-10
Deji Akingunola 7d1f5e
- Use the new arch. default for Pentium PRO (Fedora bug #510498)
Deji Akingunola 7d1f5e
- (Re-)Introduce 3dNow subpackage
Deji Akingunola 7d1f5e
alexlan 23bb62
* Sun Sep  6 2009 Alex Lancaster <alexlan[at]fedoraproject org=""> - 3.8.3-9
alexlan 23bb62
- Rebuild against fixed lapack (see #520518)
alexlan 23bb62
Deji Akingunola 7dd552
* Wed Aug 13 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-8
Deji Akingunola 7dd552
- Revert the last change, it doesn't solve the problem. 
Deji Akingunola 7dd552
Deji Akingunola 9b1309
* Tue Aug 04 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-7
Deji Akingunola 9b1309
- Create a -header subpackage to avoid multilib conflicts (BZ#508565). 
Deji Akingunola 9b1309
Deji Akingunola 2119a1
* Tue Aug 04 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-6
Deji Akingunola 2119a1
- Add '-g' to build flag to allow proper genration of debuginfo subpackages (Fedora bug #509813)
Deji Akingunola 2119a1
- Build for F12
Deji Akingunola 2119a1
Jesse Keating 753418
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.3-5
Jesse Keating 753418
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 753418
Deji Akingunola dbe4a7
* Sat May 02 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-4
Deji Akingunola dbe4a7
- Use the right -msse* option for the -sse* subpackages (Fedora bug #498715)
Deji Akingunola dbe4a7
Karsten Hopp 4ad567
* Tue Apr 21 2009 Karsten Hopp <karsten@redhat.com> 3.8.3-3.1
Karsten Hopp 4ad567
- add s390x to 64 bit archs
Karsten Hopp 4ad567
Deji Akingunola 11dc7d
* Fri Feb 27 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-3
Deji Akingunola 11dc7d
- Rebuild
Deji Akingunola 11dc7d
Jesse Keating 1a6e0d
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.3-2
Jesse Keating 1a6e0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 1a6e0d
Deji Akingunola e96058
* Sun Feb 22 2009 Deji Akingunola <dakingun@gmail.com> - 3.8.3-1
Deji Akingunola e96058
- Update to version 3.8.3
Deji Akingunola e96058
Deji Akingunola 20c7de
* Sun Dec 21 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-5
Deji Akingunola 20c7de
- Link in appropriate libs when creating shared libs, reported by Orcan 'oget' Ogetbil (BZ#475411)
Deji Akingunola 20c7de
Deji Akingunola ed8898
* Tue Dec 16 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-4
Deji Akingunola ed8898
- Don't symlink the atlas libdir on i386, cause upgrade issue (BZ#476787)
Deji Akingunola ed8898
- Fix options passed to gcc when making shared libs
Deji Akingunola ed8898
Deji Akingunola 10bab2
* Tue Dec 16 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-3
Deji Akingunola 10bab2
- Use 'gcc -shared' to build shared libs instead of stock 'ld'
Deji Akingunola 10bab2
Deji Akingunola 9680a0
* Sat Dec 13 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-2
Deji Akingunola 9680a0
- Properly obsolete/provide older subpackages that are no longer packaged.
Quentin Spencer cdd562
Deji Akingunola 9680a0
* Mon Sep 01 2008 Deji Akingunola <dakingun@gmail.com> - 3.8.2-1
Deji Akingunola 9680a0
- Upgrade to ver 3.8.2 with refined build procedures.
Quentin Spencer cdd562
Quentin Spencer f21156
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-15
Quentin Spencer f21156
- Disable altivec package--it is causing illegal instructions during build.
Quentin Spencer f21156
Quentin Spencer 7f70f0
* Thu Feb 28 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-14
Quentin Spencer 7f70f0
- Enable compilation on alpha (bug 426086).
Quentin Spencer 7f70f0
- Patch for compilation on ia64 (bug 432744).
Quentin Spencer 7f70f0
Jesse Keating 9424b6
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.6.0-13
Jesse Keating 9424b6
- Autorebuild for GCC 4.3
Jesse Keating 9424b6
Orion Poplawski b2ee5b
* Mon Jun  4 2007 Orion Poplawski <orion@cora.nwra.com> 3.6.0-12
Orion Poplawski b2ee5b
- Rebuild for ppc64
Orion Poplawski b2ee5b
Quentin Spencer 2cec08
* Fri Sep  8 2006 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-11
Quentin Spencer 2cec08
- Rebuild for FC6.
Quentin Spencer 2cec08
- Remove outdated comments from spec file.
Quentin Spencer 2cec08
Quentin Spencer 9e15ab
* Mon Feb 13 2006 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-10
Quentin Spencer 9e15ab
- Rebuild for Fedora Extras 5.
Quentin Spencer 9e15ab
- Add --noexecstack to compilation of assembly kernels. These were
Quentin Spencer 9e15ab
  previously marked executable, which caused problems with selinux.
Quentin Spencer 9e15ab
Quentin Spencer dc9c22
* Mon Dec 19 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-9
Quentin Spencer dc9c22
- Rebuild for gcc 4.1.
Quentin Spencer dc9c22
Quentin Spencer ee675c
* Mon Oct 10 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-8
Quentin Spencer ee675c
- Make all devel subpackages depend on their non-devel counterparts.
Quentin Spencer ee675c
- Add /etc/ld.so.conf.d files for -sse and -3dnow, because they don't
Quentin Spencer ee675c
  seem to get picked up automatically.
Quentin Spencer ee675c
Quentin Spencer e97db9
* Wed Oct 05 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-7
Quentin Spencer e97db9
- Forgot to add the new patch to sources.
Quentin Spencer e97db9
Quentin Spencer cdd562
* Tue Oct 04 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-6
Quentin Spencer 2c4ed2
- Use new Debian patch, and enable shared libs (they previously failed
Quentin Spencer 2c4ed2
  to build on gcc 4).
Quentin Spencer 2c4ed2
- Minor updates to description and README.Fedora file.
Quentin Spencer 2c4ed2
- Fix buildroot name to match FE preferred form.
Quentin Spencer 2c4ed2
- Fixes for custom optimized builds.
Quentin Spencer 2c4ed2
- Add dist tag.
Quentin Spencer cdd562
Quentin Spencer cdd562
* Wed Sep 28 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-5
Quentin Spencer cdd562
- fix files lists.
Quentin Spencer cdd562
Quentin Spencer cdd562
* Mon Sep 26 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-4
Quentin Spencer cdd562
- generate library symlinks earlier for the benefit of later linking steps.
Quentin Spencer cdd562
Quentin Spencer cdd562
* Wed Sep 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-3
Quentin Spencer cdd562
- Change lapack dependency to lapack-devel, and use lapack_pic.a for
Quentin Spencer cdd562
  building liblapack.so.
Quentin Spencer cdd562
Quentin Spencer cdd562
* Wed Sep 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-2
Quentin Spencer cdd562
- Add "bit" macro to correctly build on x86_64.
Quentin Spencer cdd562
Quentin Spencer cdd562
* Tue Aug 16 2005 Quentin Spencer <qspencer@users.sourceforge.net> 3.6.0-1
Quentin Spencer cdd562
- Initial version.