]>
Commit | Line | Data |
---|---|---|
f492f268 JB |
1 | Summary: SuiteSparseQR: multithreaded multifrontal sparse QR factorization |
2 | Summary(pl.UTF-8): SuiteSparseQR - wielowątkowy, wielofrontalny rozkład QR dla macierzy rzadkich | |
3 | Name: SPQR | |
4 | Version: 1.2.3 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: Libraries | |
8 | Source0: http://www.cise.ufl.edu/research/sparse/SPQR/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 65e12826a2a3d11a774c517990eabdd7 | |
10 | Patch0: %{name}-ufconfig.patch | |
11 | Patch1: %{name}-shared.patch | |
12 | URL: http://www.cise.ufl.edu/research/sparse/SPQR/ | |
13 | BuildRequires: CHOLMOD-devel >= 1.7.4 | |
14 | BuildRequires: UFconfig >= 3.7.0 | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: libtool >= 2:1.5 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | SuiteSparseQR is an implementation of the multifrontal sparse QR | |
21 | factorization method. Parallelism is exploited both in the BLAS and | |
22 | across different frontal matrices using Intel's Threading Building | |
23 | Blocks, a shared-memory programming model for modern multicore | |
24 | architectures. It can obtain a substantial fraction of the theoretical | |
25 | peak performance of a multicore computer. The package is written in | |
26 | C++ with user interfaces for MATLAB, C, and C++. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | SuiteSparseQR to implementacja wielofrontalnej metody rozkładu QR dla | |
30 | macierzy rzadkich. Równoległość jest wykorzystywna zarówno w BLAS, jak | |
31 | i poprzez różne macierze frontalne przy użyciu Threading Building | |
32 | Blocks Intela - model programowania ze współdzieloną pamięcią dla | |
33 | architektur wielordzeniowych. Dzięki temu możliwe jest osiągnięcie | |
34 | znaczącej części teoretycznej maksymalnej wydajności na komputerze | |
35 | wielordzeniowym. Pakiet jest napisany w C++ z interfejsami dla | |
36 | MATLAB-a, C i C++. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for SPQR library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SPQR | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: CHOLMOD-devel >= 1.7.4 | |
44 | Requires: UFconfig >= 3.7.0 | |
45 | Requires: libstdc++-devel | |
46 | ||
47 | %description devel | |
48 | Header files for SPQR library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki SPQR. | |
52 | ||
53 | %package static | |
54 | Summary: Static SPQR library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka SPQR | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static SPQR library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka SPQR. | |
64 | ||
65 | %prep | |
66 | %setup -q -n %{name} | |
67 | %patch0 -p1 | |
68 | %patch1 -p1 | |
69 | ||
70 | %build | |
71 | %{__make} \ | |
72 | CC="%{__cc}" \ | |
73 | CXX="%{__cxx}" \ | |
74 | CFLAGS="%{rpmcflags}" \ | |
75 | CXXFLAGS="%{rpmcxxflags}" \ | |
76 | LDFLAGS="%{rpmldflags}" \ | |
77 | libdir=%{_libdir} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | install -d $RPM_BUILD_ROOT%{_includedir}/spqr | |
82 | ||
83 | %{__make} -C Lib install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT \ | |
85 | libdir=%{_libdir} | |
86 | ||
87 | install Include/*.{h,hpp} $RPM_BUILD_ROOT%{_includedir}/spqr | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc README.txt Doc/ChangeLog | |
98 | %attr(755,root,root) %{_libdir}/libspqr.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libspqr.so.0 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %doc Doc/{algo_spqr,spqr,spqr_user_guide}.pdf | |
104 | %attr(755,root,root) %{_libdir}/libspqr.so | |
105 | %{_libdir}/libspqr.la | |
106 | %{_includedir}/spqr | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libspqr.a |