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 # Source0-md5: a24f59304f87b78cdc7da2ae59c98664
10 Source1: http://www.netlib.org/lapack/manpages.tgz
11 # Source1-md5: 50efab6cd73a9429584f7f1537f1727f
12 Patch0: %{name}-automake_support.patch
13 Patch1: %{name}-20010525.patch
14 URL: http://www.netlib.org/lapack/
15 BuildRequires: gcc-g77
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libtool >= 1:1.4.2-9
19 Requires: blas = %{version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LAPACK (Linear Algebra PACKage) is a standard library for numerical
24 linear algebra. LAPACK provides routines for solving systems of
25 simultaneous linear equations, least-squares solutions of linear
26 systems of equations, eigenvalue problems, and singular value
27 problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
28 Schur, and generalized Schur) and related computations (i.e.,
29 reordering of Schur factorizations and estimating condition numbers)
30 are also included. LAPACK can handle dense and banded matrices, but
31 not general sparse matrices. Similar functionality is provided for
32 real and complex matrices in both single and double precision. LAPACK
33 is coded in Fortran77.
36 LAPACK (Linear Algebra PACKage) jest standardow± bibliotek± numeryczn±
37 do algebry liniowej. Dostarcza funkcje rozwi±zywania: uk³adów równañ
38 liniowych, uk³adów równañ metod± najmniejszych kwadratów, problemów
39 w³asnych. Zawiera algorytmy faktoryzacji macierzy (LU, Cholesky'ego,
40 QR, SVD, Schura, uogólnion± Schura) i zwi±zanych z tym obliczeñ (np.
41 przenumerowywanie w faktoryzacji Schura i estymacjê uwarunkowania).
42 LAPACK mo¿e obs³ugiwaæ macierze blokowe i pasmowe, ale nie rzadkie w
43 ogólnym przypadku. Zapewnia funkcjonalno¶æ dla macierzy rzeczywistych
44 i zespolonych, dla liczb pojedynczej i podwójnej precyzji. LAPACK jest
45 napisany w Fortranie 77.
48 Summary: LAPACK header files
49 Summary(pl): Pliki nag³ówkowe LAPACK
50 Group: Development/Libraries
51 Requires: %{name} = %{version}
52 Requires: blas-devel = %{version}
58 %description devel -l pl
59 Pliki nag³ówkowe LAPACK.
62 Summary: Static LAPACK libraries
63 Summary(pl): Biblioteki statyczne LAPACK
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}
68 Static LAPACK libraries.
70 %description static -l pl
71 Biblioteki statyczne LAPACK.
74 Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux
75 Summary(pl): Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
76 Group: Development/Libraries
77 Obsoletes: lapack-blas
80 BLAS (Basic Linear Algebra Subprograms) is a standard library for
81 numerical algebra. BLAS provides a number of basic algorithms for
82 linear algebra. BLAS is fast and well-tested, was written in FORTRAN
85 %description -n blas -l pl
86 BLAS (Basic Linear Algebra Subprograms) jest standardow± bibliotek±
87 numeryczn± algebry. Dostarcza wiele podstawowych algorytmów dla
88 algebry liniowej. Jest szybka i dobrze przetestowana, zosta³a napisana
91 %package -n blas-devel
92 Summary: BLAS header files
93 Summary(pl): Pliki nag³ówkowe BLAS
94 Group: Development/Libraries
95 Requires: blas = %{version}
98 %description -n blas-devel
101 %description -n blas-devel -l pl
102 Pliki nag³ówkowe BLAS.
104 %package -n blas-static
105 Summary: Static BLAS libraries
106 Summary(pl): Biblioteki statyczne BLAS
107 Group: Development/Libraries
108 Requires: blas-devel = %{version}
110 %description -n blas-static
111 Static BLAS libraries.
113 %description -n blas-static -l pl
114 Biblioteki statyczne BLAS.
117 %setup -q -a1 -n LAPACK
120 # directory INSTALL conflicts with file INSTALL needed by automake
121 mv -f INSTALL install
124 rm -f ltmain.sh missing
132 # libtool 1.4d requires --tag for g77, libtool 1.4.2 fails when --tag is passed
134 grep -q -e '--tag' `which libtool` && LTTAG="--tag=F77"
136 %{__make} LTTAG="$LTTAG"
139 rm -rf $RPM_BUILD_ROOT
141 %{__make} install DESTDIR=$RPM_BUILD_ROOT
143 # present both in blas and lapack
144 rm -f man/manl/{lsame,xerbla}.l
146 install -d $RPM_BUILD_ROOT%{_mandir}/man3
147 for d in man/manl/*.l blas/man/manl/*.l ; do
148 install $d $RPM_BUILD_ROOT%{_mandir}/man3/`basename $d .l`.3
151 echo "%defattr(644, root, root, 755)" > blasmans.list
152 find blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> blasmans.list
153 echo "%defattr(644, root, root, 755)" > mans.list
154 find man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list
157 rm -fr $RPM_BUILD_ROOT
159 %post -p /sbin/ldconfig
160 %postun -p /sbin/ldconfig
162 %post -n blas -p /sbin/ldconfig
163 %postun -n blas -p /sbin/ldconfig
166 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/liblapack.so.*.*.*
170 %files devel -f mans.list
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/liblapack.so
173 %{_libdir}/liblapack.la
176 %defattr(644,root,root,755)
177 %{_libdir}/liblapack.a
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/libblas.so.*.*.*
183 %files -n blas-devel -f blasmans.list
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_libdir}/libblas.so
186 %{_libdir}/libblas.la
188 %files -n blas-static
189 %defattr(644,root,root,755)