]>
Commit | Line | Data |
---|---|---|
b9dd5f9e | 1 | Summary: UMFPACK: sparse multifrontal LU factorization |
2f140a00 | 2 | Summary(pl.UTF-8): UMFPACK - wielofrontalny rozkład LU macierzy rzadkich |
b9dd5f9e JR |
3 | Name: UMFPACK |
4 | Version: 5.2.0 | |
7b168059 | 5 | Release: 2 |
2f140a00 | 6 | License: GPL v2+ |
b9dd5f9e JR |
7 | Group: Libraries |
8 | Source0: http://www.cise.ufl.edu/research/sparse/umfpack/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 8ad2d68c7c49dfcdd8321e806e6c611c | |
10 | Patch0: %{name}-ufconfig.patch | |
11 | Patch1: %{name}-shared.patch | |
7b168059 | 12 | Patch2: %{name}-include-AMD.patch |
b9dd5f9e | 13 | URL: http://www.cise.ufl.edu/research/sparse/umfpack/ |
b9dd5f9e | 14 | BuildRequires: AMD-devel |
2f140a00 | 15 | BuildRequires: UFconfig |
b9dd5f9e JR |
16 | BuildRequires: blas-devel |
17 | BuildRequires: libtool >= 2:1.5 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
8ea8433b | 21 | UMFPACK is a set of routines for solving unsymmetric sparse linear |
22 | systems, Ax=b, using the Unsymmetric MultiFrontal method. Written in | |
23 | ANSI/ISO C, with a MATLAB (Version 6.0 and later) interface. Appears | |
24 | as a built-in routine (for lu, backslash, and forward slash) in | |
25 | MATLAB. Includes a MATLAB interface, a C-callable interface, and a | |
26 | Fortran-callable interface. Note that "UMFPACK" is pronounced in two | |
27 | syllables, "Umph Pack". It is not "You Em Ef Pack". | |
b9dd5f9e | 28 | |
2f140a00 JB |
29 | %description -l pl.UTF-8 |
30 | UMFPACK to zbiór procedur do rozwiązywania niesymetrycznych rzadkich | |
31 | układów równań liniowych Ax=b przy użyciu metody UMF (Unsymmetric | |
32 | MultiFrontal). Jest napisany w ANSI/ISO C z interfejsem do MATLAB-a | |
33 | (w wersji 6.0 i nowszych). W MATLAB-ie jest dostępny jako wbudowana | |
34 | procedura (dla lu, backslasha i slasha). Oprócz interfejsu dla | |
35 | MATLAB-a dostępny jest interfejs dostępny z C i Fortranu. Uwaga: | |
36 | "UMFPACK" powinno się wymawiać jako dwie sylaby: "Umf Pak"; nie jako | |
37 | "U Em Ef Pak". | |
38 | ||
b9dd5f9e | 39 | %package devel |
ef0d594d JR |
40 | Summary: Header files for UMFPACK library |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UMFPACK | |
b9dd5f9e JR |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
7b168059 | 44 | Requires: AMD-devel |
2f140a00 | 45 | Requires: UFconfig |
b9dd5f9e JR |
46 | |
47 | %description devel | |
ef0d594d | 48 | Header files for UMFPACK library. |
b9dd5f9e JR |
49 | |
50 | %description devel -l pl.UTF-8 | |
ef0d594d | 51 | Pliki nagłówkowe biblioteki UMFPACK. |
b9dd5f9e JR |
52 | |
53 | %package static | |
ef0d594d JR |
54 | Summary: Static UMFPACK library |
55 | Summary(pl.UTF-8): Statyczna biblioteka UMFPACK | |
b9dd5f9e JR |
56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
ef0d594d | 60 | Static UMFPACK library. |
b9dd5f9e JR |
61 | |
62 | %description static -l pl.UTF-8 | |
ef0d594d | 63 | Statyczna biblioteka UMFPACK. |
b9dd5f9e JR |
64 | |
65 | %prep | |
66 | %setup -q -n %{name} | |
67 | %patch0 -p1 | |
68 | %patch1 -p1 | |
7b168059 | 69 | %patch2 -p1 |
b9dd5f9e JR |
70 | |
71 | %build | |
72 | %{__make} \ | |
73 | CC="%{__cc}" \ | |
74 | CFLAGS="%{rpmcflags} -fPIC" \ | |
5a2bc522 | 75 | LDFLAGS="%{rpmldflags}" \ |
b9dd5f9e JR |
76 | libdir=%{_libdir} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
1da0a866 | 80 | install -d $RPM_BUILD_ROOT%{_includedir}/umfpack |
b9dd5f9e JR |
81 | |
82 | %{__make} -C Lib install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT \ | |
84 | libdir=%{_libdir} | |
85 | ||
1da0a866 | 86 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/umfpack |
b9dd5f9e JR |
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) | |
2f140a00 | 96 | %doc README.txt Doc/{ChangeLog,License} |
b9dd5f9e JR |
97 | %attr(755,root,root) %{_libdir}/libumfpack.so.*.*.* |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
2f140a00 | 101 | %doc Doc/{QuickStart,UserGuide}.pdf |
b9dd5f9e JR |
102 | %attr(755,root,root) %{_libdir}/libumfpack.so |
103 | %{_libdir}/libumfpack.la | |
1da0a866 | 104 | %{_includedir}/umfpack |
b9dd5f9e JR |
105 | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libumfpack.a |