]>
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 | |
ffbf6930 JB |
4 | Version: 5.2.2 |
5 | Release: 1 | |
f2a02f09 JB |
6 | License: BSD |
7 | Group: Libraries | |
ffbf6930 JB |
8 | #Source0Download: https://github.com/xiaoyeli/superlu/releases |
9 | Source0: https://github.com/xiaoyeli/superlu/archive/v%{version}/superlu-%{version}.tar.gz | |
10 | # Source0-md5: 1e93259572bd2412674ed809a1446bd3 | |
3bb9c8d6 | 11 | Patch0: %{name}-shared.patch |
ffbf6930 | 12 | URL: https://portal.nersc.gov/project/sparse/superlu/ |
f2a02f09 | 13 | BuildRequires: blas-devel |
3bb9c8d6 JB |
14 | BuildRequires: cmake >= 2.8.12 |
15 | BuildRequires: gcc-fortran | |
ffbf6930 | 16 | BuildRequires: rpmbuild(macros) >= 1.752 |
f2a02f09 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | SuperLU contains a set of subroutines to solve a sparse linear system | |
21 | A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The | |
22 | columns of A may be preordered before factorization; the preordering | |
23 | for sparsity is completely separate from the factorization. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | SuperLU zawiera zbiór procedur do rozwiązywania rzadkich układów | |
27 | równań liniowych A*X=B. Wykorzystuje eliminację Gaussa z częściowym | |
28 | wyborem elementu głównego (GEPP). Kolumny A mogą być wstępnie | |
29 | uporządkowane przed rozkładem; ustalanie kolejności pod kątem | |
30 | rzadkości jest całkowicie odrębne od samego rozkładu. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for SuperLU library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SuperLU | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: blas-devel | |
3bb9c8d6 | 38 | Obsoletes: SuperLU-static |
f2a02f09 JB |
39 | |
40 | %description devel | |
41 | Header files for SuperLU library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki SuperLU. | |
45 | ||
f2a02f09 JB |
46 | %package apidocs |
47 | Summary: SuperLU API documentation | |
48 | Summary(pl.UTF-8): Dokumentacja API biblioteki SuperLU | |
49 | Group: Documentation | |
ffbf6930 | 50 | %{?noarchpackage} |
f2a02f09 JB |
51 | |
52 | %description apidocs | |
53 | API documentation for SuperLU library. | |
54 | ||
55 | %description apidocs -l pl.UTF-8 | |
56 | Dokumentacja API biblioteki SuperLU. | |
57 | ||
58 | %prep | |
ffbf6930 | 59 | %setup -q -n superlu-%{version} |
f2a02f09 | 60 | %patch0 -p1 |
f2a02f09 JB |
61 | |
62 | %build | |
3bb9c8d6 JB |
63 | install -d build |
64 | cd build | |
ffbf6930 | 65 | # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR |
dc80a11b | 66 | %cmake .. \ |
ffbf6930 JB |
67 | -DCMAKE_INSTALL_INCLUDEDIR=include/superlu \ |
68 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
69 | -Denable_internal_blaslib=OFF | |
3bb9c8d6 JB |
70 | |
71 | %{__make} | |
f2a02f09 JB |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
f2a02f09 | 75 | |
3bb9c8d6 JB |
76 | %{__make} -C build install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
f2a02f09 JB |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
ffbf6930 | 87 | %doc License.txt README |
f2a02f09 | 88 | %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.* |
dc80a11b | 89 | %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.5 |
f2a02f09 JB |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %doc DOC/ug.pdf | |
94 | %attr(755,root,root) %{_libdir}/libsuperlu.so | |
f2a02f09 | 95 | %{_includedir}/superlu |
ffbf6930 JB |
96 | %{_pkgconfigdir}/superlu.pc |
97 | %{_libdir}/cmake/superlu | |
f2a02f09 | 98 | |
f2a02f09 JB |
99 | %files apidocs |
100 | %defattr(644,root,root,755) | |
101 | %doc DOC/html/* |