]>
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 |
d8ce5aa9 | 4 | Version: 2.3.1 |
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 |
d8ce5aa9 | 9 | # Source0-md5: ee402611aa672257752611cfac10d7cd |
f16dbc7c JR |
10 | Patch0: amd-ufconfig.patch |
11 | Patch1: amd-shared.patch | |
e87dab47 | 12 | URL: http://www.cise.ufl.edu/research/sparse/amd/ |
52e53b91 | 13 | BuildRequires: SuiteSparse_config >= 4.0.0 |
cb5fb1c0 | 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 | |
781c6806 | 27 | rozkładem Cholesky'ego (lub do rozkładu LU z obrotami diagonalnymi). |
ced0ae0f JB |
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} | |
52e53b91 | 37 | Requires: SuiteSparse_config >= 4.0.0 |
e87dab47 JR |
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 | 56 | |
cb5fb1c0 KK |
57 | %package fortran |
58 | Summary: Fortran version of AMD library | |
59 | Summary(pl.UTF-8): Wersja biblioteki AMD dla programów w Fortranie | |
171ef60a | 60 | Group: Libraries |
cb5fb1c0 KK |
61 | |
62 | %description fortran | |
63 | Fortran version of AMD library. | |
64 | ||
65 | %description fortran -l pl.UTF-8 | |
66 | Wersja biblioteki AMD dla programów napisanych w Fortranie. | |
67 | ||
171ef60a JB |
68 | %package fortran-devel |
69 | Summary: Fortran version of AMD library - development files | |
70 | Summary(pl.UTF-8): Wersja biblioteki AMD dla programów w Fortranie - pliki programistyczne | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-fortran = %{version}-%{release} | |
73 | ||
74 | %description fortran-devel | |
75 | Fortran version of AMD library - development files. | |
76 | ||
77 | %description fortran-devel -l pl.UTF-8 | |
78 | Wersja biblioteki AMD dla programów w Fortranie - pliki | |
79 | programistyczne. | |
80 | ||
cb5fb1c0 KK |
81 | %package fortran-static |
82 | Summary: Fortran version of AMD static library | |
83 | Summary(pl.UTF-8): Wersja statycznej biblioteki AMD dla programów w Fortranie | |
84 | Group: Development/Libraries | |
171ef60a | 85 | Requires: %{name}-fortran-devel = %{version}-%{release} |
cb5fb1c0 KK |
86 | |
87 | %description fortran-static | |
88 | Fortran version of AMD static library. | |
89 | ||
90 | %description fortran-static -l pl.UTF-8 | |
91 | Wersja statycznej biblioteki AMD dla programów napisanych w Fortranie. | |
92 | ||
e87dab47 | 93 | %prep |
f16dbc7c | 94 | %setup -q -n %{name} |
e87dab47 JR |
95 | %patch0 -p1 |
96 | %patch1 -p1 | |
97 | ||
98 | %build | |
99 | %{__make} \ | |
100 | CC="%{__cc}" \ | |
86a9233c | 101 | CFLAGS="%{rpmcflags}" \ |
56bed529 | 102 | LDFLAGS="%{rpmldflags}" \ |
e87dab47 JR |
103 | libdir=%{_libdir} |
104 | ||
cb5fb1c0 KK |
105 | %{__make} fortran \ |
106 | CC="%{__cc}" \ | |
107 | CFLAGS="%{rpmcflags}" \ | |
108 | LDFLAGS="%{rpmldflags}" \ | |
109 | libdir=%{_libdir} | |
110 | ||
e87dab47 JR |
111 | %install |
112 | rm -rf $RPM_BUILD_ROOT | |
701c0b14 | 113 | install -d $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 | 114 | |
cb5fb1c0 | 115 | %{__make} -C Lib install install-fortran \ |
e87dab47 JR |
116 | DESTDIR=$RPM_BUILD_ROOT \ |
117 | libdir=%{_libdir} | |
118 | ||
eef68e82 | 119 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/amd |
e87dab47 JR |
120 | |
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
a1940481 | 129 | %doc README.txt Doc/{ChangeLog,License} |
e87dab47 | 130 | %attr(755,root,root) %{_libdir}/libamd.so.*.*.* |
a713671f | 131 | %attr(755,root,root) %ghost %{_libdir}/libamd.so.0 |
e87dab47 JR |
132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
a1940481 | 135 | %doc Doc/AMD_UserGuide.pdf |
e87dab47 JR |
136 | %attr(755,root,root) %{_libdir}/libamd.so |
137 | %{_libdir}/libamd.la | |
701c0b14 | 138 | %{_includedir}/amd |
e87dab47 JR |
139 | |
140 | %files static | |
141 | %defattr(644,root,root,755) | |
142 | %{_libdir}/libamd.a | |
cb5fb1c0 KK |
143 | |
144 | %files fortran | |
145 | %defattr(644,root,root,755) | |
cb5fb1c0 | 146 | %attr(755,root,root) %{_libdir}/libamdf77.so.*.*.* |
171ef60a JB |
147 | %attr(755,root,root) %ghost %{_libdir}/libamdf77.so.0 |
148 | ||
149 | %files fortran-devel | |
150 | %defattr(644,root,root,755) | |
cb5fb1c0 | 151 | %attr(755,root,root) %{_libdir}/libamdf77.so |
171ef60a | 152 | %{_libdir}/libamdf77.la |
cb5fb1c0 KK |
153 | |
154 | %files fortran-static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libamdf77.a |