]>
Commit | Line | Data |
---|---|---|
1d0d5108 | 1 | Summary: The LAPACK libraries for numerical linear algebra |
084ff819 | 2 | Summary(pl.UTF-8): Biblioteki numeryczne LAPACK do algebry liniowej |
3c513ef3 | 3 | Name: lapack |
4 | Version: 3.0 | |
873af485 | 5 | Release: 19 |
61effd37 | 6 | License: freely distributable |
3c513ef3 | 7 | Group: Development/Libraries |
c5eb3977 | 8 | Source0: http://www.netlib.org/lapack/%{name}.tgz |
0e301ae7 | 9 | # Source0-md5: a24f59304f87b78cdc7da2ae59c98664 |
c5eb3977 | 10 | Source1: http://www.netlib.org/lapack/manpages.tgz |
0e301ae7 | 11 | # Source1-md5: 50efab6cd73a9429584f7f1537f1727f |
448f9206 | 12 | Patch0: %{name}-automake_support.patch |
ab74ae1b | 13 | Patch1: %{name}-20010525.patch |
873af485 | 14 | Patch2: %{name}-gcc420.patch |
3c513ef3 | 15 | URL: http://www.netlib.org/lapack/ |
6ec8881e JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
4863fd81 | 18 | BuildRequires: gcc-g77 |
584ffaf6 JB |
19 | BuildRequires: libtool >= 2:1.5 |
20 | Requires: blas = %{version}-%{release} | |
64123b99 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3c513ef3 | 22 | |
23 | %description | |
24 | LAPACK (Linear Algebra PACKage) is a standard library for numerical | |
25 | linear algebra. LAPACK provides routines for solving systems of | |
26 | simultaneous linear equations, least-squares solutions of linear | |
27 | systems of equations, eigenvalue problems, and singular value | |
28 | problems. Associated matrix factorizations (LU, Cholesky, QR, SVD, | |
29 | Schur, and generalized Schur) and related computations (i.e., | |
30 | reordering of Schur factorizations and estimating condition numbers) | |
31 | are also included. LAPACK can handle dense and banded matrices, but | |
32 | not general sparse matrices. Similar functionality is provided for | |
33 | real and complex matrices in both single and double precision. LAPACK | |
6ec8881e JB |
34 | is coded in Fortran77. |
35 | ||
eb8f2cff JR |
36 | %description -l pl.UTF-8 |
37 | LAPACK (Linear Algebra PACKage) jest standardową biblioteką numeryczną | |
38 | do algebry liniowej. Dostarcza funkcje rozwiązywania: układów równań | |
39 | liniowych, układów równań metodą najmniejszych kwadratów, problemów | |
40 | własnych. Zawiera algorytmy faktoryzacji macierzy (LU, Cholesky'ego, | |
41 | QR, SVD, Schura, uogólnioną Schura) i związanych z tym obliczeń (np. | |
42 | przenumerowywanie w faktoryzacji Schura i estymację uwarunkowania). | |
43 | LAPACK może obsługiwać macierze blokowe i pasmowe, ale nie rzadkie w | |
44 | ogólnym przypadku. Zapewnia funkcjonalność dla macierzy rzeczywistych | |
45 | i zespolonych, dla liczb pojedynczej i podwójnej precyzji. LAPACK jest | |
6ec8881e | 46 | napisany w Fortranie 77. |
3c513ef3 | 47 | |
f1593bb3 | 48 | %package devel |
6ec8881e | 49 | Summary: LAPACK header files |
084ff819 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe LAPACK |
f1593bb3 | 51 | Group: Development/Libraries |
584ffaf6 JB |
52 | Requires: %{name} = %{version}-%{release} |
53 | Requires: blas-devel = %{version}-%{release} | |
1d0d5108 | 54 | Obsoletes: lapack-man |
f1593bb3 | 55 | |
56 | %description devel | |
6ec8881e | 57 | LAPACK header files. |
f1593bb3 | 58 | |
eb8f2cff JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe LAPACK. | |
f1593bb3 | 61 | |
62 | %package static | |
6ec8881e | 63 | Summary: Static LAPACK libraries |
084ff819 | 64 | Summary(pl.UTF-8): Biblioteki statyczne LAPACK |
f1593bb3 | 65 | Group: Development/Libraries |
584ffaf6 | 66 | Requires: %{name}-devel = %{version}-%{release} |
f1593bb3 | 67 | |
68 | %description static | |
6ec8881e | 69 | Static LAPACK libraries. |
f1593bb3 | 70 | |
eb8f2cff | 71 | %description static -l pl.UTF-8 |
6ec8881e | 72 | Biblioteki statyczne LAPACK. |
f1593bb3 | 73 | |
3c513ef3 | 74 | %package -n blas |
6ec8881e | 75 | Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux |
084ff819 | 76 | Summary(pl.UTF-8): Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa |
3c513ef3 | 77 | Group: Development/Libraries |
3c513ef3 | 78 | Obsoletes: lapack-blas |
79 | ||
80 | %description -n blas | |
81 | BLAS (Basic Linear Algebra Subprograms) is a standard library for | |
82 | numerical algebra. BLAS provides a number of basic algorithms for | |
83 | linear algebra. BLAS is fast and well-tested, was written in FORTRAN | |
6ec8881e JB |
84 | 77. |
85 | ||
1599bb15 RW |
86 | Warning: this is a reference implementation from Netlib. If possible, |
87 | use version optimized for your architecture instead. | |
88 | ||
eb8f2cff JR |
89 | %description -n blas -l pl.UTF-8 |
90 | BLAS (Basic Linear Algebra Subprograms) jest standardową biblioteką | |
91 | numeryczną algebry. Dostarcza wiele podstawowych algorytmów dla | |
92 | algebry liniowej. Jest szybka i dobrze przetestowana, została napisana | |
6ec8881e | 93 | w Fortranie 77. |
3c513ef3 | 94 | |
eb8f2cff JR |
95 | Ostrzeżenie: to jest implementacja przykładowa z repozytorium Netlib. |
96 | Jeżeli to możliwe, należy używać zamiast niej wersji zoptymalizowanej | |
97 | pod daną architekturę. | |
1599bb15 | 98 | |
f1593bb3 | 99 | %package -n blas-devel |
6ec8881e | 100 | Summary: BLAS header files |
084ff819 | 101 | Summary(pl.UTF-8): Pliki nagłówkowe BLAS |
f1593bb3 | 102 | Group: Development/Libraries |
584ffaf6 | 103 | Requires: blas = %{version}-%{release} |
1d0d5108 | 104 | Obsoletes: blas-man |
f1593bb3 | 105 | |
106 | %description -n blas-devel | |
6ec8881e | 107 | BLAS header files. |
f1593bb3 | 108 | |
eb8f2cff JR |
109 | %description -n blas-devel -l pl.UTF-8 |
110 | Pliki nagłówkowe BLAS. | |
f1593bb3 | 111 | |
112 | %package -n blas-static | |
6ec8881e | 113 | Summary: Static BLAS libraries |
084ff819 | 114 | Summary(pl.UTF-8): Biblioteki statyczne BLAS |
f1593bb3 | 115 | Group: Development/Libraries |
584ffaf6 | 116 | Requires: blas-devel = %{version}-%{release} |
f1593bb3 | 117 | |
118 | %description -n blas-static | |
6ec8881e | 119 | Static BLAS libraries. |
f1593bb3 | 120 | |
eb8f2cff | 121 | %description -n blas-static -l pl.UTF-8 |
6ec8881e | 122 | Biblioteki statyczne BLAS. |
f1593bb3 | 123 | |
3c513ef3 | 124 | %prep |
d51e15b2 | 125 | %setup -q -a1 -n LAPACK |
448f9206 | 126 | %patch0 -p1 |
ab74ae1b | 127 | %patch1 -p1 |
873af485 | 128 | %patch2 -p1 |
448f9206 | 129 | # directory INSTALL conflicts with file INSTALL needed by automake |
130 | mv -f INSTALL install | |
3c513ef3 | 131 | |
132 | %build | |
ed70c195 | 133 | %{__libtoolize} |
b3e8fdec | 134 | %{__aclocal} |
135 | %{__autoheader} | |
c3e4ee63 | 136 | %{__autoconf} |
ed70c195 | 137 | %{__automake} |
ea4aa0a4 | 138 | %configure |
ed70c195 | 139 | |
584ffaf6 JB |
140 | %{__make} \ |
141 | LTTAG="--tag=F77" | |
3c513ef3 | 142 | |
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
64123b99 | 145 | |
584ffaf6 JB |
146 | %{__make} install \ |
147 | DESTDIR=$RPM_BUILD_ROOT | |
448f9206 | 148 | |
ed70c195 JB |
149 | # present both in blas and lapack |
150 | rm -f man/manl/{lsame,xerbla}.l | |
151 | ||
3d16712d JB |
152 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
153 | for d in man/manl/*.l blas/man/manl/*.l ; do | |
154 | install $d $RPM_BUILD_ROOT%{_mandir}/man3/`basename $d .l`.3 | |
155 | done | |
448f9206 | 156 | |
157 | echo "%defattr(644, root, root, 755)" > blasmans.list | |
3d16712d | 158 | find blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> blasmans.list |
448f9206 | 159 | echo "%defattr(644, root, root, 755)" > mans.list |
3d16712d | 160 | find man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list |
448f9206 | 161 | |
6ec8881e JB |
162 | %clean |
163 | rm -fr $RPM_BUILD_ROOT | |
164 | ||
ed70c195 JB |
165 | %post -p /sbin/ldconfig |
166 | %postun -p /sbin/ldconfig | |
1d0d5108 | 167 | |
448f9206 | 168 | %post -n blas -p /sbin/ldconfig |
169 | %postun -n blas -p /sbin/ldconfig | |
3c513ef3 | 170 | |
3c513ef3 | 171 | %files |
172 | %defattr(644,root,root,755) | |
ed70c195 | 173 | %doc README |
f1593bb3 | 174 | %attr(755,root,root) %{_libdir}/liblapack.so.*.*.* |
175 | ||
1d0d5108 | 176 | %files devel -f mans.list |
f1593bb3 | 177 | %defattr(644,root,root,755) |
64123b99 JB |
178 | %attr(755,root,root) %{_libdir}/liblapack.so |
179 | %{_libdir}/liblapack.la | |
f1593bb3 | 180 | |
181 | %files static | |
182 | %defattr(644,root,root,755) | |
183 | %{_libdir}/liblapack.a | |
3c513ef3 | 184 | |
ea4aa0a4 | 185 | %files -n blas |
3c513ef3 | 186 | %defattr(644,root,root,755) |
d51e15b2 | 187 | %attr(755,root,root) %{_libdir}/libblas.so.*.*.* |
f1593bb3 | 188 | |
1d0d5108 | 189 | %files -n blas-devel -f blasmans.list |
f1593bb3 | 190 | %defattr(644,root,root,755) |
64123b99 JB |
191 | %attr(755,root,root) %{_libdir}/libblas.so |
192 | %{_libdir}/libblas.la | |
f1593bb3 | 193 | |
194 | %files -n blas-static | |
195 | %defattr(644,root,root,755) | |
196 | %{_libdir}/libblas.a |