]>
Commit | Line | Data |
---|---|---|
e821399d RW |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with acml # With ACML version of BLAS instead of NETLIB implementation | |
5f75c7f8 | 4 | # |
f36cbeb0 | 5 | %define rel 13 |
12aa51af | 6 | Summary: Subroutines for solving large scale eigenvalue problems |
d96d6274 | 7 | Summary(pl.UTF-8): Rozwiązywanie zagadnienia własnego dla dużych macierzy |
388c4eda JB |
8 | Name: arpack |
9 | Version: 2.1 | |
d2aaeb11 | 10 | Release: %{rel}%{?with_acml:ACML} |
388c4eda | 11 | License: Freely distributable |
0f2a6b97 | 12 | Group: Libraries |
388c4eda | 13 | Source0: http://www.caam.rice.edu/software/ARPACK/SRC/%{name}96.tar.gz |
0f2a6b97 | 14 | # Source0-md5: fffaa970198b285676f4156cebc8626e |
388c4eda | 15 | Source1: http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz |
0f2a6b97 | 16 | # Source1-md5: 14830d758f195f272b8594a493501fa2 |
bf67c3ff RW |
17 | Source2: http://www.caam.rice.edu/software/ARPACK/SRC/ug.ps.gz |
18 | # Source2-md5: 79cc51e4812c75873adafcad2185842e | |
19 | Source3: http://www.caam.rice.edu/software/ARPACK/SRC/P57_58.ps.gz | |
20 | # Source3-md5: b86d77199f989fc438acaf7ac0433e76 | |
21 | Source4: http://www.caam.rice.edu/software/ARPACK/SRC/P61_62.ps.gz | |
22 | # Source4-md5: d116887acb3d61fecf645c2d37d4d517 | |
bb56de9d JB |
23 | # originally from http://mathema.tician.de/news.tiker.net/files/arpack-arscnd-3.patch.gz (dead now) |
24 | Patch0: %{name}-arscnd-3.patch | |
a8025ed2 AM |
25 | Patch1: %{name}-automake_support.patch |
26 | Patch2: %{name}-no_etime.patch | |
0f2a6b97 | 27 | URL: http://www.caam.rice.edu/software/ARPACK/ |
388c4eda JB |
28 | BuildRequires: autoconf |
29 | BuildRequires: automake | |
0f2a6b97 | 30 | BuildRequires: gcc-g77 |
dbbba066 | 31 | BuildRequires: libtool >= 2:1.5 |
0ab41560 | 32 | %{!?with_acml:BuildRequires: lapack-devel} |
5f75c7f8 | 33 | %{?with_acml:ExclusiveArch: %{x8664}} |
388c4eda JB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | ARPACK software is capable of solving large scale symmetric, | |
38 | nonsymmetric, and generalized eigenproblems from significant | |
39 | application areas. The software is designed to compute a few (k) | |
40 | eigenvalues with user specified features such as those of largest real | |
41 | part or largest magnitude. Storage requirements are on the order of | |
42 | n*k locations. No auxiliary storage is required. A set of Schur basis | |
43 | vectors for the desired k-dimensional eigen-space is computed which is | |
44 | numerically orthogonal to working precision. Numerically accurate | |
45 | eigenvectors are available on request. | |
46 | ||
73725317 JR |
47 | %description -l pl.UTF-8 |
48 | Rozwiązywanie zagadnienia własnego (symetrycznego, niesymetrycznego, | |
49 | ogólnego) dla dużych macierzy. Macierz może być dowolna, przy czym | |
50 | procedury działają szczególnie dobrze w przypadku dużych macierzy | |
51 | rzadkich bądź macierzy ze znaną strukturą. Biblioteka służy do | |
52 | obliczenia kilku (k) wartości własnych o zadanych z góry własnościach, | |
53 | takich jak największa (najmniejsza) część rzeczywista albo największy | |
54 | (najmniejszy) moduł. Wymagania pamięciowe są rzędu n*k, żadna | |
55 | dodatkowa pamięć (np. dyskowa) nie jest wymagana. | |
388c4eda JB |
56 | |
57 | %package devel | |
0f2a6b97 | 58 | Summary: ARPACK development files |
d96d6274 | 59 | Summary(pl.UTF-8): Pliki programistyczne ARPACK |
388c4eda | 60 | Group: Development/Libraries |
dbbba066 | 61 | Requires: %{name} = %{version}-%{release} |
e821399d | 62 | %{!?with_acml:Requires: blas-devel} |
388c4eda JB |
63 | |
64 | %description devel | |
0f2a6b97 | 65 | ARPACK development files. |
388c4eda | 66 | |
73725317 | 67 | %description devel -l pl.UTF-8 |
0f2a6b97 | 68 | Pliki programistyczne ARPACK. |
388c4eda JB |
69 | |
70 | %package static | |
0f2a6b97 | 71 | Summary: Static ARPACK library |
d96d6274 | 72 | Summary(pl.UTF-8): Statyczna biblioteka ARPACK |
388c4eda | 73 | Group: Development/Libraries |
dbbba066 | 74 | Requires: %{name}-devel = %{version}-%{release} |
388c4eda JB |
75 | |
76 | %description static | |
0f2a6b97 | 77 | Static ARPACK library. |
388c4eda | 78 | |
73725317 | 79 | %description static -l pl.UTF-8 |
0f2a6b97 | 80 | Statyczna biblioteka ARPACK. |
388c4eda JB |
81 | |
82 | %prep | |
3992026d | 83 | %setup -q -n ARPACK -b1 |
e5c694c2 | 84 | %patch0 -p1 |
fb9bad1f | 85 | %patch1 -p1 |
a8025ed2 | 86 | %patch2 -p1 |
bf67c3ff RW |
87 | cp %{SOURCE2} . |
88 | cp %{SOURCE3} . | |
89 | cp %{SOURCE4} . | |
388c4eda JB |
90 | |
91 | %build | |
388c4eda JB |
92 | %{__libtoolize} |
93 | %{__aclocal} | |
94 | %{__autoheader} | |
95 | %{__autoconf} | |
96 | %{__automake} | |
0ab41560 | 97 | %configure |
e821399d | 98 | |
dbbba066 | 99 | %{__make} |
388c4eda JB |
100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
0f2a6b97 JB |
104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
388c4eda JB |
106 | |
107 | %clean | |
4a257fc4 | 108 | rm -rf $RPM_BUILD_ROOT |
388c4eda JB |
109 | |
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc README | |
116 | %attr(755,root,root) %{_libdir}/libarpack.so.*.*.* | |
3a060c33 | 117 | %attr(755,root,root) %ghost %{_libdir}/libarpack.so.2 |
388c4eda JB |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
bf67c3ff | 121 | %doc DOCUMENTS/*.doc *.ps.gz |
c8932703 | 122 | %attr(755,root,root) %{_libdir}/libarpack.so |
388c4eda JB |
123 | %{_libdir}/libarpack.la |
124 | ||
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libarpack.a |