Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jason_wong
atlas
atlas.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File atlas.spec of Package atlas
%define _moduletag_blas blas %define _modulefilesdir_blas /usr/share/env-switcher/modules/%{_moduletag_blas} %define _moduletag_lapack lapack %define _modulefilesdir_lapack /usr/share/env-switcher/modules/%{_moduletag_lapack} %define __switcher /usr/bin/switcher Name: atlas Summary: Automatically Tuned Linear Algebra Software (ATLAS) Version: 3.6.0 Release: 2ct URL: http://www.netlib.org/atlas/ Source0: %{name}-%{version}.tar.gz Source1: module-%{_moduletag_blas} Source2: module-%{_moduletag_lapack} Source3: install.sh Patch0: atlas_patch001-config.c.patch License: BSD like Group: Development/Other Requires: gcc, make, gcc-gfortran BuildRoot: %{_tmppath}/%{name}-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. %package module Summary: Module package for ATLAS Group: Development/Other Requires: %{name} = %{version}-%{release} Requires: env-switcher Provides: module-%{name} %description module The Modules package provides for the dynamic modification of the environment of the user via modulefiles. This modules package is for ATLAS 3.6.0. %prep rm -rf ${buildroot} %setup -q %patch0 -p1 %install %ifarch x86_64 # Patch the lib path in config.c, so the default lib path of Atlas will change # to lib64 perl -pi -e 's|\$\(TOPdir\)/lib|\$(TOPdir)/%{_lib}|' config.c perl -pi -e 's|lib|%{_lib}|g' Make.top cp makes/Make.lib makes/Make.lib64 mv lib lib64 # Patch the lib path in module in x86_64 environment perl -pi -e 's|\@LIB\@|/%{_lib}|' blas_%{name}-%{version} perl -pi -e 's|\@LIB\@|/%{_lib}|' lapack_%{name}-%{version} %endif mkdir -p %{buildroot}/usr/src/%{name}-%{version} cp -av $RPM_BUILD_DIR/%{name}-%{version} %{buildroot}/usr/src cp %{SOURCE3} %{buildroot}/usr/src/%{name}-%{version} #install module mkdir -p %{buildroot}%{_modulefilesdir_blas} cp %{SOURCE1} %{buildroot}%{_modulefilesdir_blas}/%{name}-%{version} mkdir -p %{buildroot}%{_modulefilesdir_lapack} cp %{SOURCE2} %{buildroot}%{_modulefilesdir_lapack}/%{name}-%{version} %clean rm -fr %{buildroot} %post echo '**************************************************' echo '* Please go to /usr/src/%{name}-%{version} and *' echo '* run install.sh to start the Atlas compilation. *' echo '**************************************************' %post module # blas # this will add the tag if not existed, and overwrite existing name %__switcher %{_moduletag_blas} --add-name %{name}-%{version} %{_modulefilesdir_blas} --force # lapack # this will add the tag if not existed, and overwrite existing name %__switcher %{_moduletag_lapack} --add-name %{name}-%{version} %{_modulefilesdir_lapack} --force %preun module # blas if [ "$1" = 0 ] ; then # remove default attr if this is set to current module %__switcher | %__grep -qx %{_moduletag_blas} && %__switcher %{_moduletag_blas} --show --system | %__grep -qx 'system:default=%{name}-%{version}' && %__switcher %{_moduletag_blas} --rm-attr default --system --force || true # remove switcher module # tag is also removed if module is the last one for the same tag %__switcher | %__grep -qx %{_moduletag_blas} && %__switcher %{_moduletag_blas} --list | %__grep -qx '%{name}-%{version}' && %__switcher %{_moduletag_blas} --rm-name %{name}-%{version} --force || true fi # lapack if [ "$1" = 0 ] ; then # remove default attr if this is set to current module %__switcher | %__grep -qx %{_moduletag_lapack} && %__switcher %{_moduletag_lapack} --show --system | %__grep -qx 'system:default=%{name}-%{version}' && %__switcher %{_moduletag_lapack} --rm-attr default --system --force || true # remove switcher module # tag is also removed if module is the last one for the same tag %__switcher | %__grep -qx %{_moduletag_lapack} && %__switcher %{_moduletag_lapack} --list | %__grep -qx '%{name}-%{version}' && %__switcher %{_moduletag_lapack} --rm-name %{name}-%{version} --force || true fi %files %defattr(-,root,root) /usr/src/%{name}-%{version} %attr(755,root,root) /usr/src/%{name}-%{version}/install.sh %files module %defattr(644,root,root) %{_modulefilesdir_blas}/%{name}-%{version} %{_modulefilesdir_lapack}/%{name}-%{version} %changelog * Fri Jul 6 2007 Clotho Tsang <wytsang@clustertech.com> - 3.6.0-2ct - gcc-g77 is renamed to gcc-gfortran - Use ct as release name * Wed May 24 2006 Clotho Tsang <wytsang@clustertech.com> - 3.6.0-1chess - Initial import
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor