f34ba88
Summary: The LAPACK libraries for numerical linear algebra.
f34ba88
Name: lapack
b0ee887
Version: 3.1.1
90670c1
Release: 4%{?dist}
30be2e8
License: BSD
f34ba88
Group: Development/Libraries
f34ba88
URL: http://www.netlib.org/lapack/
094d2b2
Source0: http://www.netlib.org/lapack/lapack-%{version}.tgz
f34ba88
Source2: Makefile.blas
f34ba88
Source3: Makefile.lapack
f34ba88
Source4: http://www.netlib.org/lapack/lapackqref.ps
f34ba88
Source5: http://www.netlib.org/blas/blasqr.ps
b0ee887
Patch3: lapack-3.1.1-make.inc.patch
f34ba88
Obsoletes: lapack-man
f34ba88
BuildRequires: gcc-gfortran
094d2b2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f34ba88
f34ba88
%description
f34ba88
LAPACK (Linear Algebra PACKage) is a standard library for numerical
f34ba88
linear algebra. LAPACK provides routines for solving systems of
f34ba88
simultaneous linear equations, least-squares solutions of linear
f34ba88
systems of equations, eigenvalue problems, and singular value
f34ba88
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
f34ba88
Schur, and generalized Schur) and related computations (i.e.,
f34ba88
reordering of Schur factorizations and estimating condition numbers)
f34ba88
are also included. LAPACK can handle dense and banded matrices, but
f34ba88
not general sparse matrices. Similar functionality is provided for
f34ba88
real and complex matrices in both single and double precision. LAPACK
f34ba88
is coded in Fortran77 and built with gcc.
f34ba88
540af93
%package devel
540af93
Summary: LAPACK development libraries
540af93
Group: Development/Libraries
540af93
Requires: %{name} = %{version}-%{release}
90670c1
Requires: blas-devel = %{version}-%{release}
540af93
540af93
%description devel
540af93
LAPACK development libraries for applications that link statically.
540af93
f34ba88
%package -n blas
f34ba88
Summary: The BLAS (Basic Linear Algebra Subprograms) library.
f34ba88
Group: Development/Libraries
f34ba88
Obsoletes: lapack-blas blas-man
f34ba88
f34ba88
%description -n blas
f34ba88
BLAS (Basic Linear Algebra Subprograms) is a standard library which
f34ba88
provides a number of basic algorithms for numerical algebra. Man
f34ba88
pages for blas are available in the blas-man package.
f34ba88
540af93
%package -n blas-devel
540af93
Summary: LAPACK development libraries
540af93
Group: Development/Libraries
540af93
Requires: blas = %{version}-%{release}
90670c1
Requires: gcc-gfortran
540af93
9ea87cf
%description -n blas-devel
540af93
BLAS development libraries for applications that link statically.
540af93
f34ba88
%prep
094d2b2
%setup -q 
094d2b2
%setup -q -D -T
094d2b2
%patch3 -p1
b0ee887
cp -f INSTALL/make.inc.gfortran make.inc
f34ba88
cp -f $RPM_SOURCE_DIR/Makefile.blas BLAS/SRC/Makefile
f34ba88
cp -f $RPM_SOURCE_DIR/Makefile.lapack SRC/Makefile
f34ba88
f34ba88
#Empty
f34ba88
rm -f man/manl/zbcon.l
f34ba88
f34ba88
%build
094d2b2
f34ba88
RPM_OPT_O_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-O0|')
f34ba88
export FC=gfortran
094d2b2
094d2b2
# Build BLAS
094d2b2
pushd BLAS/SRC
f34ba88
FFLAGS="$RPM_OPT_O_FLAGS" make dcabs1.o
c4addfa
FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" make static
094d2b2
cp libblas.a ${RPM_BUILD_DIR}/%{name}-%{version}/
f34ba88
make clean
f34ba88
FFLAGS="$RPM_OPT_O_FLAGS -fPIC" make dcabs1.o
c4addfa
FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" make shared
b0ee887
cp libblas.so.3.1.1 ${RPM_BUILD_DIR}/%{name}-%{version}/
094d2b2
popd
094d2b2
b0ee887
ln -s libblas.so.3.1.1 libblas.so
f34ba88
f34ba88
# Some files don't like -O2, but -Os is fine
f34ba88
RPM_OPT_SIZE_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-Os|')
f34ba88
094d2b2
# Build the static dlamch, dsecnd, lsame, second, slamch bits
094d2b2
pushd INSTALL
b0ee887
make NOOPT="$RPM_OPT_SIZE_FLAGS" OPTS="$RPM_OPT_FLAGS"
094d2b2
popd
094d2b2
094d2b2
# Build the static lapack library
094d2b2
pushd SRC
c4addfa
make FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" static
094d2b2
cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/
094d2b2
popd
094d2b2
094d2b2
# Build the shared dlamch, dsecnd, lsame, second, slamch bits
094d2b2
pushd INSTALL
f34ba88
make clean
b0ee887
make NOOPT="$RPM_OPT_SIZE_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC"
094d2b2
popd
094d2b2
094d2b2
# Build the shared lapack library
094d2b2
pushd SRC
9f6f371
make clean
c4addfa
make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" shared
b0ee887
cp liblapack.so.3.1.1 ${RPM_BUILD_DIR}/%{name}-%{version}/
094d2b2
popd
094d2b2
094d2b2
# Buuld the static with pic dlamch, dsecnd, lsame, second, slamch bits
094d2b2
pushd INSTALL
540af93
make clean
b0ee887
make NOOPT="$RPM_OPT_SIZE_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC"
094d2b2
popd
094d2b2
094d2b2
# Build the static with pic lapack library
094d2b2
pushd SRC
9f6f371
make clean
c4addfa
make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" static
094d2b2
cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack_pic.a
094d2b2
popd
540af93
f34ba88
cp %{SOURCE4} lapackqref.ps
f34ba88
cp %{SOURCE5} blasqr.ps
f34ba88
f34ba88
%install
f34ba88
rm -fr ${RPM_BUILD_ROOT}
f34ba88
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
f34ba88
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/manl
f34ba88
b0ee887
for f in liblapack.so.3.1.1 libblas.so.3.1.1 libblas.a liblapack.a liblapack_pic.a; do
f34ba88
  cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/$f
