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