]>
Commit | Line | Data |
---|---|---|
259f20ab JB |
1 | Summary: C++ linear algebra library |
2 | Summary(pl.UTF-8): Biblioteka C++ do algebry liniowej | |
3 | Name: armadillo | |
cce9f254 JB |
4 | Version: 6.700.7 |
5 | Release: 1 | |
32b3b541 | 6 | License: MPL v2.0 |
259f20ab JB |
7 | Group: Libraries |
8 | Source0: http://downloads.sourceforge.net/arma/%{name}-%{version}.tar.gz | |
cce9f254 | 9 | # Source0-md5: 8116185e1d7391eed3bf6c500f81b4d8 |
259f20ab | 10 | URL: http://arma.sourceforge.net/ |
9001a4bd | 11 | BuildRequires: SuperLU-devel >= 4 |
795d738e | 12 | BuildRequires: arpack-devel |
259f20ab | 13 | BuildRequires: blas-devel |
795d738e JB |
14 | BuildRequires: cmake >= 2.8 |
15 | BuildRequires: hdf5-devel | |
259f20ab JB |
16 | BuildRequires: lapack-devel |
17 | BuildRequires: libstdc++-devel | |
eb074bf7 | 18 | BuildRequires: pkgconfig |
259f20ab JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Armadillo is a C++ linear algebra library (matrix maths) aiming | |
23 | towards a good balance between speed and ease of use. The syntax is | |
24 | deliberately similar to Matlab. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Armadillo to biblioteka C++ do algebry liniowej (obliczeń na | |
28 | macierzach), której celem jest dobry kompromis między szybkością a | |
29 | łatwością użycia. Składnia jest celowo podobna do Matlaba. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for Armadillo library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Armadillo | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
9001a4bd | 36 | Requires: SuperLU >= 4 |
795d738e | 37 | Requires: arpack-devel |
259f20ab | 38 | Requires: blas-devel |
795d738e | 39 | Requires: hdf5-devel |
259f20ab JB |
40 | Requires: lapack-devel |
41 | Requires: libstdc++-devel | |
eb074bf7 | 42 | Obsoletes: armadillo-static |
259f20ab JB |
43 | |
44 | %description devel | |
45 | Header files for Armadillo library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki Armadillo. | |
49 | ||
259f20ab JB |
50 | %package apidocs |
51 | Summary: Armadillo API documentation | |
52 | Summary(pl.UTF-8): Dokumentacja API biblioteki Armadillo | |
53 | Group: Documentation | |
7ede81f6 ER |
54 | %if "%{_rpmversion}" >= "5" |
55 | BuildArch: noarch | |
56 | %endif | |
259f20ab JB |
57 | |
58 | %description apidocs | |
59 | API and internal documentation for Armadillo library. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API biblioteki Armadillo. | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | ||
67 | %build | |
1d517c7d | 68 | %cmake . \ |
eb074bf7 | 69 | -DDETECT_HDF5=ON \ |
1d517c7d | 70 | -DINSTALL_LIB_DIR=%{_libdir} |
259f20ab JB |
71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
eb074bf7 | 88 | %doc LICENSE.txt README.txt docs.html |
259f20ab | 89 | %attr(755,root,root) %{_libdir}/libarmadillo.so.*.*.* |
eb074bf7 | 90 | %attr(755,root,root) %ghost %{_libdir}/libarmadillo.so.6 |
259f20ab JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/libarmadillo.so | |
95 | %{_includedir}/armadillo | |
96 | %{_includedir}/armadillo_bits | |
97 | %dir %{_datadir}/Armadillo | |
98 | %{_datadir}/Armadillo/CMake | |
eb074bf7 JB |
99 | |
100 | %files apidocs | |
101 | %defattr(644,root,root,755) | |
102 | %doc docs.html armadillo_icon.png armadillo_nicta_2010.pdf rcpp_armadillo_csda_2014.pdf |