f34ba88
done
f34ba88
094d2b2
find manpages/blas/man/manl -type f -printf "%{_mandir}/manl/%f*\n" > blasmans
f34ba88
f34ba88
# These are also in the BLAS package
094d2b2
rm -f manpages/man/manl/lsame.l*
094d2b2
rm -f manpages/man/manl/xerbla.l*
094d2b2
find manpages/man/manl -type f -printf "%{_mandir}/manl/%f*\n" > lapackmans
f34ba88
094d2b2
cp -f manpages/blas/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl
094d2b2
cp -f manpages/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl
f34ba88
f34ba88
cd ${RPM_BUILD_ROOT}%{_libdir}
b0ee887
ln -sf liblapack.so.3.1.1 liblapack.so
b0ee887
ln -sf liblapack.so.3.1.1 liblapack.so.3
b0ee887
ln -sf liblapack.so.3.1.1 liblapack.so.3.1
b0ee887
ln -sf libblas.so.3.1.1 libblas.so
b0ee887
ln -sf libblas.so.3.1.1 libblas.so.3
b0ee887
ln -sf libblas.so.3.1.1 libblas.so.3.1
f34ba88
f34ba88
%post -p /sbin/ldconfig
f34ba88
f34ba88
%postun -p /sbin/ldconfig
f34ba88
f34ba88
%post -n blas -p /sbin/ldconfig
f34ba88
f34ba88
%postun -n blas -p /sbin/ldconfig
f34ba88
f34ba88
%clean
f34ba88
rm -fr ${RPM_BUILD_ROOT}
f34ba88
f34ba88
%files -f lapackmans
f34ba88
%defattr(-,root,root)
f34ba88
%doc README lapackqref.ps
540af93
%{_libdir}/liblapack.so.*
540af93
540af93
%files devel
540af93
%defattr(-,root,root,-)
540af93
%{_libdir}/liblapack.so
540af93
%{_libdir}/liblapack*.a
f34ba88
f34ba88
%files -n blas -f blasmans
f34ba88
%defattr(-,root,root)
f34ba88
%doc blasqr.ps
540af93
%{_libdir}/libblas.so.*
540af93
540af93
%files -n blas-devel
540af93
%defattr(-,root,root,-)
540af93
%{_libdir}/libblas.so
540af93
%{_libdir}/libblas*.a
f34ba88
f34ba88
%changelog
90670c1
* Tue Jul  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.1-4
90670c1
- fix missing dependencies (bz 442915)
90670c1
e80487c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.1.1-3
e80487c
- Autorebuild for GCC 4.3
e80487c
30be2e8
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.1-2
30be2e8
- fix license (BSD)
30be2e8
- rebuild for BuildID
30be2e8
b0ee887
* Fri May 25 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.1-1
b0ee887
- bump to 3.1.1
b0ee887
c4addfa
* Fri Jan  5 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.0-4
c4addfa
- fix bugzillas 219740,219741
c4addfa
9f6f371
* Wed Dec 20 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.0-3
9f6f371
- make clean everywhere
9f6f371
cc23d87
* Wed Dec 20 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.0-2
cc23d87
- fix the Makefiles
cc23d87
094d2b2
* Tue Nov 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.1.0-1
094d2b2
- bump to 3.1.0
094d2b2
216c2ab
* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-38
216c2ab
- bump for fc-6
216c2ab
fe3fdbe
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-37
fe3fdbe
- bump for FC5
fe3fdbe
1a12f17
* Mon Dec 19 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-36
1a12f17
- bump for gcc4.1
1a12f17
b08cfaa
* Tue Nov 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-35
b08cfaa
- try not to patch files that do not exist
b08cfaa
5aed7e2
* Tue Nov 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-34
5aed7e2
- finish fixing bz 143340
5aed7e2
e94f8ad
* Thu Oct  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-33
e94f8ad
- fix bz 169558
e94f8ad
976d2c7
* Wed Sep 28 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-32
976d2c7
- move to latest upstream 3.0 tarballs
976d2c7
- add 8 missing BLAS functions from upstream blas tarball (bz 143340)
976d2c7
23d8e29
* Thu Sep 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-31
23d8e29
- actually install liblapack_pic.a
23d8e29
540af93
* Wed Sep 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-30
540af93
- make -devel packages
540af93
- make liblapack_pic.a package
540af93
- use dist tag
540af93
f34ba88
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-29
f34ba88
- package moves to Fedora Extras, gcc4
f34ba88
f34ba88
* Tue Dec 21 2004 Ivana Varekova <varekova@redhat.com>
f34ba88
- fix bug #143420 problem with compiler optimalizations
f34ba88
f34ba88
* Tue Nov 30 2004 Ivana Varekova <varekova@redhat.com>
f34ba88
- fix bug #138683 problem with compilation
f34ba88
f34ba88
* Thu Nov 11 2004 Ivana Varekova <varekova@redhat.com>
f34ba88
- fix build problem bug #138447
f34ba88
f34ba88
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Wed Dec 31 2003 Jeff Johnson <jbj@jbj.org> 3.0-23
f34ba88
- link -lg2c explicitly into liblapack and libblas (#109079).
f34ba88
f34ba88
* Wed Aug 20 2003 Jeremy Katz <katzj@redhat.com> 3.0-22
f34ba88
- nuke -man subpackages (#97506)
f34ba88
f34ba88
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Sun Nov 10 2002 Jeff Johnson <jbj@redhat.com> 3.0-19
f34ba88
- rebuild with x86_64.
f34ba88
f34ba88
* Thu Jul 18 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.0-18
f34ba88
- Remove an empty man page (#63569)
f34ba88
f34ba88
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f34ba88
- automated rebuild
f34ba88
f34ba88
* Thu May 23 2002 Tim Powers <timp@redhat.com>
f34ba88
- automated rebuild
f34ba88
f34ba88
* Wed May  1 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.0-15
f34ba88
- Rebuild
f34ba88
f34ba88
* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.0-14
f34ba88
- Rebuild
f34ba88
f34ba88
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
f34ba88
- automated rebuild
f34ba88
f34ba88
* Mon Aug 13 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.0-12
f34ba88
- The man-pages for xerbla and lsame were in blas-man and lapack-man (#51605)
f34ba88
f34ba88
* Fri Jun  8 2001 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- Reenable optimization for IA64
f34ba88
f34ba88
* Fri May 25 2001 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- Add all patches from the LAPACK site as of 2001-05-25
f34ba88
- Use this workaround for IA64 instead
f34ba88
- Remove SPARC workaround
f34ba88
- Don't exclude IA64
f34ba88
f34ba88
* Thu Dec 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- rebuild for main distribution
f34ba88
f34ba88
* Mon Nov 20 2000 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- add the LAPACK Quick Reference Guide to the docs
f34ba88
- add the BLAS Quick Reference Guide to the docs
f34ba88
f34ba88
* Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- fix lack of ldconfig in postuninstall script
f34ba88
f34ba88
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
f34ba88
- rebuilt
f34ba88
f34ba88
* Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- updated with the latest updates (new tarfile..) from netlib 
f34ba88
f34ba88
* Thu Jun 15 2000 Trond Eivind Glomsrød <teg@redhat.com>
f34ba88
- use %%{_mandir}
f34ba88
- added some flags to work around SPARC compiler bug
f34ba88
f34ba88
* Wed Jan 19 2000 Tim Powers <timp@redhat.com>
f34ba88
- bzipped sources to conserve space
f34ba88
f34ba88
* Tue Jan  4 2000 Jeff Johnson <jbj@redhat.com>
f34ba88
- build for PowerTools 6.2.
f34ba88
f34ba88
* Sat Dec 25 1999 Joachim Frieben <jfrieben@hotmail.com>
f34ba88
- updated to version v3.0 + update as of Tue Nov 30 1999
f34ba88
f34ba88
* Sat Oct 23 1999 Joachim Frieben <jfrieben@hotmail.com>
f34ba88
- updated Red Hat makefiles to v3.0
f34ba88
f34ba88
* Mon Aug 2 1999 Tim Powers <timp@redhat.com>
f34ba88
- updated to v3.0
f34ba88
- built for 6.1
f34ba88
f34ba88
* Mon Apr 12 1999 Michael Maher <mike@redhat.com>
f34ba88
- built package for 6.0
f34ba88
f34ba88
* Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com>
f34ba88
- new description/summary text.
f34ba88
f34ba88
* Fri Jul 17 1998 Jeff Johnson <jbj@redhat.com>
f34ba88
- repackage for powertools.
f34ba88
f34ba88
* Sun Feb 15 1998 Trond Eivind Glomsrød <teg@pvv.ntnu.no>
f34ba88
 [lapack-2.0-9]
f34ba88
 - No code updates, just built with a customized rpm -
f34ba88
   this should make dependencies right.
f34ba88
f34ba88
* Sat Feb 07 1998 Trond Eivind Glomsrød <teg@pvv.ntnu.no>
f34ba88
 [lapack-2.0-8]
f34ba88
 - Total rewrite of the spec file
f34ba88
 - Added my own makefiles - libs should build better,
f34ba88
   static libs should work (and be faster than they
f34ba88
	would be if they had worked earlier ;)
f34ba88
 - No patch necessary anymore.
f34ba88
 - Renamed lapack-blas and lapack-blas-man to
f34ba88
   blas and blas-man. "Obsoletes:" tag added.
f34ba88
   (oh - and as always: Dedicated to the girl I
f34ba88
   love, Eline Skirnisdottir)
f34ba88
f34ba88
* Sat Dec 06 1997 Trond Eivind Glomsrød <teg@pvv.ntnu.no>
f34ba88
 [lapack-2.0-7]
f34ba88
  - added a dependency to glibc, so people don't try with libc5
f34ba88
f34ba88
* Thu Nov 20 1997 Trond Eivind Glomsrød <teg@pvv.ntnu.no>
f34ba88
  [lapack-2.0-6]
f34ba88
  - removed etime.c
f34ba88
  - compiled with egcs, and for glibc 2.0
f34ba88
f34ba88
* Sun Oct 12 1997 Trond Eivind Glomsrød <teg@pvv.ntnu.no>
f34ba88
  [lapack-2.0-5]
f34ba88
  - added a changelog
f34ba88
  - cleaned up building of shared libs
f34ba88
  - now uses a BuildRoot
f34ba88
  - cleaned up the specfile