]>
Commit | Line | Data |
---|---|---|
7439d5ac JR |
1 | # |
2 | # Conditional build: | |
9f39e7e6 | 3 | %bcond_with metis # build with partition support (using metis lib) |
7439d5ac JR |
4 | # |
5 | Summary: CHOLMOD: sparse supernodal Cholesky factorization and update/downdate | |
b372aaec | 6 | Summary(pl.UTF-8): CHOLMOD - rzadki wielowęzłowy rozkład Cholesky'ego z poprawianiem |
7439d5ac | 7 | Name: CHOLMOD |
15cc76d5 | 8 | Version: 2.1.1 |
7439d5ac | 9 | Release: 1 |
6287853a | 10 | License: GPL v2+ (some parts LGPL v2.1+) |
7439d5ac JR |
11 | Group: Libraries |
12 | Source0: http://www.cise.ufl.edu/research/sparse/cholmod/%{name}-%{version}.tar.gz | |
15cc76d5 | 13 | # Source0-md5: 3b9a68ebc60825a6f3cd5f5fa5930de8 |
7439d5ac JR |
14 | Patch0: %{name}-ufconfig.patch |
15 | Patch1: %{name}-shared.patch | |
9f39e7e6 JB |
16 | # http://www.cise.ufl.edu/research/sparse/cholmod/metis.patch (for METIS 5) |
17 | Patch2: %{name}-metis.patch | |
7439d5ac | 18 | URL: http://www.cise.ufl.edu/research/sparse/cholmod/ |
fe7d741a JB |
19 | BuildRequires: AMD-devel >= 2.3.0 |
20 | BuildRequires: CAMD-devel >= 2.3.0 | |
21 | BuildRequires: CCOLAMD-devel >= 2.8.0 | |
22 | BuildRequires: COLAMD-devel >= 2.8.0 | |
d1ac72a6 | 23 | BuildRequires: SuiteSparse_config-devel >= 4.2.0 |
b372aaec | 24 | BuildRequires: blas-devel |
1a68edfb | 25 | BuildRequires: gcc-fortran |
7439d5ac JR |
26 | BuildRequires: lapack-devel |
27 | BuildRequires: libtool >= 2:1.5 | |
9f39e7e6 | 28 | %if %{with metis} |
9f39e7e6 JB |
29 | BuildRequires: metis-devel >= 5 |
30 | %endif | |
fe7d741a JB |
31 | Requires: AMD >= 2.3.0 |
32 | Requires: CAMD >= 2.3.0 | |
33 | Requires: CCOLAMD >= 2.8.0 | |
34 | Requires: COLAMD >= 2.8.0 | |
d1ac72a6 | 35 | Requires: SuiteSparse_config-libs >= 4.2.0 |
7439d5ac JR |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | CHOLMOD is a set of ANSI C routines for sparse Cholesky | |
40 | factorization and update/downdate. | |
41 | ||
b372aaec JB |
42 | %description -l pl.UTF-8 |
43 | CHOLMOD to zbiór procedur ANSI C do rzadkiego rozkładu Cholesky'ego z | |
44 | poprawianiem. | |
45 | ||
7439d5ac | 46 | %package devel |
f6ba16c6 JR |
47 | Summary: Header files for CHOLMOD library |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CHOLMOD | |
7439d5ac JR |
49 | Group: Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
fe7d741a JB |
51 | Requires: AMD-devel >= 2.3.0 |
52 | Requires: CAMD-devel >= 2.3.0 | |
53 | Requires: CCOLAMD-devel >= 2.8.0 | |
54 | Requires: COLAMD-devel >= 2.8.0 | |
d1ac72a6 | 55 | Requires: SuiteSparse_config-devel >= 4.2.0 |
7439d5ac JR |
56 | |
57 | %description devel | |
f6ba16c6 | 58 | Header files for CHOLMOD library. |
7439d5ac JR |
59 | |
60 | %description devel -l pl.UTF-8 | |
f6ba16c6 | 61 | Pliki nagłówkowe biblioteki CHOLMOD. |
7439d5ac JR |
62 | |
63 | %package static | |
f6ba16c6 JR |
64 | Summary: Static CHOLMOD library |
65 | Summary(pl.UTF-8): Statyczna biblioteka CHOLMOD | |
7439d5ac JR |
66 | Group: Development/Libraries |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
f6ba16c6 | 70 | Static CHOLMOD library. |
7439d5ac JR |
71 | |
72 | %description static -l pl.UTF-8 | |
f6ba16c6 | 73 | Statyczna biblioteka CHOLMOD. |
7439d5ac JR |
74 | |
75 | %prep | |
76 | %setup -q -n %{name} | |
77 | %patch0 -p1 | |
78 | %patch1 -p1 | |
fe7d741a | 79 | %patch2 -p1 |
7439d5ac JR |
80 | |
81 | %build | |
82 | %{__make} \ | |
83 | CC="%{__cc}" \ | |
d1ac72a6 | 84 | %{!?with_metis:CHOLMOD_CONFIG=-DNPARTITION} \ |
9f39e7e6 | 85 | %{?with_metis:WITH_METIS=1} \ |
add7be18 | 86 | CFLAGS="%{rpmcflags}" \ |
65eb5363 | 87 | LDFLAGS="%{rpmldflags}" \ |
7439d5ac JR |
88 | libdir=%{_libdir} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
668f011c | 92 | install -d $RPM_BUILD_ROOT%{_includedir}/cholmod |
7439d5ac JR |
93 | |
94 | %{__make} -C Lib install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT \ | |
96 | libdir=%{_libdir} | |
97 | ||
668f011c | 98 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/cholmod |
7439d5ac JR |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
6287853a | 108 | %doc README.txt Doc/ChangeLog |
7439d5ac | 109 | %attr(755,root,root) %{_libdir}/libcholmod.so.*.*.* |
6287853a | 110 | %attr(755,root,root) %ghost %{_libdir}/libcholmod.so.0 |
7439d5ac JR |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
6287853a | 114 | %doc Doc/UserGuide.pdf |
7439d5ac JR |
115 | %attr(755,root,root) %{_libdir}/libcholmod.so |
116 | %{_libdir}/libcholmod.la | |
668f011c | 117 | %{_includedir}/cholmod |
7439d5ac JR |
118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libcholmod.a |