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