!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:
commit
212b440497
BIN
sdma-dk-1.0.0.tar.gz
Normal file
BIN
sdma-dk-1.0.0.tar.gz
Normal file
Binary file not shown.
44
sdma-dk.spec
Executable file
44
sdma-dk.spec
Executable 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
|
||||
Loading…
x
Reference in New Issue
Block a user