]>
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 | |
bd2c535d | 5 | Release: 3 |
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 | |
bd2c535d ER |
59 | %if "%{_rpmversion}" >= "5" |
60 | BuildArch: noarch | |
61 | %endif | |
f2a02f09 JB |
62 | |
63 | %description apidocs | |
64 | API documentation for SuperLU library. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki SuperLU. | |
68 | ||
69 | %prep | |
bd2c535d | 70 | %setup -q -n %{name}_%{version} |
f2a02f09 JB |
71 | %patch0 -p1 |
72 | %patch1 -p1 | |
73 | ||
74 | %build | |
75 | %{__make} -C SRC \ | |
76 | SuperLUroot=$(pwd) \ | |
77 | BLASLIB="-lblas" \ | |
78 | CC="%{__cc}" \ | |
79 | CFLAGS="%{rpmcflags} -DPRNTlevel=0" \ | |
80 | FFLAGS="%{rpmcflags}" \ | |
81 | LDFLAGS="%{rpmldflags}" \ | |
82 | libdir=%{_libdir} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/superlu} | |
87 | ||
88 | libtool --mode=install install lib/libsuperlu.la $RPM_BUILD_ROOT%{_libdir} | |
89 | cp -p SRC/slu_*.h SRC/super*.h $RPM_BUILD_ROOT%{_includedir}/superlu | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc README | |
100 | %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.0 | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %doc DOC/ug.pdf | |
106 | %attr(755,root,root) %{_libdir}/libsuperlu.so | |
107 | %{_libdir}/libsuperlu.la | |
108 | %{_includedir}/superlu | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libsuperlu.a | |
113 | ||
114 | %files apidocs | |
115 | %defattr(644,root,root,755) | |
116 | %doc DOC/html/* |