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