]>
Commit | Line | Data |
---|---|---|
b9dd5f9e JR |
1 | Summary: UMFPACK: sparse multifrontal LU factorization |
2 | Name: UMFPACK | |
3 | Version: 5.2.0 | |
7b168059 | 4 | Release: 2 |
b9dd5f9e JR |
5 | License: LGPL |
6 | Group: Libraries | |
7 | Source0: http://www.cise.ufl.edu/research/sparse/umfpack/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 8ad2d68c7c49dfcdd8321e806e6c611c | |
9 | Patch0: %{name}-ufconfig.patch | |
10 | Patch1: %{name}-shared.patch | |
7b168059 | 11 | Patch2: %{name}-include-AMD.patch |
b9dd5f9e JR |
12 | URL: http://www.cise.ufl.edu/research/sparse/umfpack/ |
13 | BuildRequires: UFconfig | |
14 | BuildRequires: AMD-devel | |
15 | BuildRequires: blas-devel | |
16 | BuildRequires: libtool >= 2:1.5 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
8ea8433b | 20 | UMFPACK is a set of routines for solving unsymmetric sparse linear |
21 | systems, Ax=b, using the Unsymmetric MultiFrontal method. Written in | |
22 | ANSI/ISO C, with a MATLAB (Version 6.0 and later) interface. Appears | |
23 | as a built-in routine (for lu, backslash, and forward slash) in | |
24 | MATLAB. Includes a MATLAB interface, a C-callable interface, and a | |
25 | Fortran-callable interface. Note that "UMFPACK" is pronounced in two | |
26 | syllables, "Umph Pack". It is not "You Em Ef Pack". | |
b9dd5f9e JR |
27 | |
28 | %package devel | |
ef0d594d JR |
29 | Summary: Header files for UMFPACK library |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki UMFPACK | |
b9dd5f9e JR |
31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
33 | Requires: UFconfig | |
7b168059 | 34 | Requires: AMD-devel |
b9dd5f9e JR |
35 | |
36 | %description devel | |
ef0d594d | 37 | Header files for UMFPACK library. |
b9dd5f9e JR |
38 | |
39 | %description devel -l pl.UTF-8 | |
ef0d594d | 40 | Pliki nagłówkowe biblioteki UMFPACK. |
b9dd5f9e JR |
41 | |
42 | %package static | |
ef0d594d JR |
43 | Summary: Static UMFPACK library |
44 | Summary(pl.UTF-8): Statyczna biblioteka UMFPACK | |
b9dd5f9e JR |
45 | Group: Development/Libraries |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
ef0d594d | 49 | Static UMFPACK library. |
b9dd5f9e JR |
50 | |
51 | %description static -l pl.UTF-8 | |
ef0d594d | 52 | Statyczna biblioteka UMFPACK. |
b9dd5f9e JR |
53 | |
54 | %prep | |
55 | %setup -q -n %{name} | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
7b168059 | 58 | %patch2 -p1 |
b9dd5f9e JR |
59 | |
60 | %build | |
61 | %{__make} \ | |
62 | CC="%{__cc}" \ | |
63 | CFLAGS="%{rpmcflags} -fPIC" \ | |
5a2bc522 | 64 | LDFLAGS="%{rpmldflags}" \ |
b9dd5f9e JR |
65 | libdir=%{_libdir} |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
1da0a866 | 69 | install -d $RPM_BUILD_ROOT%{_includedir}/umfpack |
b9dd5f9e JR |
70 | |
71 | %{__make} -C Lib install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT \ | |
73 | libdir=%{_libdir} | |
74 | ||
1da0a866 | 75 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/umfpack |
b9dd5f9e JR |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
85 | %doc README.txt | |
86 | %attr(755,root,root) %{_libdir}/libumfpack.so.*.*.* | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libumfpack.so | |
91 | %{_libdir}/libumfpack.la | |
1da0a866 | 92 | %{_includedir}/umfpack |
b9dd5f9e JR |
93 | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libumfpack.a |