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