]>
Commit | Line | Data |
---|---|---|
f3ecc58f | 1 | Summary: AMD: approximate minimum degree |
f16dbc7c | 2 | Name: AMD |
e87dab47 | 3 | Version: 2.2.0 |
084edaca | 4 | Release: 2 |
e87dab47 JR |
5 | License: LGPL |
6 | Group: Libraries | |
f16dbc7c | 7 | Source0: http://www.cise.ufl.edu/research/sparse/amd/%{name}-%{version}.tar.gz |
e87dab47 | 8 | # Source0-md5: f81fcae945de82864035b03ee20a8d2b |
f16dbc7c JR |
9 | Patch0: amd-ufconfig.patch |
10 | Patch1: amd-shared.patch | |
e87dab47 JR |
11 | URL: http://www.cise.ufl.edu/research/sparse/amd/ |
12 | BuildRequires: UFconfig | |
13 | BuildRequires: libtool >= 2:1.5 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | AMD is a set of routines for ordering a sparse matrix prior | |
18 | to Cholesky factorization (or for LU factorization with | |
19 | diagonal pivoting). There are versions in both C and Fortran. | |
20 | A MATLAB interface is provided. | |
21 | Note that this software has nothing to do with AMD the company. | |
22 | ||
23 | %package devel | |
24 | Summary: Header files for amd library | |
25 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki amd | |
26 | Group: Development/Libraries | |
27 | Requires: %{name} = %{version}-%{release} | |
28 | Requires: UFconfig | |
29 | ||
30 | %description devel | |
31 | Header files for amd library. | |
32 | ||
33 | %description devel -l pl.UTF-8 | |
34 | Pliki nagłówkowe biblioteki amd. | |
35 | ||
36 | %package static | |
37 | Summary: Static amd library | |
38 | Summary(pl.UTF-8): Statyczna biblioteka amd | |
39 | Group: Development/Libraries | |
40 | Requires: %{name}-devel = %{version}-%{release} | |
41 | ||
42 | %description static | |
43 | Static amd library. | |
44 | ||
45 | %description static -l pl.UTF-8 | |
46 | Statyczna biblioteka amd. | |
47 | ||
48 | %prep | |
f16dbc7c | 49 | %setup -q -n %{name} |
e87dab47 JR |
50 | %patch0 -p1 |
51 | %patch1 -p1 | |
52 | ||
53 | %build | |
54 | %{__make} \ | |
55 | CC="%{__cc}" \ | |
56 | F77="gfortran" \ | |
57 | CFLAGS="%{rpmcflags} -fPIC" \ | |
56bed529 | 58 | LDFLAGS="%{rpmldflags}" \ |
e87dab47 JR |
59 | libdir=%{_libdir} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
56bed529 | 63 | install -d $RPM_BUILD_ROOT%{_includedir}/AMD |
e87dab47 JR |
64 | |
65 | %{__make} -C Lib install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT \ | |
67 | libdir=%{_libdir} | |
68 | ||
56bed529 | 69 | install Include/* $RPM_BUILD_ROOT%{_includedir}/AMD |
e87dab47 JR |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc README.txt | |
80 | %attr(755,root,root) %{_libdir}/libamd.so.*.*.* | |
81 | ||
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libamd.so | |
85 | %{_libdir}/libamd.la | |
56bed529 | 86 | %{_includedir}/AMD |
e87dab47 JR |
87 | |
88 | %files static | |
89 | %defattr(644,root,root,755) | |
90 | %{_libdir}/libamd.a |