armadillo/armadillo.spec
zhangpan 8c20a67e80 用“package_help”宏替换help子包声明
(cherry picked from commit 5ef9849bef8f4f3be1f43960447c5a8373083c07)
2024-08-21 14:18:08 +08:00

84 lines
2.1 KiB
RPMSpec

Name: armadillo
Version: 12.6.2
Release: 2
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
BuildRequires: cmake lapack-devel arpack-devel hdf5-devel openblas-devel SuperLU-devel gcc-g++
%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}
Requires: lapack-devel arpack-devel libstdc++-devel hdf5-devel openblas-devel SuperLU-devel
%description devel
This package contains header files.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
sed -i 's/\r//' README.md
%build
%{cmake}
%make_build VERBOSE=1
%install
%make_install
rm -f examples/{Makefile.cmake,example1_win64.sln,example1_win64.vcxproj,example1_win64.README.txt}
rm -rf examples/example2_win64.*
rm -rf examples/lib_win64
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%{_libdir}/*.so.*
%license LICENSE.txt NOTICE.txt
%files devel
%{_libdir}/*.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_*.pdf
%changelog
* Mon Aug 19 2024 Pan Zhang <zhangpan@cqsoftware.com.cn> - 12.6.2-2
- Replaced declaration of help subpackage with the 'package_help' macro.
* Thu Sep 21 2023 wulei <wu_lei@hoperun.com> - 12.6.2-1
- Update to 12.6.2
* Fri Jan 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 10.7.4-1
- Upgrade to version 10.7.4
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 9.600.6-5
- Add gcc-g++ in BuildRequires
* Fri 26 Mar 2021 sunguoshuai <sunguoshuai@huawei.com> - 9.600.6-4
- Delete depends on atlas
* Thu Mar 5 2020 wangye <wangye54@huawei.com> - 9.600.6-3
- Update
* Thu Mar 5 2020 wangye <wangye54@huawei.com> - 9.600.6-2
- Package init