]>
Commit | Line | Data |
---|---|---|
10b6bc23 | 1 | Summary: AMD: Approximate Minimum Degree |
e780f113 | 2 | Summary(pl.UTF-8): AMD - przybliżony algorytm minimalnego stopnia |
f16dbc7c | 3 | Name: AMD |
0df8ae65 | 4 | Version: 2.2.3 |
ff2cfe95 | 5 | Release: 1 |
a713671f | 6 | License: LGPL v2.1+ |
e87dab47 | 7 | Group: Libraries |
f16dbc7c | 8 | Source0: http://www.cise.ufl.edu/research/sparse/amd/%{name}-%{version}.tar.gz |
0df8ae65 | 9 | # Source0-md5: 4d2a7db82406f880e7686fbd2df5a3bf |
f16dbc7c JR |
10 | Patch0: amd-ufconfig.patch |
11 | Patch1: amd-shared.patch | |
e87dab47 JR |
12 | URL: http://www.cise.ufl.edu/research/sparse/amd/ |
13 | BuildRequires: UFconfig | |
14 | BuildRequires: libtool >= 2:1.5 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
10b6bc23 | 18 | AMD is a set of routines for ordering a sparse matrix prior to |
19 | Cholesky factorization (or for LU factorization with diagonal | |
20 | pivoting). There are versions in both C and Fortran. A MATLAB | |
21 | interface is provided. Note that this software has nothing to do with | |
22 | AMD the company. | |
e87dab47 | 23 | |
ced0ae0f JB |
24 | %description -l pl.UTF-8 |
25 | AMD to zbiór procedur do porządkowania macierzy rzadkich przed | |
781c6806 | 26 | rozkładem Cholesky'ego (lub do rozkładu LU z obrotami diagonalnymi). |
ced0ae0f JB |
27 | Istnieją wersje zarówno w C, jak i Fortranie. Dostępny jest interfejs |
28 | do MATLAB-a. Uwaga: to oprogramowanie nie ma nic wspólnego z firmą | |
29 | AMD. | |
30 | ||
e87dab47 | 31 | %package devel |
3a60dab8 JR |
32 | Summary: Header files for AMD library |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AMD | |
e87dab47 JR |
34 | Group: Development/Libraries |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: UFconfig | |
37 | ||
38 | %description devel | |
3a60dab8 | 39 | Header files for AMD library. |
e87dab47 JR |
40 | |
41 | %description devel -l pl.UTF-8 | |
3a60dab8 | 42 | Pliki nagłówkowe biblioteki AMD. |
e87dab47 JR |
43 | |
44 | %package static | |
3a60dab8 JR |
45 | Summary: Static AMD library |
46 | Summary(pl.UTF-8): Statyczna biblioteka AMD | |
e87dab47 JR |
47 | Group: Development/Libraries |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
3a60dab8 | 51 | Static AMD library. |
e87dab47 JR |
52 | |
53 | %description static -l pl.UTF-8 | |
3a60dab8 | 54 | Statyczna biblioteka AMD. |
e87dab47 JR |
55 | |
56 | %prep | |
f16dbc7c | 57 | %setup -q -n %{name} |
e87dab47 JR |
58 | %patch0 -p1 |
59 | %patch1 -p1 | |
60 | ||
61 | %build | |
62 | %{__make} \ | |
63 | CC="%{__cc}" \ | |
86a9233c | 64 | CFLAGS="%{rpmcflags}" \ |
56bed529 | 65 | LDFLAGS="%{rpmldflags}" \ |
e87dab47 JR |
66 | libdir=%{_libdir} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
701c0b14 | 70 | install -d $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 JR |
71 | |
72 | %{__make} -C Lib install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT \ | |
74 | libdir=%{_libdir} | |
75 | ||
701c0b14 | 76 | install Include/* $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 JR |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
a1940481 | 86 | %doc README.txt Doc/{ChangeLog,License} |
e87dab47 | 87 | %attr(755,root,root) %{_libdir}/libamd.so.*.*.* |
a713671f | 88 | %attr(755,root,root) %ghost %{_libdir}/libamd.so.0 |
e87dab47 JR |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
a1940481 | 92 | %doc Doc/AMD_UserGuide.pdf |
e87dab47 JR |
93 | %attr(755,root,root) %{_libdir}/libamd.so |
94 | %{_libdir}/libamd.la | |
701c0b14 | 95 | %{_includedir}/amd |
e87dab47 JR |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libamd.a |