]>
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 |
a597b9d8 | 4 | Version: 2.4.0 |
ce78cc07 | 5 | Release: 4 |
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 |
a597b9d8 | 9 | # Source0-md5: 5044de774a2f7804d09ac0d5134d6884 |
f16dbc7c JR |
10 | Patch0: amd-ufconfig.patch |
11 | Patch1: amd-shared.patch | |
8251bd03 | 12 | Patch2: amd-externc.patch |
e87dab47 | 13 | URL: http://www.cise.ufl.edu/research/sparse/amd/ |
ce78cc07 | 14 | BuildRequires: SuiteSparse_config-devel >= 4.3.0 |
cb5fb1c0 | 15 | BuildRequires: gcc-fortran |
e87dab47 | 16 | BuildRequires: libtool >= 2:1.5 |
a597b9d8 | 17 | Requires: SuiteSparse_config-libs >= 4.3.0 |
e87dab47 JR |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
10b6bc23 | 21 | AMD is a set of routines for ordering a sparse matrix prior to |
22 | Cholesky factorization (or for LU factorization with diagonal | |
23 | pivoting). There are versions in both C and Fortran. A MATLAB | |
24 | interface is provided. Note that this software has nothing to do with | |
25 | AMD the company. | |
e87dab47 | 26 | |
ced0ae0f JB |
27 | %description -l pl.UTF-8 |
28 | AMD to zbiór procedur do porządkowania macierzy rzadkich przed | |
781c6806 | 29 | rozkładem Cholesky'ego (lub do rozkładu LU z obrotami diagonalnymi). |
ced0ae0f JB |
30 | Istnieją wersje zarówno w C, jak i Fortranie. Dostępny jest interfejs |
31 | do MATLAB-a. Uwaga: to oprogramowanie nie ma nic wspólnego z firmą | |
32 | AMD. | |
33 | ||
e87dab47 | 34 | %package devel |
3a60dab8 JR |
35 | Summary: Header files for AMD library |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AMD | |
e87dab47 JR |
37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
a597b9d8 | 39 | Requires: SuiteSparse_config >= 4.3.0 |
e87dab47 JR |
40 | |
41 | %description devel | |
3a60dab8 | 42 | Header files for AMD library. |
e87dab47 JR |
43 | |
44 | %description devel -l pl.UTF-8 | |
3a60dab8 | 45 | Pliki nagłówkowe biblioteki AMD. |
e87dab47 JR |
46 | |
47 | %package static | |
3a60dab8 JR |
48 | Summary: Static AMD library |
49 | Summary(pl.UTF-8): Statyczna biblioteka AMD | |
e87dab47 JR |
50 | Group: Development/Libraries |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
3a60dab8 | 54 | Static AMD library. |
e87dab47 JR |
55 | |
56 | %description static -l pl.UTF-8 | |
3a60dab8 | 57 | Statyczna biblioteka AMD. |
e87dab47 | 58 | |
cb5fb1c0 KK |
59 | %package fortran |
60 | Summary: Fortran version of AMD library | |
61 | Summary(pl.UTF-8): Wersja biblioteki AMD dla programów w Fortranie | |
171ef60a | 62 | Group: Libraries |
cb5fb1c0 KK |
63 | |
64 | %description fortran | |
65 | Fortran version of AMD library. | |
66 | ||
67 | %description fortran -l pl.UTF-8 | |
68 | Wersja biblioteki AMD dla programów napisanych w Fortranie. | |
69 | ||
171ef60a JB |
70 | %package fortran-devel |
71 | Summary: Fortran version of AMD library - development files | |
72 | Summary(pl.UTF-8): Wersja biblioteki AMD dla programów w Fortranie - pliki programistyczne | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-fortran = %{version}-%{release} | |
75 | ||
76 | %description fortran-devel | |
77 | Fortran version of AMD library - development files. | |
78 | ||
79 | %description fortran-devel -l pl.UTF-8 | |
80 | Wersja biblioteki AMD dla programów w Fortranie - pliki | |
81 | programistyczne. | |
82 | ||
cb5fb1c0 KK |
83 | %package fortran-static |
84 | Summary: Fortran version of AMD static library | |
85 | Summary(pl.UTF-8): Wersja statycznej biblioteki AMD dla programów w Fortranie | |
86 | Group: Development/Libraries | |
171ef60a | 87 | Requires: %{name}-fortran-devel = %{version}-%{release} |
cb5fb1c0 KK |
88 | |
89 | %description fortran-static | |
90 | Fortran version of AMD static library. | |
91 | ||
92 | %description fortran-static -l pl.UTF-8 | |
93 | Wersja statycznej biblioteki AMD dla programów napisanych w Fortranie. | |
94 | ||
e87dab47 | 95 | %prep |
f16dbc7c | 96 | %setup -q -n %{name} |
e87dab47 JR |
97 | %patch0 -p1 |
98 | %patch1 -p1 | |
8251bd03 | 99 | %patch2 -p1 |
e87dab47 JR |
100 | |
101 | %build | |
102 | %{__make} \ | |
103 | CC="%{__cc}" \ | |
86a9233c | 104 | CFLAGS="%{rpmcflags}" \ |
56bed529 | 105 | LDFLAGS="%{rpmldflags}" \ |
e87dab47 JR |
106 | libdir=%{_libdir} |
107 | ||
cb5fb1c0 KK |
108 | %{__make} fortran \ |
109 | CC="%{__cc}" \ | |
110 | CFLAGS="%{rpmcflags}" \ | |
111 | LDFLAGS="%{rpmldflags}" \ | |
112 | libdir=%{_libdir} | |
113 | ||
e87dab47 JR |
114 | %install |
115 | rm -rf $RPM_BUILD_ROOT | |
701c0b14 | 116 | install -d $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 | 117 | |
cb5fb1c0 | 118 | %{__make} -C Lib install install-fortran \ |
e87dab47 JR |
119 | DESTDIR=$RPM_BUILD_ROOT \ |
120 | libdir=%{_libdir} | |
121 | ||
eef68e82 | 122 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 JR |
123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post -p /sbin/ldconfig | |
128 | %postun -p /sbin/ldconfig | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
a1940481 | 132 | %doc README.txt Doc/{ChangeLog,License} |
e87dab47 | 133 | %attr(755,root,root) %{_libdir}/libamd.so.*.*.* |
a713671f | 134 | %attr(755,root,root) %ghost %{_libdir}/libamd.so.0 |
e87dab47 JR |
135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
a1940481 | 138 | %doc Doc/AMD_UserGuide.pdf |
e87dab47 JR |
139 | %attr(755,root,root) %{_libdir}/libamd.so |
140 | %{_libdir}/libamd.la | |
701c0b14 | 141 | %{_includedir}/amd |
e87dab47 JR |
142 | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libamd.a | |
cb5fb1c0 KK |
146 | |
147 | %files fortran | |
148 | %defattr(644,root,root,755) | |
cb5fb1c0 | 149 | %attr(755,root,root) %{_libdir}/libamdf77.so.*.*.* |
171ef60a JB |
150 | %attr(755,root,root) %ghost %{_libdir}/libamdf77.so.0 |
151 | ||
152 | %files fortran-devel | |
153 | %defattr(644,root,root,755) | |
cb5fb1c0 | 154 | %attr(755,root,root) %{_libdir}/libamdf77.so |
171ef60a | 155 | %{_libdir}/libamdf77.la |
cb5fb1c0 KK |
156 | |
157 | %files fortran-static | |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/libamdf77.a |