]>
Commit | Line | Data |
---|---|---|
3c513ef3 | 1 | Summary: The LAPACK libraries for numerical linear algebra. |
2 | Name: lapack | |
3 | Version: 3.0 | |
4 | Release: 4 | |
5 | Copyright: Freely distributable | |
6 | Group: Development/Libraries | |
7 | Group(fr): Development/Librairies | |
8 | Group(pl): Programowanie/Biblioteki | |
9 | Source0: http://www.netlib.org/lapack/%{name}.tar.bz2 | |
10 | Source1: http://www.netlib.org/lapack/manpages.tar.bz2 | |
448f9206 | 11 | #Source2: Makefile.blas |
12 | #Source3: Makefile.lapack | |
13 | Patch0: %{name}-automake_support.patch | |
3c513ef3 | 14 | URL: http://www.netlib.org/lapack/ |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | LAPACK (Linear Algebra PACKage) is a standard library for numerical | |
19 | linear algebra. LAPACK provides routines for solving systems of | |
20 | simultaneous linear equations, least-squares solutions of linear | |
21 | systems of equations, eigenvalue problems, and singular value | |
22 | problems. Associated matrix factorizations (LU, Cholesky, QR, SVD, | |
23 | Schur, and generalized Schur) and related computations (i.e., | |
24 | reordering of Schur factorizations and estimating condition numbers) | |
25 | are also included. LAPACK can handle dense and banded matrices, but | |
26 | not general sparse matrices. Similar functionality is provided for | |
27 | real and complex matrices in both single and double precision. LAPACK | |
28 | is coded in Fortran77 and is built with egcs. | |
29 | ||
30 | %package -n blas | |
31 | Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux. | |
32 | Group: Development/Libraries | |
33 | Group(fr): Development/Librairies | |
34 | Group(pl): Programowanie/Biblioteki | |
35 | Obsoletes: lapack-blas | |
36 | ||
37 | %description -n blas | |
38 | BLAS (Basic Linear Algebra Subprograms) is a standard library for | |
39 | numerical algebra. BLAS provides a number of basic algorithms for | |
40 | linear algebra. BLAS is fast and well-tested, was written in FORTRAN | |
41 | 77 and build with egcs. BLAS manual pages are available in the | |
42 | blas-man package. | |
43 | ||
44 | %package -n blas-man | |
45 | Summary: Man pages for BLAS (Basic Linear Algebra Subprograms) routines. | |
46 | Group: Documentation | |
47 | Group(pl): Dokumentacja | |
48 | Obsoletes: lapack-blas-man | |
49 | ||
50 | %description -n blas-man | |
51 | The blas-man package contains documentation for BLAS (Basic Linear | |
52 | Algebra Subprograms) routines, in the form of man pages. | |
53 | ||
54 | %package man | |
55 | Summary: Documentation for the LAPACK numerical linear algebra libraries. | |
56 | Group: Documentation | |
57 | Group(pl): Dokumentacja | |
58 | ||
59 | %description man | |
60 | Documentation, in the form of man pages, for the LAPACK numerical | |
61 | linear algebra libraries. | |
62 | ||
63 | %prep | |
64 | %setup -q -n LAPACK | |
65 | %setup -q -D -T -a 1 -n LAPACK | |
448f9206 | 66 | %patch0 -p1 |
67 | # directory INSTALL conflicts with file INSTALL needed by automake | |
68 | mv -f INSTALL install | |
69 | >INSTALL | |
70 | >AUTHORS | |
71 | >ChangeLog | |
72 | >NEWS | |
73 | >COPYING | |
74 | >config.h.in | |
3c513ef3 | 75 | |
76 | %build | |
448f9206 | 77 | aclocal |
78 | autoheader | |
79 | automake --add-missing | |
80 | autoconf | |
81 | %configure | |
82 | %{__make} | |
3c513ef3 | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
448f9206 | 86 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
87 | ||
88 | install -d $RPM_BUILD_ROOT%{_mandir}/manl | |
89 | gzip -9nf blas/man/manl/*.l man/manl/*.l | |
90 | install blas/man/manl/* man/manl/* $RPM_BUILD_ROOT%{_mandir}/manl | |
91 | ||
92 | echo "%defattr(644, root, root, 755)" > blasmans.list | |
93 | find blas/man/manl -name "*.gz" -printf "%{_mandir}/manl/%%f\n" >> blasmans.list | |
94 | echo "%defattr(644, root, root, 755)" > mans.list | |
95 | find man/manl -name "*.gz" -printf "%{_mandir}/manl/%%f\n" >> mans.list | |
96 | ||
97 | gzip -9nf README | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | %post -n blas -p /sbin/ldconfig | |
102 | %postun -n blas -p /sbin/ldconfig | |
3c513ef3 | 103 | |
104 | %clean | |
105 | rm -fr $RPM_BUILD_ROOT | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
448f9206 | 109 | %doc README* |
110 | %attr(755,root,root) %{_libdir}/liblapack.* | |
3c513ef3 | 111 | |
448f9206 | 112 | %files -n blas |
3c513ef3 | 113 | %defattr(644,root,root,755) |
114 | %{_libdir}/libblas.* | |
115 | ||
448f9206 | 116 | %files -n blas-man -f blasmans.list |
3c513ef3 | 117 | %defattr(644,root,root,755) |
118 | ||
448f9206 | 119 | %files man -f mans.list |
3c513ef3 | 120 | %defattr(644,root,root,755) |