!5 sdma-dk:Fix spec file causing build failure issue

From: @wangzijian970910 
Reviewed-by: @zju-zzy 
Signed-off-by: @zju-zzy
This commit is contained in:
openeuler-ci-bot 2024-06-12 03:18:53 +00:00 committed by Gitee
commit 212b440497
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 44 additions and 0 deletions

BIN
sdma-dk-1.0.0.tar.gz Normal file

Binary file not shown.

44
sdma-dk.spec Executable file
View File

@ -0,0 +1,44 @@
Name: sdma-dk
Version: 1.0.0
Release: 2%{?dist}
Summary: SDMA user-mode driver
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_buildrootdir}/%{name}-%{version}-build
BuildRequires: make gcc autoconf automake libtool
ExclusiveArch: aarch64
%description
%prep
%autosetup
aclocal
autoconf
autoheader
libtoolize --automake --copy --debug --force
automake --add-missing
%build
%configure --prefix=${RPM_BUILD_ROOT}/%{_libdir} --disable-static LDFLAGS="-s"
make
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
make install DESTDIR=%{buildroot}
find ${RPM_BUILD_ROOT}/%{_libdir}/ -name '*.so*'
%files
%defattr(755,root,root)
%{_libdir}/libsdma_dk*
/usr/include/*
%changelog
* 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