]>
Commit | Line | Data |
---|---|---|
f2a02f09 JB |
1 | Summary: Subroutines to solve a sparse linear system A*X=B |
2 | Summary(pl.UTF-8): Procedury do rozwiązywania rzadkich układów równań liniowych A*X=B | |
3 | Name: SuperLU | |
3bb9c8d6 JB |
4 | Version: 5.1.1 |
5 | Release: 1 | |
f2a02f09 JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | Source0: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_%{version}.tar.gz | |
3bb9c8d6 JB |
9 | # Source0-md5: 260a3cd90b2100122abff38587a8290a |
10 | Patch0: %{name}-shared.patch | |
f2a02f09 JB |
11 | URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ |
12 | BuildRequires: blas-devel | |
3bb9c8d6 JB |
13 | BuildRequires: cmake >= 2.8.12 |
14 | BuildRequires: gcc-fortran | |
f2a02f09 JB |
15 | BuildRequires: libtool >= 2:1.5 |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | SuperLU contains a set of subroutines to solve a sparse linear system | |
20 | A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The | |
21 | columns of A may be preordered before factorization; the preordering | |
22 | for sparsity is completely separate from the factorization. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | SuperLU zawiera zbiór procedur do rozwiązywania rzadkich układów | |
26 | równań liniowych A*X=B. Wykorzystuje eliminację Gaussa z częściowym | |
27 | wyborem elementu głównego (GEPP). Kolumny A mogą być wstępnie | |
28 | uporządkowane przed rozkładem; ustalanie kolejności pod kątem | |
29 | rzadkości jest całkowicie odrębne od samego rozkładu. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for SuperLU library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SuperLU | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: blas-devel | |
3bb9c8d6 | 37 | Obsoletes: SuperLU-static |
f2a02f09 JB |
38 | |
39 | %description devel | |
40 | Header files for SuperLU library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki SuperLU. | |
44 | ||
f2a02f09 JB |
45 | %package apidocs |
46 | Summary: SuperLU API documentation | |
47 | Summary(pl.UTF-8): Dokumentacja API biblioteki SuperLU | |
48 | Group: Documentation | |
bd2c535d ER |
49 | %if "%{_rpmversion}" >= "5" |
50 | BuildArch: noarch | |
51 | %endif | |
f2a02f09 JB |
52 | |
53 | %description apidocs | |
54 | API documentation for SuperLU library. | |
55 | ||
56 | %description apidocs -l pl.UTF-8 | |
57 | Dokumentacja API biblioteki SuperLU. | |
58 | ||
59 | %prep | |
bd2c535d | 60 | %setup -q -n %{name}_%{version} |
f2a02f09 | 61 | %patch0 -p1 |
f2a02f09 JB |
62 | |
63 | %build | |
3bb9c8d6 JB |
64 | install -d build |
65 | cd build | |
66 | %cmake .. | |
67 | ||
68 | %{__make} | |
f2a02f09 JB |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
f2a02f09 | 72 | |
3bb9c8d6 JB |
73 | %{__make} -C build install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
f2a02f09 JB |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc README | |
85 | %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.* | |
3bb9c8d6 | 86 | %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.5.1 |
f2a02f09 JB |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %doc DOC/ug.pdf | |
91 | %attr(755,root,root) %{_libdir}/libsuperlu.so | |
f2a02f09 JB |
92 | %{_includedir}/superlu |
93 | ||
f2a02f09 JB |
94 | %files apidocs |
95 | %defattr(644,root,root,755) | |
96 | %doc DOC/html/* |