]>
Commit | Line | Data |
---|---|---|
a0822fce JR |
1 | Summary: CAMD: constrainted approximate minimum degree |
2 | Name: CAMD | |
3 | Version: 2.2.0 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.cise.ufl.edu/research/sparse/camd/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: d80d35bbdb113da3d79e8b52d7b32144 | |
9 | Patch0: %{name}-ufconfig.patch | |
10 | Patch1: %{name}-shared.patch | |
11 | URL: http://www.cise.ufl.edu/research/sparse/camd/ | |
12 | BuildRequires: UFconfig | |
13 | BuildRequires: libtool >= 2:1.5 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | CAMD is a set of routines for ordering a sparse matrix prior | |
18 | to Cholesky factorization (or for LU factorization with diagonal | |
19 | pivoting). | |
20 | ||
21 | %package devel | |
17fabe71 JR |
22 | Summary: Header files for CAMD library |
23 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CAMD | |
a0822fce JR |
24 | Group: Development/Libraries |
25 | Requires: %{name} = %{version}-%{release} | |
26 | Requires: UFconfig | |
27 | ||
28 | %description devel | |
17fabe71 | 29 | Header files for CAMD library. |
a0822fce JR |
30 | |
31 | %description devel -l pl.UTF-8 | |
17fabe71 | 32 | Pliki nagłówkowe biblioteki CAMD. |
a0822fce JR |
33 | |
34 | %package static | |
17fabe71 JR |
35 | Summary: Static CAMD library |
36 | Summary(pl.UTF-8): Statyczna biblioteka CAMD | |
a0822fce JR |
37 | Group: Development/Libraries |
38 | Requires: %{name}-devel = %{version}-%{release} | |
39 | ||
40 | %description static | |
17fabe71 | 41 | Static CAMD library. |
a0822fce JR |
42 | |
43 | %description static -l pl.UTF-8 | |
17fabe71 | 44 | Statyczna biblioteka CAMD. |
a0822fce JR |
45 | |
46 | %prep | |
47 | %setup -q -n %{name} | |
48 | %patch0 -p1 | |
49 | %patch1 -p1 | |
50 | ||
51 | %build | |
52 | %{__make} \ | |
53 | CC="%{__cc}" \ | |
54 | F77="gfortran" \ | |
55 | CFLAGS="%{rpmcflags} -fPIC" \ | |
55d6eece | 56 | LDFLAGS="%{rpmldflags}" \ |
a0822fce JR |
57 | libdir=%{_libdir} |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
732b2f47 | 61 | install -d $RPM_BUILD_ROOT%{_includedir}/camd |
a0822fce JR |
62 | |
63 | %{__make} -C Lib install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT \ | |
65 | libdir=%{_libdir} | |
66 | ||
732b2f47 | 67 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/camd |
a0822fce JR |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc README.txt | |
78 | %attr(755,root,root) %{_libdir}/libcamd.so.*.*.* | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/libcamd.so | |
83 | %{_libdir}/libcamd.la | |
732b2f47 | 84 | %{_includedir}/camd |
a0822fce JR |
85 | |
86 | %files static | |
87 | %defattr(644,root,root,755) | |
88 | %{_libdir}/libcamd.a |