armadillo/armadillo.spec

78 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

2020-03-10 16:17:35 +08:00
Name: armadillo
2023-03-29 14:49:47 +08:00
Version: 10.7.4
Release: 2
2020-03-10 16:17:35 +08:00
Summary: Fast C++ matrix library with syntax similar to MATLAB and Octave
License: ASL 2.0
URL: http://arma.sourceforge.net/
Source: http://sourceforge.net/projects/arma/files/%{name}-%{version}.tar.xz
2023-03-29 14:49:47 +08:00
BuildRequires: cmake lapack-devel arpack-devel hdf5-devel openblas-devel SuperLU-devel gcc-c++
2020-03-10 16:17:35 +08:00
%description
Armadillo is a C ++ linear algebra library and is an important choice.
%package devel
Summary: Development headers and documentation for the Armadillo C++ library
Requires: %{name} = %{version}-%{release}
2021-03-26 10:43:59 +08:00
Requires: lapack-devel arpack-devel libstdc++-devel hdf5-devel openblas-devel SuperLU-devel
2020-03-10 16:17:35 +08:00
%description devel
This package contains header files.
%package_help
2020-03-10 16:17:35 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
sed -i 's/\r//' README.md
%build
%{cmake}
%make_build VERBOSE=1
%install
%make_install
2020-03-10 17:29:39 +08:00
rm -f examples/{Makefile.cmake,example1_win64.sln,example1_win64.vcxproj,example1_win64.README.txt}
rm -rf examples/lib_win64
2020-03-10 16:17:35 +08:00
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
2023-03-29 14:49:47 +08:00
%{_libdir}/libarmadillo.so.10*
2020-03-10 16:17:35 +08:00
%license LICENSE.txt NOTICE.txt
%files devel
%{_libdir}/libarmadillo.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/armadillo
%{_includedir}/armadillo_bits/
%{_datadir}/Armadillo/
%files help
%doc README.md index.html docs.html mex_interface
%doc examples armadillo_icon.png
%doc armadillo_nicta_2010.pdf rcpp_armadillo_csda_2014.pdf
2023-03-29 14:49:47 +08:00
%doc armadillo_joss_2016.pdf
2020-03-10 16:17:35 +08:00
%changelog
* Mon Aug 19 2024 Pan Zhang <zhangpan@cqsoftware.com.cn> - 10.7.4-2
- Replaced declaration of help subpackage with the 'package_help' macro.
2023-03-29 14:49:47 +08:00
* Wed Mar 29 2023 yaoxin <yaoxin30@h-partners.com> - 10.7.4-1
- Update to 10.7.4
* Fri Mar 26 2021 sunguoshuai <sunguoshuai@huawei.com> - 9.600.6-4
2021-03-26 10:43:59 +08:00
- Delete depends on atlas
2020-03-10 17:53:24 +08:00
* Thu Mar 5 2020 wangye <wangye54@huawei.com> - 9.600.6-3
- Update
2020-03-10 16:17:35 +08:00
* Thu Mar 5 2020 wangye <wangye54@huawei.com> - 9.600.6-2
2020-03-10 17:29:39 +08:00
- Package init