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