diff --git a/libsdma-dk-1.0.0.tar.gz b/libsdma-dk-1.0.0.tar.gz deleted file mode 100755 index e238e54..0000000 Binary files a/libsdma-dk-1.0.0.tar.gz and /dev/null differ 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 index 85a3ed6..928c6ec 100755 --- a/sdma-dk.spec +++ b/sdma-dk.spec @@ -1,12 +1,12 @@ -Name: libsdma-dk +Name: sdma-dk Version: 1.0.0 -Release: 1%{?dist} +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 @@ -21,19 +21,24 @@ automake --add-missing %build %configure --prefix=${RPM_BUILD_ROOT}/%{_libdir} --disable-static LDFLAGS="-s" -%make_build +make %install -rm -rf ${RPM_BUILD_ROOT}/%{_libdir}/* -mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/ -make install -cp -rf /lib64/libsdmadk* ${RPM_BUILD_ROOT}/%{_libdir}/ +rm -rf %{buildroot} +mkdir -p %{buildroot} +make install DESTDIR=%{buildroot} find ${RPM_BUILD_ROOT}/%{_libdir}/ -name '*.so*' %files %defattr(755,root,root) -%{_libdir}/libsdmadk* - +%{_libdir}/libsdma_dk* +/usr/include/* %changelog -* Tue Jun 4 2024 wangzijian 1.0.0-1 +* 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