]>
Commit | Line | Data |
---|---|---|
62bb73ee | 1 | Summary: CXSparse: extended version of a concise sparse matrix package |
0da03172 | 2 | Summary(pl.UTF-8): CXSparse - rozszerzona wersja zwięzłego pakietu do macierzy rzadkich |
62bb73ee JR |
3 | Name: CXSparse |
4 | Version: 0 | |
495c4445 | 5 | Release: 2 |
0da03172 | 6 | License: LGPL v2.1+ |
62bb73ee JR |
7 | Group: Libraries |
8 | Source0: http://www.cise.ufl.edu/research/sparse/CXSparse/%{name}.tar.gz | |
9 | # Source0-md5: b8061452b75014dee69e5c5fc33cfd25 | |
10 | Patch0: %{name}-ufconfig.patch | |
11 | Patch1: %{name}-shared.patch | |
12 | URL: http://www.cise.ufl.edu/research/sparse/CXSparse/ | |
13 | BuildRequires: UFconfig | |
14 | BuildRequires: libtool >= 2:1.5 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
11101b2c | 18 | CXSparse is an extended version of CSparse - a small yet feature-rich |
19 | sparse matrix package, with support for double or complex matrices, | |
20 | with int or long integers. | |
62bb73ee | 21 | |
9acd7917 JB |
22 | %description -l pl.UTF-8 |
23 | CXSparse to rozszerzona wersja CSparse - małego, ale mającego wiele | |
24 | możliwości pakietu do macierzy rzadkich z obsługą macierzy typu double | |
25 | i zespolonych, z liczbami int i long. | |
26 | ||
62bb73ee | 27 | %package devel |
63e21417 JR |
28 | Summary: Header files for CXSparse library |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CXSparse | |
62bb73ee JR |
30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: UFconfig | |
33 | ||
34 | %description devel | |
63e21417 | 35 | Header files for CXSparse library. |
62bb73ee JR |
36 | |
37 | %description devel -l pl.UTF-8 | |
63e21417 | 38 | Pliki nagłówkowe biblioteki CXSparse. |
62bb73ee JR |
39 | |
40 | %package static | |
63e21417 JR |
41 | Summary: Static CXSparse library |
42 | Summary(pl.UTF-8): Statyczna biblioteka CXSparse | |
62bb73ee JR |
43 | Group: Development/Libraries |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
63e21417 | 47 | Static CXSparse library. |
62bb73ee JR |
48 | |
49 | %description static -l pl.UTF-8 | |
63e21417 | 50 | Statyczna biblioteka CXSparse. |
62bb73ee JR |
51 | |
52 | %prep | |
53 | %setup -q -n %{name} | |
54 | %patch0 -p1 | |
55 | %patch1 -p1 | |
56 | ||
57 | %build | |
58 | %{__make} \ | |
59 | CC="%{__cc}" \ | |
b2a11a7b | 60 | CFLAGS="%{rpmcflags}" \ |
62bb73ee JR |
61 | LDFLAGS="%{rpmldflags}" \ |
62 | libdir=%{_libdir} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
1968d6e9 | 66 | install -d $RPM_BUILD_ROOT%{_includedir}/cxsparse |
62bb73ee JR |
67 | |
68 | %{__make} -C Lib install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT \ | |
70 | libdir=%{_libdir} | |
71 | ||
1968d6e9 | 72 | install Include/*.h $RPM_BUILD_ROOT%{_includedir}/cxsparse |
62bb73ee JR |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
0da03172 | 82 | %doc README.txt Doc/{ChangeLog,License.txt} |
62bb73ee | 83 | %attr(755,root,root) %{_libdir}/libcxsparse.so.*.*.* |
0da03172 | 84 | %attr(755,root,root) %ghost %{_libdir}/libcxsparse.so.0 |
62bb73ee JR |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_libdir}/libcxsparse.so | |
89 | %{_libdir}/libcxsparse.la | |
1968d6e9 | 90 | %{_includedir}/cxsparse |
62bb73ee JR |
91 | |
92 | %files static | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/libcxsparse.a |