sdma-dk/sdma-dk.spec
z00809827 e0fc8afb8f sdma_tool:fix o2 optimization problem and fix codecheck
Signed-off-by: zhangshuowen <zhangshuowen@hisilicon.com>
2024-10-22 19:06:58 +08:00

71 lines
1.9 KiB
RPMSpec
Executable File

Name: sdma-dk
Version: 1.0.0
Release: 6%{?dist}
Summary: SDMA user-mode driver
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_buildrootdir}/%{name}-%{version}-build
BuildRequires: cmake make gcc gcc-c++ chrpath memkind-devel numactl-devel
ExclusiveArch: aarch64
%define debug_package %{nil}
%description
This pakege contains dynamic link library of sdma module: libsdma_dk.so
and test tool: sdma_tool, which support base function test and performance
test.
%prep
%autosetup
%setup -c -n %{name}-%{version}
%build
cd %{name}-%{version}
cmake ./
make
%install
%{__rm} -rf %{buildroot}
install -d %{buildroot}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_bindir}
cp ./%{name}-%{version}/lib/libsdma_dk.so %{buildroot}%{_libdir}
cp ./%{name}-%{version}/lib/mdk_sdma.h %{buildroot}%{_includedir}
cp ./%{name}-%{version}/tool/sdma_tool %{buildroot}%{_bindir}
chrpath -d %{buildroot}%{_bindir}/sdma_tool
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_libdir}/libsdma_dk*
%{_includedir}/mdk_sdma.h
%{_bindir}/sdma_tool
%changelog
* Wed Oct 16 2024 zhangshuowen <zhangshuowen@hisilicon.com> - 1.0.0-6
- Type:bugfix
- DESC:fix O2 optimization problem
* Tue Oct 8 2024 zhangshuowen <zhangshuowen@hisilicon.com> - 1.0.0-5
- Type:feature
- DESC: add sdma_tool to support function test and performance test of sdma
* Sun Sep 15 2024 zhangyuyang <zhangyuyang31@huawei.com> - 1.0.0-4
- Type:bugfix
- DESC:fix bug code by review
* Wed Sep 11 2024 zhangyuyang <zhangyuyang31@huawei.com> - 1.0.0-3
- Type:bugfix
- DESC:add fast mode and fix sdma-dk code
* Tue Jun 11 2024 wangzijian <wangzijian22@huawei.com> - 1.0.0-2
- Type:bugfix
- DESC:fix sdma-dk spec
* Tue Jun 4 2024 wangzijian <wangzijian22@huawei.com> - 1.0.0-1
- Type:enhencement
- DESC:add sdma-dk spec and packge