sdma-dk:Fix spec file build failure issue

1.The name option does not match the module name;
2.The name of the packaged lib is inconsistent with that of the
  generated lib;
3.The error message "error:Empty %file file" is displayed.

Signed-off-by: wangzijian970910 <wangzijian22@huawei.com>
This commit is contained in:
wangzijian970910 2024-06-11 10:23:56 +08:00
parent f71aca16cc
commit 219e870540
3 changed files with 17 additions and 12 deletions

Binary file not shown.

BIN
sdma-dk-1.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -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 <wangzijian22@huawei.com> 1.0.0-1
* 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