]>
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 |
a1923521 | 4 | Version: 3.1.1 |
86aa7b22 | 5 | Release: 6 |
61effd37 | 6 | License: freely distributable |
4d771884 | 7 | Group: Libraries |
a1923521 | 8 | Source0: http://www.netlib.org/lapack/%{name}-%{version}.tgz |
9 | # Source0-md5: 00b21551a899bcfbaa7b8443e1faeef9 | |
13c97c52 | 10 | Source1: http://www.netlib.org/lapack/manpages-%{version}.tgz |
11 | # Source1-md5: e5b46d8915f7cc8a1e50aa3e70c9f86e | |
448f9206 | 12 | Patch0: %{name}-automake_support.patch |
3c513ef3 | 13 | URL: http://www.netlib.org/lapack/ |
6ec8881e JB |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
a1923521 | 16 | BuildRequires: gcc-fortran |
584ffaf6 JB |
17 | BuildRequires: libtool >= 2:1.5 |
18 | Requires: blas = %{version}-%{release} | |
64123b99 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3c513ef3 | 20 | |
21 | %description | |
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 | |
6ec8881e JB |
32 | is coded in Fortran77. |
33 | ||
eb8f2cff JR |
34 | %description -l pl.UTF-8 |
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 | |
6ec8881e | 44 | napisany w Fortranie 77. |
3c513ef3 | 45 | |
f1593bb3 | 46 | %package devel |
e956dfe5 JB |
47 | Summary: LAPACK development files |
48 | Summary(pl.UTF-8): Pliki programistyczne LAPACK | |
f1593bb3 | 49 | Group: Development/Libraries |
584ffaf6 JB |
50 | Requires: %{name} = %{version}-%{release} |
51 | Requires: blas-devel = %{version}-%{release} | |
1d0d5108 | 52 | Obsoletes: lapack-man |
f1593bb3 | 53 | |
54 | %description devel | |
e956dfe5 | 55 | LAPACK development files. |
f1593bb3 | 56 | |
eb8f2cff | 57 | %description devel -l pl.UTF-8 |
e956dfe5 | 58 | Pliki programistyczne LAPACK. |
f1593bb3 | 59 | |
60 | %package static | |
6ec8881e | 61 | Summary: Static LAPACK libraries |
084ff819 | 62 | Summary(pl.UTF-8): Biblioteki statyczne LAPACK |
f1593bb3 | 63 | Group: Development/Libraries |
584ffaf6 | 64 | Requires: %{name}-devel = %{version}-%{release} |
f1593bb3 | 65 | |
66 | %description static | |
6ec8881e | 67 | Static LAPACK libraries. |
f1593bb3 | 68 | |
eb8f2cff | 69 | %description static -l pl.UTF-8 |
6ec8881e | 70 | Biblioteki statyczne LAPACK. |
f1593bb3 | 71 | |
3c513ef3 | 72 | %package -n blas |
6ec8881e | 73 | Summary: The BLAS (Basic Linear Algebra Subprograms) library for Linux |
084ff819 | 74 | Summary(pl.UTF-8): Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa |
4d771884 | 75 | Group: Libraries |
3c513ef3 | 76 | Obsoletes: lapack-blas |
77 | ||
78 | %description -n 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 | |
6ec8881e JB |
82 | 77. |
83 | ||
1599bb15 RW |
84 | Warning: this is a reference implementation from Netlib. If possible, |
85 | use version optimized for your architecture instead. | |
86 | ||
eb8f2cff JR |
87 | %description -n blas -l pl.UTF-8 |
88 | BLAS (Basic Linear Algebra Subprograms) jest standardową biblioteką | |
89 | numeryczną algebry. Dostarcza wiele podstawowych algorytmów dla | |
90 | algebry liniowej. Jest szybka i dobrze przetestowana, została napisana | |
6ec8881e | 91 | w Fortranie 77. |
3c513ef3 | 92 | |
eb8f2cff JR |
93 | Ostrzeżenie: to jest implementacja przykładowa z repozytorium Netlib. |
94 | Jeżeli to możliwe, należy używać zamiast niej wersji zoptymalizowanej | |
95 | pod daną architekturę. | |
1599bb15 | 96 | |
f1593bb3 | 97 | %package -n blas-devel |
e956dfe5 JB |
98 | Summary: BLAS development files |
99 | Summary(pl.UTF-8): Pliki programistyczne BLAS | |
f1593bb3 | 100 | Group: Development/Libraries |
584ffaf6 | 101 | Requires: blas = %{version}-%{release} |
1d0d5108 | 102 | Obsoletes: blas-man |
f1593bb3 | 103 | |
104 | %description -n blas-devel | |
e956dfe5 | 105 | BLAS development files. |
f1593bb3 | 106 | |
eb8f2cff | 107 | %description -n blas-devel -l pl.UTF-8 |
e956dfe5 | 108 | Pliki programistyczne BLAS. |
f1593bb3 | 109 | |
110 | %package -n blas-static | |
6ec8881e | 111 | Summary: Static BLAS libraries |
084ff819 | 112 | Summary(pl.UTF-8): Biblioteki statyczne BLAS |
f1593bb3 | 113 | Group: Development/Libraries |
584ffaf6 | 114 | Requires: blas-devel = %{version}-%{release} |
f1593bb3 | 115 | |
116 | %description -n blas-static | |
6ec8881e | 117 | Static BLAS libraries. |
f1593bb3 | 118 | |
eb8f2cff | 119 | %description -n blas-static -l pl.UTF-8 |
6ec8881e | 120 | Biblioteki statyczne BLAS. |
f1593bb3 | 121 | |
3c513ef3 | 122 | %prep |
a1923521 | 123 | %setup -q -a1 |
448f9206 | 124 | %patch0 -p1 |
125 | # directory INSTALL conflicts with file INSTALL needed by automake | |
126 | mv -f INSTALL install | |
146eb45a | 127 | # or maybe it should fail while trying to overwrite a file? |
128 | cp -f install/*.f SRC/ | |
3c513ef3 | 129 | |
130 | %build | |
ed70c195 | 131 | %{__libtoolize} |
b3e8fdec | 132 | %{__aclocal} |
133 | %{__autoheader} | |
c3e4ee63 | 134 | %{__autoconf} |
ed70c195 | 135 | %{__automake} |
ea4aa0a4 | 136 | %configure |
ed70c195 | 137 | |
584ffaf6 JB |
138 | %{__make} \ |
139 | LTTAG="--tag=F77" | |
3c513ef3 | 140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
64123b99 | 143 | |
584ffaf6 JB |
144 | %{__make} install \ |
145 | DESTDIR=$RPM_BUILD_ROOT | |
448f9206 | 146 | |
ed70c195 JB |
147 | # present both in blas and lapack |
148 | rm -f man/manl/{lsame,xerbla}.l | |
149 | ||
3d16712d | 150 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
ad555879 | 151 | for d in manpages/man/manl/*.l manpages/blas/man/manl/*.l ; do |
3d16712d JB |
152 | install $d $RPM_BUILD_ROOT%{_mandir}/man3/`basename $d .l`.3 |
153 | done | |
448f9206 | 154 | |
e956dfe5 | 155 | echo "%defattr(644,root,root,755)" > blasmans.list |
ad555879 | 156 | find manpages/blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> blasmans.list |
e956dfe5 | 157 | echo "%defattr(644,root,root,755)" > mans.list |
ad555879 | 158 | find manpages/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list |
448f9206 | 159 | |
6ec8881e JB |
160 | %clean |
161 | rm -fr $RPM_BUILD_ROOT | |
162 | ||
ed70c195 JB |
163 | %post -p /sbin/ldconfig |
164 | %postun -p /sbin/ldconfig | |
1d0d5108 | 165 | |
448f9206 | 166 | %post -n blas -p /sbin/ldconfig |
167 | %postun -n blas -p /sbin/ldconfig | |
3c513ef3 | 168 | |
3c513ef3 | 169 | %files |
170 | %defattr(644,root,root,755) | |
ed70c195 | 171 | %doc README |
f1593bb3 | 172 | %attr(755,root,root) %{_libdir}/liblapack.so.*.*.* |
e956dfe5 | 173 | %attr(755,root,root) %ghost %{_libdir}/liblapack.so.2 |
f1593bb3 | 174 | |
1d0d5108 | 175 | %files devel -f mans.list |
f1593bb3 | 176 | %defattr(644,root,root,755) |
64123b99 JB |
177 | %attr(755,root,root) %{_libdir}/liblapack.so |
178 | %{_libdir}/liblapack.la | |
f1593bb3 | 179 | |
180 | %files static | |
181 | %defattr(644,root,root,755) | |
182 | %{_libdir}/liblapack.a | |
3c513ef3 | 183 | |
ea4aa0a4 | 184 | %files -n blas |
3c513ef3 | 185 | %defattr(644,root,root,755) |
d51e15b2 | 186 | %attr(755,root,root) %{_libdir}/libblas.so.*.*.* |
e956dfe5 | 187 | %attr(755,root,root) %ghost %{_libdir}/libblas.so.2 |
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 |