加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
blasfeo.spec 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
郑俊杰 提交于 2023-06-16 12:01 . u
Summary: Basic linear algebra subroutines for embedded optimization
Name: blasfeo
Version: 0.1.3
Release: 1
License: BSD2
URL: https://github.com/giaf/blasfeo
Source0: %{name}-%{version}.tar.gz
%description
BLASFEO provides a set of basic linear algebra routines, performance-optimized for matrices that fit in cache (i.e. generally up to a couple hundred size in each dimension), as typically encountered in embedded optimization applications.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.
%prep
%autosetup -p1
sed -i "s!LIBRARY DESTINATION lib!LIBRARY DESTINATION $(basename '%{_libdir}')!g" CMakeLists.txt
sed -i "s!ARCHIVE DESTINATION lib!ARCHIVE DESTINATION $(basename '%{_libdir}')!g" CMakeLists.txt
%build
mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
%cmake3 -DBLASFEO_EXAMPLES=OFF \
..
%make_build
%install
%make_install -C .obj-%{_target_platform}
%files
%defattr(-,root,root,-)
%license LICENSE.txt
%doc Changelog.txt README.md
%{_libdir}/libblasfeo.so
%files devel
%{_includedir}/blasfeo*.h
%{_includedir}/s_blas*.h
%{_includedir}/d_blas*.h
/usr/cmake/blas*
%changelog
* Fri Jun 16 2023 Z572 <zhengjunjie@iscas.ac.cn> - 0.1.3
- Initial build.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化