]>
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 | |
4 | Version: 4.3 | |
b01c0244 | 5 | Release: 2 |
f2a02f09 JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | Source0: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_%{version}.tar.gz | |
9 | # Source0-md5: b72c6309f25e9660133007b82621ba7c | |
10 | Patch0: %{name}-format.patch | |
11 | Patch1: %{name}-shared.patch | |
12 | URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ | |
13 | BuildRequires: blas-devel | |
14 | BuildRequires: libtool >= 2:1.5 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | SuperLU contains a set of subroutines to solve a sparse linear system | |
19 | A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The | |
20 | columns of A may be preordered before factorization; the preordering | |
21 | for sparsity is completely separate from the factorization. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | SuperLU zawiera zbiór procedur do rozwiązywania rzadkich układów | |
25 | równań liniowych A*X=B. Wykorzystuje eliminację Gaussa z częściowym | |
26 | wyborem elementu głównego (GEPP). Kolumny A mogą być wstępnie | |
27 | uporządkowane przed rozkładem; ustalanie kolejności pod kątem | |
28 | rzadkości jest całkowicie odrębne od samego rozkładu. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for SuperLU library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SuperLU | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | Requires: blas-devel | |
36 | ||
37 | %description devel | |
38 | Header files for SuperLU library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki nagłówkowe biblioteki SuperLU. | |
42 | ||
43 | %package static | |
44 | Summary: Static SuperLU library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka SuperLU | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static SuperLU library. | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka SuperLU. | |
54 | ||
55 | %package apidocs | |
56 | Summary: SuperLU API documentation | |
57 | Summary(pl.UTF-8): Dokumentacja API biblioteki SuperLU | |
58 | Group: Documentation | |
59 | ||
60 | %description apidocs | |
61 | API documentation for SuperLU library. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API biblioteki SuperLU. | |
65 | ||
66 | %prep | |
67 | %setup -q -n SuperLU_%{version} | |
68 | %patch0 -p1 | |
69 | %patch1 -p1 | |
70 | ||
71 | %build | |
72 | %{__make} -C SRC \ | |
73 | SuperLUroot=$(pwd) \ | |
74 | BLASLIB="-lblas" \ | |
75 | CC="%{__cc}" \ | |
76 | CFLAGS="%{rpmcflags} -DPRNTlevel=0" \ | |
77 | FFLAGS="%{rpmcflags}" \ | |
78 | LDFLAGS="%{rpmldflags}" \ | |
79 | libdir=%{_libdir} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/superlu} | |
84 | ||
85 | libtool --mode=install install lib/libsuperlu.la $RPM_BUILD_ROOT%{_libdir} | |
86 | cp -p SRC/slu_*.h SRC/super*.h $RPM_BUILD_ROOT%{_includedir}/superlu | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc README | |
97 | %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.0 | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %doc DOC/ug.pdf | |
103 | %attr(755,root,root) %{_libdir}/libsuperlu.so | |
104 | %{_libdir}/libsuperlu.la | |
105 | %{_includedir}/superlu | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libsuperlu.a | |
110 | ||
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
113 | %doc DOC/html/* |