diff --git a/sdma-dk-1.0.0.tar.gz b/sdma-dk-1.0.0.tar.gz new file mode 100644 index 0000000..90e0aae Binary files /dev/null and b/sdma-dk-1.0.0.tar.gz differ diff --git a/sdma-dk.spec b/sdma-dk.spec new file mode 100755 index 0000000..928c6ec --- /dev/null +++ b/sdma-dk.spec @@ -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 - 1.0.0-2 +- Type:bugfix +- DESC:fix sdma-dk spec + +* Tue Jun 4 2024 wangzijian - 1.0.0-1 +- Type:enhencement +- DESC:add sdma-dk spec and packge