]>
Commit | Line | Data |
---|---|---|
1c8dd48f JB |
1 | # TODO: MPI, iso_c_binding |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without static_libs | |
5 | ||
6 | Summary: Subroutines for solving large scale eigenvalue problems | |
7 | Summary(pl.UTF-8): Rozwiązywanie zagadnienia własnego dla dużych macierzy | |
8 | Name: arpack-ng | |
f57bddc6 | 9 | Version: 3.9.1 |
1c8dd48f JB |
10 | Release: 1 |
11 | License: BSD | |
12 | Group: Libraries | |
13 | #Source0Download: https://github.com/opencollab/arpack-ng/tags | |
14 | Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/%{name}-%{version}.tar.gz | |
f57bddc6 | 15 | # Source0-md5: 8f66485ae9d7e676b42aeead2bf5757e |
1c8dd48f | 16 | URL: https://github.com/opencollab/arpack-ng |
1c8dd48f | 17 | BuildRequires: blas-devel |
a51c54e9 | 18 | BuildRequires: cmake >= 3.0 |
1c8dd48f JB |
19 | BuildRequires: gcc-g77 |
20 | BuildRequires: lapack-devel | |
21 | BuildRequires: libstdc++-devel | |
1c8dd48f JB |
22 | BuildRequires: pkgconfig |
23 | Provides: arpack = %{version}-%{release} | |
24 | Obsoletes: arpack < 3 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | ARPACK software is capable of solving large scale symmetric, | |
29 | nonsymmetric, and generalized eigenproblems from significant | |
30 | application areas. The software is designed to compute a few (k) | |
31 | eigenvalues with user specified features such as those of largest real | |
32 | part or largest magnitude. Storage requirements are on the order of | |
33 | n*k locations. No auxiliary storage is required. A set of Schur basis | |
34 | vectors for the desired k-dimensional eigen-space is computed which is | |
35 | numerically orthogonal to working precision. Numerically accurate | |
36 | eigenvectors are available on request. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Rozwiązywanie zagadnienia własnego (symetrycznego, niesymetrycznego, | |
40 | ogólnego) dla dużych macierzy. Macierz może być dowolna, przy czym | |
41 | procedury działają szczególnie dobrze w przypadku dużych macierzy | |
42 | rzadkich bądź macierzy ze znaną strukturą. Biblioteka służy do | |
43 | obliczenia kilku (k) wartości własnych o zadanych z góry własnościach, | |
44 | takich jak największa (najmniejsza) część rzeczywista albo największy | |
45 | (najmniejszy) moduł. Wymagania pamięciowe są rzędu n*k, żadna | |
46 | dodatkowa pamięć (np. dyskowa) nie jest wymagana. | |
47 | ||
48 | %package devel | |
49 | Summary: ARPACK development files | |
50 | Summary(pl.UTF-8): Pliki programistyczne ARPACK | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: blas-devel | |
a51c54e9 | 54 | Requires: lapack-devel |
1c8dd48f JB |
55 | Provides: arpack-devel = %{version}-%{release} |
56 | Obsoletes: arpack-devel < 3 | |
57 | ||
58 | %description devel | |
59 | ARPACK development files. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki programistyczne ARPACK. | |
63 | ||
64 | %package static | |
65 | Summary: Static ARPACK library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka ARPACK | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | Provides: arpack-static = %{version}-%{release} | |
70 | Obsoletes: arpack-static < 3 | |
71 | ||
72 | %description static | |
73 | Static ARPACK library. | |
74 | ||
75 | %description static -l pl.UTF-8 | |
76 | Statyczna biblioteka ARPACK. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
a51c54e9 JB |
82 | %if %{with static_libs} |
83 | install -d build-static | |
84 | cd build-static | |
85 | %cmake .. \ | |
86 | -DBUILD_SHARED_LIBS=OFF \ | |
87 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
88 | -DICB=ON | |
89 | %{__make} | |
90 | cd .. | |
91 | %endif | |
92 | install -d build | |
93 | cd build | |
94 | %cmake .. \ | |
95 | -DICB=ON | |
1c8dd48f | 96 | %{__make} |
a51c54e9 | 97 | cd .. |
1c8dd48f JB |
98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
a51c54e9 JB |
102 | %if %{with static_libs} |
103 | %{__make} -C build-static install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | %endif | |
106 | ||
107 | %{__make} -C build install \ | |
1c8dd48f JB |
108 | DESTDIR=$RPM_BUILD_ROOT |
109 | ||
1c8dd48f JB |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %doc CHANGES COPYING PARPACK_CHANGES README.md TODO | |
119 | %attr(755,root,root) %{_libdir}/libarpack.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libarpack.so.2 | |
121 | ||
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %doc DOCUMENTS/*.doc | |
125 | %attr(755,root,root) %{_libdir}/libarpack.so | |
f57bddc6 | 126 | %{_includedir}/arpack |
1c8dd48f | 127 | %{_pkgconfigdir}/arpack.pc |
f57bddc6 | 128 | %if %{with mpi} |
597de303 | 129 | %{_pkgconfigdir}/parpack.pc |
f57bddc6 | 130 | %endif |
a51c54e9 | 131 | %{_libdir}/cmake/arpackng |
1c8dd48f JB |
132 | |
133 | %if %{with static_libs} | |
134 | %files static | |
135 | %defattr(644,root,root,755) | |
136 | %{_libdir}/libarpack.a | |
137 | %endif |