]>
Commit | Line | Data |
---|---|---|
cf338763 | 1 | Summary: The CLAPACK libraries for numerical linear algebra |
d72262eb | 2 | Summary(pl.UTF-8): Biblioteki numeryczne CLAPACK do algebry liniowej |
cf338763 | 3 | Name: clapack |
ee7208ad | 4 | Version: 3.2.1 |
7a57575b | 5 | Release: 4 |
23508fee | 6 | License: freely distributable |
cf338763 | 7 | Group: Development/Libraries |
ee7208ad AM |
8 | Source0: http://www.netlib.org/clapack/%{name}-%{version}-CMAKE.tgz |
9 | # Source0-md5: 4fd18eb33f3ff8c5d65a7d43913d661b | |
10 | Patch0: %{name}-%{version}-fix_include_file.patch | |
11 | Patch1: %{name}-%{version}-noblasf2c.patch | |
12 | Patch2: %{name}-%{version}-hang.patch | |
13 | Patch3: %{name}-%{version}-findblas-r6.patch | |
2be0e942 | 14 | URL: http://www.netlib.org/clapack/ |
ee7208ad | 15 | BuildRequires: cmake |
5faac254 | 16 | BuildRequires: gcc-fortran |
2faaeb92 | 17 | BuildRequires: libf2c-devel |
322ffb04 | 18 | BuildRequires: libtool >= 1:1.4.2-9 |
cf338763 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cf338763 | 20 | |
21 | %description | |
9dd3863a | 22 | CLAPACK (Linear Algebra PACKage) is a standard library for numerical |
23 | linear algebra. CLAPACK provides routines for solving systems of | |
cf338763 | 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) | |
9dd3863a | 29 | are also included. CLAPACK can handle dense and banded matrices, but |
cf338763 | 30 | not general sparse matrices. Similar functionality is provided for |
9dd3863a | 31 | real and complex matrices in both single and double precision. CLAPACK |
32 | is coded in Fortran77 and translated to C using f2c. | |
cf338763 | 33 | |
6e8c0952 JR |
34 | %description -l pl.UTF-8 |
35 | CLAPACK (Linear Algebra PACKage) jest standardową biblioteką | |
36 | numeryczną do algebry liniowej. Dostarcza funkcje rozwiązywania: | |
37 | układów równań liniowych, układów równań metodą najmniejszych | |
38 | kwadratów, problemów własnych. Zawiera algorytmy faktoryzacji macierzy | |
39 | (LU, Cholesky'ego, QR, SVD, Schura, uogólnioną Schura) i związanych z | |
40 | tym obliczeń (np. przenumerowanie w faktoryzacji Schura i estymację | |
41 | uwarunkowania). CLAPACK może obsługiwać macierze blokowe i pasmowe, | |
42 | ale nie rzadkie w ogólnym przypadku. Zapewnia funkcjonalność dla | |
2598dba2 | 43 | macierzy rzeczywistych i zespolonych, dla liczb pojedynczej i |
6e8c0952 JR |
44 | podwójnej precyzji. CLAPACK jest napisany w Fortranie 77 i |
45 | przetłumaczony na C przy użyciu f2c. | |
cf338763 | 46 | |
47 | %package devel | |
9dd3863a | 48 | Summary: CLAPACK header files |
d72262eb | 49 | Summary(pl.UTF-8): Pliki nagłówkowe CLAPACK |
cf338763 | 50 | Group: Development/Libraries |
4c1847e6 | 51 | Requires: %{name} = %{version}-%{release} |
cf338763 | 52 | |
53 | %description devel | |
9dd3863a | 54 | CLAPACK header files. |
cf338763 | 55 | |
6e8c0952 JR |
56 | %description devel -l pl.UTF-8 |
57 | Pliki nagłówkowe CLAPACK. | |
cf338763 | 58 | |
59 | %package static | |
9dd3863a | 60 | Summary: Static CLAPACK libraries |
d72262eb | 61 | Summary(pl.UTF-8): Biblioteki statyczne CLAPACK |
cf338763 | 62 | Group: Development/Libraries |
4c1847e6 | 63 | Requires: %{name}-devel = %{version}-%{release} |
cf338763 | 64 | |
65 | %description static | |
9dd3863a | 66 | Static CLAPACK libraries. |
cf338763 | 67 | |
6e8c0952 | 68 | %description static -l pl.UTF-8 |
9dd3863a | 69 | Biblioteki statyczne CLAPACK. |
cf338763 | 70 | |
cf338763 | 71 | %prep |
ee7208ad | 72 | %setup -q -n %{name}-%{version}-CMAKE |
9dd3863a | 73 | %patch0 -p1 |
ee7208ad AM |
74 | %patch1 -p1 |
75 | %patch2 -p1 | |
76 | %patch3 -p1 | |
cf338763 | 77 | |
78 | %build | |
ee7208ad AM |
79 | install -d build |
80 | cd build | |
81 | %cmake \ | |
82 | .. | |
83 | ||
cf338763 | 84 | %{__make} |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
322ffb04 | 88 | |
ee7208ad | 89 | %{__make} -C build install \ |
5792a493 | 90 | DESTDIR=$RPM_BUILD_ROOT |
cf338763 | 91 | |
cf338763 | 92 | %clean |
2a6dd835 | 93 | rm -rf $RPM_BUILD_ROOT |
cf338763 | 94 | |
322ffb04 JB |
95 | %post -p /sbin/ldconfig |
96 | %postun -p /sbin/ldconfig | |
cf338763 | 97 | |
cf338763 | 98 | %files |
99 | %defattr(644,root,root,755) | |
100 | %doc README* | |
9dd3863a | 101 | %attr(755,root,root) %{_libdir}/libclapack.so.*.*.* |
cf338763 | 102 | |
7f4af6bc | 103 | %files devel |
cf338763 | 104 | %defattr(644,root,root,755) |
9dd3863a | 105 | %{_libdir}/libclapack.so |
ee7208ad AM |
106 | %{_includedir}/clapack |
107 | %{_datadir}/cmake/Modules/clapack*.cmake |