1 Summary: The LAPACK libraries for numerical linear algebra
2 Summary(pl): Biblioteki numeryczne LAPACK do algebry liniowej
6 License: freely distributable
7 Group: Development/Libraries
8 Source0: http://www.netlib.org/lapack/%{name}.tgz
9 Source1: http://www.netlib.org/lapack/manpages.tgz
10 Patch0: %{name}-automake_support.patch
11 Patch1: %{name}-20010525.patch
12 URL: http://www.netlib.org/lapack/
13 BuildRequires: gcc-g77
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libtool
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Requires: blas = %{version}
22 LAPACK (Linear Algebra PACKage) is a standard library for numerical
23 linear algebra. LAPACK provides routines for solving systems of
24 simultaneous linear equations, least-squares solutions of linear
25 systems of equations, eigenvalue problems, and singular value
26 problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
27 Schur, and generalized Schur) and related computations (i.e.,
28 reordering of Schur factorizations and estimating condition numbers)
29 are also included. LAPACK can handle dense and banded matrices, but
30 not general sparse matrices. Similar functionality is provided for
31 real and complex matrices in both single and double precision. LAPACK
32 is coded in Fortran77.
35 LAPACK (Linear Algebra PACKage) jest standardow± bibliotek± numeryczn±
36 do algebry liniowej. Dostarcza funkcje rozwi±zywania: uk³adów równañ
37 liniowych, uk³adów równañ metod± najmniejszych kwadratów, problemów
38 w³asnych. Zawiera algorytmy faktoryzacji macierzy (LU, Cholesky'ego,
39 QR, SVD, Schura, uogólnion± Schura) i zwi±zanych z tym obliczeñ (np.
40 przenumerowywanie w faktoryzacji Schura i estymacjê uwarunkowania).
41 LAPACK mo¿e obs³ugiwaæ macierze blokowe i pasmowe, ale nie rzadkie w
42 ogólnym przypadku. Zapewnia funkcjonalno¶æ dla macierzy rzeczywistych
43 i zespolonych, dla liczb pojedynczej i podwójnej precyzji. LAPACK jest
44 napisany w Fortranie 77.
47 Summary: LAPACK header files
48 Summary(pl): Pliki nag³ówkowe LAPACK
49 Group: Development/Libraries
50 Requires: %{name} = %{version}
51 Requires: blas-devel = %{version}
57 %description devel -l pl
58 Pliki nag³ówkowe LAPACK.
61 Summary: Static LAPACK libraries
62 Summary(pl): Biblioteki statyczne LAPACK
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}
67 Static LAPACK libraries.
69 %description static -l pl
70 Biblioteki statyczne LAPACK.
73 Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux
74 Summary(pl): Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
75 Group: Development/Libraries
76 Obsoletes: lapack-blas
79 BLAS (Basic Linear Algebra Subprograms) is a standard library for
80 numerical algebra. BLAS provides a number of basic algorithms for
81 linear algebra. BLAS is fast and well-tested, was written in FORTRAN
84 %description -n blas -l pl
85 BLAS (Basic Linear Algebra Subprograms) jest standardow± bibliotek±
86 numeryczn± algebry. Dostarcza wiele podstawowych algorytmów dla
87 algebry liniowej. Jest szybka i dobrze przetestowana, zosta³a napisana
90 %package -n blas-devel
91 Summary: BLAS header files
92 Summary(pl): Pliki nag³ówkowe BLAS
93 Group: Development/Libraries
94 Requires: blas = %{version}
97 %description -n blas-devel
100 %description -n blas-devel -l pl
101 Pliki nag³ówkowe BLAS.
103 %package -n blas-static
104 Summary: Static BLAS libraries
105 Summary(pl): Biblioteki statyczne BLAS
106 Group: Development/Libraries
107 Requires: blas-devel = %{version}
109 %description -n blas-static
110 Static BLAS libraries.
112 %description -n blas-static -l pl
113 Biblioteki statyczne BLAS.
116 %setup -q -a1 -n LAPACK
119 # directory INSTALL conflicts with file INSTALL needed by automake
120 mv -f INSTALL install
131 # libtool 1.4d requires --tag for g77, libtool 1.4.2 fails when --tag is passed
133 grep -q -e '--tag' `which libtool` && LTTAG="--tag=F77"
135 %{__make} LTTAG="$LTTAG"
138 rm -rf $RPM_BUILD_ROOT
140 ed SRC/liblapack.la <<EOF
141 s/relink_command=.*/relink_command=''/
145 %{__make} install DESTDIR=$RPM_BUILD_ROOT
147 # present both in blas and lapack
148 rm -f man/manl/{lsame,xerbla}.l
150 install -d $RPM_BUILD_ROOT%{_mandir}/man3
151 for d in man/manl/*.l blas/man/manl/*.l ; do
152 install $d $RPM_BUILD_ROOT%{_mandir}/man3/`basename $d .l`.3
155 echo "%defattr(644, root, root, 755)" > blasmans.list
156 find blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> blasmans.list
157 echo "%defattr(644, root, root, 755)" > mans.list
158 find man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list
161 rm -fr $RPM_BUILD_ROOT
163 %post -p /sbin/ldconfig
164 %postun -p /sbin/ldconfig
166 %post -n blas -p /sbin/ldconfig
167 %postun -n blas -p /sbin/ldconfig
170 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/liblapack.so.*.*.*
174 %files devel -f mans.list
175 %defattr(644,root,root,755)
176 %{_libdir}/liblapack.so
179 %defattr(644,root,root,755)
180 %{_libdir}/liblapack.a
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libblas.so.*.*.*
186 %files -n blas-devel -f blasmans.list
187 %defattr(644,root,root,755)
188 %{_libdir}/libblas.so
190 %files -n blas-static
191 %defattr(644,root,root,755)