]>
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 | |
11 | Source2: Makefile.blas | |
12 | Source3: Makefile.lapack | |
13 | URL: http://www.netlib.org/lapack/ | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | LAPACK (Linear Algebra PACKage) is a standard library for numerical | |
18 | linear algebra. LAPACK provides routines for solving systems of | |
19 | simultaneous linear equations, least-squares solutions of linear | |
20 | systems of equations, eigenvalue problems, and singular value | |
21 | problems. Associated matrix factorizations (LU, Cholesky, QR, SVD, | |
22 | Schur, and generalized Schur) and related computations (i.e., | |
23 | reordering of Schur factorizations and estimating condition numbers) | |
24 | are also included. LAPACK can handle dense and banded matrices, but | |
25 | not general sparse matrices. Similar functionality is provided for | |
26 | real and complex matrices in both single and double precision. LAPACK | |
27 | is coded in Fortran77 and is built with egcs. | |
28 | ||
29 | %package -n blas | |
30 | Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux. | |
31 | Group: Development/Libraries | |
32 | Group(fr): Development/Librairies | |
33 | Group(pl): Programowanie/Biblioteki | |
34 | Obsoletes: lapack-blas | |
35 | ||
36 | %description -n blas | |
37 | BLAS (Basic Linear Algebra Subprograms) is a standard library for | |
38 | numerical algebra. BLAS provides a number of basic algorithms for | |
39 | linear algebra. BLAS is fast and well-tested, was written in FORTRAN | |
40 | 77 and build with egcs. BLAS manual pages are available in the | |
41 | blas-man package. | |
42 | ||
43 | %package -n blas-man | |
44 | Summary: Man pages for BLAS (Basic Linear Algebra Subprograms) routines. | |
45 | Group: Documentation | |
46 | Group(pl): Dokumentacja | |
47 | Obsoletes: lapack-blas-man | |
48 | ||
49 | %description -n blas-man | |
50 | The blas-man package contains documentation for BLAS (Basic Linear | |
51 | Algebra Subprograms) routines, in the form of man pages. | |
52 | ||
53 | %package man | |
54 | Summary: Documentation for the LAPACK numerical linear algebra libraries. | |
55 | Group: Documentation | |
56 | Group(pl): Dokumentacja | |
57 | ||
58 | %description man | |
59 | Documentation, in the form of man pages, for the LAPACK numerical | |
60 | linear algebra libraries. | |
61 | ||
62 | %prep | |
63 | %setup -q -n LAPACK | |
64 | %setup -q -D -T -a 1 -n LAPACK | |
65 | install %{SOURCE3} BLAS/SRC/Makefile | |
66 | install %{SOURCE3} SRC/Makefile | |
67 | ||
68 | %build | |
69 | cd BLAS/SRC | |
70 | FFLAGS="$RPM_OPT_FLAGS" make static | |
71 | cp libblas.a ../.. | |
72 | %{__make} clean | |
73 | FFLAGS="$RPM_OPT_FLAGS -fPIC" make shared | |
74 | cp libblas.so.3.0.3 ../.. | |
75 | cd ../.. | |
76 | ln -s libblas.so.3.0.3 libblas.so | |
77 | cd SRC | |
78 | FFLAGS="$RPM_OPT_FLAGS" make static | |
79 | cp liblapack.a .. | |
80 | %{__make} clean | |
81 | FFLAGS="$RPM_OPT_FLAGS -fPIC" make shared | |
82 | cp liblapack.so.3.0.3 .. | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | install -d $RPM_BUILD_ROOT%{_libdir} | |
87 | install -d $RPM_BUILD_ROOT%{_prefix}/man/manl | |
88 | ||
89 | cp -f liblapack.so.3.0.3 $RPM_BUILD_ROOT%{_libdir}/liblapack.so.3.0.3 | |
90 | cp -f libblas.so.3.0.3 $RPM_BUILD_ROOT%{_libdir}/libblas.so.3.0.3 | |
91 | cp -f libblas.a $RPM_BUILD_ROOT%{_libdir}/libblas.a | |
92 | cp -f liblapack.a $RPM_BUILD_ROOT%{_libdir}/liblapack.a | |
93 | ||
94 | cd blas/man/manl | |
95 | gzip -9nf * | |
96 | cd ../../.. | |
97 | echo "%defattr(-, root, root)" > blasmans | |
98 | find blas/man/manl -type f -printf "%{_prefix}/man/manl/%f\n" > blasmans | |
99 | cd man/manl | |
100 | gzip -9nf * | |
101 | cd ../.. | |
102 | echo "%defattr(-, root, root)" > lapackmans | |
103 | find man/manl -type f -printf "%{_prefix}/man/manl/%f\n" > lapackmans | |
104 | ||
105 | cp -f blas/man/manl/* $RPM_BUILD_ROOT%{_prefix}/man/manl | |
106 | cp -f man/manl/* $RPM_BUILD_ROOT%{_prefix}/man/manl | |
107 | cd $RPM_BUILD_ROOT%{_libdir} | |
108 | ln -sf liblapack.so.3.0.3 liblapack.so | |
109 | ln -sf liblapack.so.3.0.3 liblapack.so.3 | |
110 | ln -sf liblapack.so.3.0.3 liblapack.so.3.0 | |
111 | ln -sf libblas.so.3.0.3 libblas.so | |
112 | ln -sf libblas.so.3.0.3 libblas.so.3 | |
113 | ln -sf libblas.so.3.0.3 libblas.so.3.0 | |
114 | ||
115 | %pre | |
116 | ldconfig | |
117 | ||
118 | %post | |
119 | ldconfig | |
120 | ||
121 | %pre -n blas | |
122 | ldconfig | |
123 | ||
124 | %post -n blas | |
125 | ldconfig | |
126 | ||
127 | %clean | |
128 | rm -fr $RPM_BUILD_ROOT | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %doc README | |
133 | %{_libdir}/liblapack.* | |
134 | ||
135 | %files -n blas | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libblas.* | |
138 | ||
139 | %files -n blas-man -f blasmans | |
140 | %defattr(644,root,root,755) | |
141 | ||
142 | %files man -f lapackmans | |
143 | %defattr(644,root,root,755) |