]> git.pld-linux.org Git - packages/COLAMD.git/blame - COLAMD.spec
- build shared lib
[packages/COLAMD.git] / COLAMD.spec
CommitLineData
2b824273
ER
1Summary: COLAMD: column approximate minimum degree
2Name: colamd
3Version: 2.6.0
d2c3e97d 4Release: 0.2
2b824273
ER
5License: LGPL
6Group: Libraries
7Source0: http://www.cise.ufl.edu/research/sparse/colamd/COLAMD-%{version}.tar.gz
8# Source0-md5: 49e185756896c1e918a535ec409c48b9
9URL: http://www.cise.ufl.edu/research/sparse/colamd/
10Patch0: %{name}-ufconfig.patch
d2c3e97d 11Patch1: %{name}-shared.patch
2b824273
ER
12BuildRequires: UFconfig
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16The COLAMD column approximate minimum degree ordering algorithm
17computes a permutation vector P such that the LU factorization of A
18(:,P) tends to be sparser than that of A. The Cholesky factorization
19of (A (:,P))'*(A (:,P)) will also tend to be sparser than that of
20A'*A. SYMAMD is a symmetric minimum degree ordering method based on
21COLAMD, available as a MATLAB-callable function. It constructs a
22matrix M such that M'*M has the same pattern as A, and then uses
23COLAMD to compute a column ordering of M. Colamd and symamd tend to be
24faster and generate better orderings than their MATLAB counterparts,
25colmmd and symmmd.
26
27%package devel
28Summary: Header files for colamd library
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31Requires: UFconfig
32
33%description devel
34Header files for colamd library.
35
36%package static
37Summary: Static colamd library
38Group: Development/Libraries
39Requires: %{name}-devel = %{version}-%{release}
40
41%description static
42Static colamd library.
43
44%prep
45%setup -q -n COLAMD
46%patch0 -p1
d2c3e97d 47%patch1 -p1
2b824273
ER
48
49%build
50%{__make} \
51 CC="%{__cc}" \
52 CFLAGS="%{rpmcflags}"
53
54%install
55rm -rf $RPM_BUILD_ROOT
d2c3e97d
ER
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59install -D colamd.h $RPM_BUILD_ROOT%{_includedir}/colamd.h
2b824273
ER
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
d2c3e97d
ER
64%post -p /sbin/ldconfig
65%postun -p /sbin/ldconfig
66
2b824273
ER
67%files
68%defattr(644,root,root,755)
69%doc README.txt
d2c3e97d 70%attr(755,root,root) %{_libdir}/libcolamd.so.*.*.*
2b824273
ER
71
72%files devel
73%defattr(644,root,root,755)
d2c3e97d
ER
74%{_libdir}/libcolamd.la
75%{_libdir}/libcolamd.so
2b824273
ER
76%{_includedir}/colamd.h
77
78%files static
79%defattr(644,root,root,755)
80%{_libdir}/libcolamd.a
This page took 0.0914700000000001 seconds and 4 git commands to generate.