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