[BioBrew Users] Atlas SPEC file
Bill Barnard
bill at barnard-engineering.com
Fri May 19 16:04:37 EDT 2006
On Fri, 2006-05-19 at 14:04 -0500, Jeremy Mann wrote:
> I need to rebuild the biobrew atlas because R will not compile against
> libatlas.a. I can't seem to find a spec file so I can use rpmbuild.
> Does anyone have one?
>
I have one I retrieved from the web, and modified slightly for my own
use. It does produce a libatlas.a. Also I don't think I've linked R with
it. I used it while setting up scipy and numpy on my local machines. So
this may or may not be helpful... I hope it is.
Regards,
Bill
-------------- next part --------------
Name: atlas
Version: 3.7.11
Release: 0.bb.1
Epoch: 0
Summary: Automatically Tuned Linear Algebra Software
Group: Development/Libraries
License: BSD
URL: http://math-atlas.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/math-atlas/atlas%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-g77 lapack
%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.
This package provides full C and Fortran optimized BLAS implementation and full
but partially optimized Fortran LAPACK implementation. Only static libraries are
currently available.
%prep
%setup -q -n ATLAS
%build
%{__make} %{?_smp_mflags}
arch=`ls Make.* | sed 's/^Make.//' | grep -v top`
%{__make} install arch=$arch
pushd lib/$arch
%{__mkdir} tmp
pushd tmp
%{__ar} x ../liblapack.a
cp /usr/lib/liblapack.a ../liblapack.a
%{__ar} r ../liblapack.a *.o
popd
%{__rm} -rf tmp
%{__mv} liblapack.a libf77lapack.a
popd
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/%{name}
%{__mkdir_p} $RPM_BUILD_ROOT/%{_includedir}/%{name}
arch=`ls Make.* | sed 's/^Make.//' | grep -v top`
pushd lib/$arch
%{__cp} libatlas.a libcblas.a libf77blas.a libf77lapack.a $RPM_BUILD_ROOT/%{_libdir}/%{name}
popd
pushd include
%{__cp} cblas.h clapack.h $RPM_BUILD_ROOT/%{_includedir}/atlas
popd
%post
%{__ln_s} /%{_libdir}/%{name}/libf77lapack.a /%{_libdir}/%{name}/liblapack.a
%postun
# run this scriptlet only if this is an uninstall and not an upgrade.
# $1 = 1 if upgrade, and $1 = 0 if uninstall.
if [ "$1" = "0" ]
then
%{__rm} -rf %{_libdir}/%{name}
fi
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README doc/*.ps doc/LibReadme.txt doc/TroubleShoot.txt
%{_libdir}/atlas/*.a
%{_includedir}/atlas
%changelog
* Sun Apr 23 2006 Bill Barnard <bill at barnard-engineering.com> - 0:3.7.11-0.bb.1
- updated to v3.7.11
* Sun Dec 12 2004 Simon Perreault <nomis80 at nomis80.org> - 0:3.6.0-0.fdr.2
- Added necessary includes.
* Sat Dec 11 2004 Simon Perreault <nomis80 at nomis80.org> - 0:3.6.0-0.fdr.1
- Initial RPM release.
More information about the BioBrew-Users
mailing list