]> git.pld-linux.org Git - packages/CCOLAMD.git/blame - CCOLAMD.spec
- renamed to CCOLAMD
[packages/CCOLAMD.git] / CCOLAMD.spec
CommitLineData
f0be9594
JR
1Summary: CCOLAMD: column approximate minimum degree
2Summary(pl.UTF-8): CCOLAMD - przybliżony algorytm minimalnego stopnia dla kolumn
66516510 3Name: CCOLAMD
f0be9594 4Version: 2.7.1
9fd49527 5Release: 2
f0be9594
JR
6License: LGPL
7Group: Libraries
66516510 8Source0: http://www.cise.ufl.edu/research/sparse/ccolamd/%{name}-%{version}.tar.gz
f0be9594 9# Source0-md5: 04b0b27fae6795612ce779a3f6381cb7
66516510
JR
10Patch0: ccolamd-ufconfig.patch
11Patch1: ccolamd-shared.patch
f0be9594
JR
12URL: http://www.cise.ufl.edu/research/sparse/ccolamd/
13BuildRequires: UFconfig
14BuildRequires: libtool >= 2:1.5
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18The COLAMD column approximate minimum degree ordering algorithm
19computes a permutation vector P such that the LU factorization of A
20(:,P) tends to be sparser than that of A. The Cholesky factorization
21of (A (:,P))'*(A (:,P)) will also tend to be sparser than that of
22A'*A. SYMAMD is a symmetric minimum degree ordering method based on
23COLAMD, available as a MATLAB-callable function. It constructs a
24matrix M such that M'*M has the same pattern as A, and then uses
25COLAMD to compute a column ordering of M. Colamd and symamd tend to be
26faster and generate better orderings than their MATLAB counterparts,
27colmmd and symmmd.
28
29%description -l pl.UTF-8
30Przybliżony algorytm porządkowania minimalnego stopnia dla kolumn
31(COLAMD) oblicza wektor permutacji P taki, że rozkład LU A (:,P) jest
32bardziej rzadki niż A. Rozkład Cholesky'ego (A (:,P))'*(A (:,P)) także
33jest rzadszy niż A'*A. SYMAND to przybliżony algorytm porządkowania
34minimalnego stopnia dla macierzy symetrycznych oparty na COLAMD,
35dostępny jako funkcja do wywołania z MATLAB-a. Tworzy macierz M taką,
36że M'*M ma ten sam wzór co A, a następnie używa algorytmu COLAMD do
37obliczenia porządku kolumn M. COLAMD i SYMAMD są szybsze i generują
38lepsze uporządkowania niż ich odpowiedniki z MATLAB-a: colmmd i
39symmmd.
40
41%package devel
42Summary: Header files for ccolamd library
43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ccolamd
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46Requires: UFconfig
47
48%description devel
49Header files for ccolamd library.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki ccolamd.
53
54%package static
55Summary: Static ccolamd library
56Summary(pl.UTF-8): Statyczna biblioteka ccolamd
57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
61Static ccolamd library.
62
63%description static -l pl.UTF-8
64Statyczna biblioteka ccolamd.
65
66%prep
66516510 67%setup -q -n %{name}
f0be9594
JR
68%patch0 -p1
69%patch1 -p1
70
71%build
72%{__make} \
73 CC="%{__cc}" \
9fd49527 74 CFLAGS="%{rpmcflags} -fPIC" \
f0be9594
JR
75 libdir=%{_libdir}
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
80%{__make} -C Lib install \
81 DESTDIR=$RPM_BUILD_ROOT \
82 libdir=%{_libdir}
83
84install -D Include/ccolamd.h $RPM_BUILD_ROOT%{_includedir}/ccolamd.h
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%post -p /sbin/ldconfig
90%postun -p /sbin/ldconfig
91
92%files
93%defattr(644,root,root,755)
94%doc README.txt
95%attr(755,root,root) %{_libdir}/libccolamd.so.*.*.*
96
97%files devel
98%defattr(644,root,root,755)
99%attr(755,root,root) %{_libdir}/libccolamd.so
100%{_libdir}/libccolamd.la
101%{_includedir}/ccolamd.h
102
103%files static
104%defattr(644,root,root,755)
105%{_libdir}/libccolamd.a
This page took 0.068204 seconds and 4 git commands to generate.