diff --git a/libsdma-dk-1.0.0.tar.gz b/libsdma-dk-1.0.0.tar.gz new file mode 100755 index 0000000..e238e54 Binary files /dev/null and b/libsdma-dk-1.0.0.tar.gz differ diff --git a/sdma-dk.spec b/sdma-dk.spec new file mode 100755 index 0000000..85a3ed6 --- /dev/null +++ b/sdma-dk.spec @@ -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 1.0.0-1