sdma-dk:Add sdma-dk src pkg and spec file
Adding the sdma-dk Source Code and Spec File. Signed-off-by: wangzijian970910 <wangzijian22@huawei.com>
This commit is contained in:
parent
a802a00de1
commit
f71aca16cc
BIN
libsdma-dk-1.0.0.tar.gz
Executable file
BIN
libsdma-dk-1.0.0.tar.gz
Executable file
Binary file not shown.
39
sdma-dk.spec
Executable file
39
sdma-dk.spec
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
Name: libsdma-dk
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: SDMA user-mode driver
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: make gcc autoconf automake libtool
|
||||||
|
|
||||||
|
%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_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}/%{_libdir}/*
|
||||||
|
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/
|
||||||
|
make install
|
||||||
|
cp -rf /lib64/libsdmadk* ${RPM_BUILD_ROOT}/%{_libdir}/
|
||||||
|
find ${RPM_BUILD_ROOT}/%{_libdir}/ -name '*.so*'
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(755,root,root)
|
||||||
|
%{_libdir}/libsdmadk*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jun 4 2024 wangzijian <wangzijian22@huawei.com> 1.0.0-1
|
||||||
Loading…
x
Reference in New Issue
Block a user