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:
parent
f71aca16cc
commit
219e870540
Binary file not shown.
BIN
sdma-dk-1.0.0.tar.gz
Normal file
BIN
sdma-dk-1.0.0.tar.gz
Normal file
Binary file not shown.
29
sdma-dk.spec
29
sdma-dk.spec
@ -1,12 +1,12 @@
|
|||||||
Name: libsdma-dk
|
Name: sdma-dk
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: SDMA user-mode driver
|
Summary: SDMA user-mode driver
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_buildrootdir}/%{name}-%{version}-build
|
||||||
BuildRequires: make gcc autoconf automake libtool
|
BuildRequires: make gcc autoconf automake libtool
|
||||||
|
ExclusiveArch: aarch64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@ -21,19 +21,24 @@ automake --add-missing
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%configure --prefix=${RPM_BUILD_ROOT}/%{_libdir} --disable-static LDFLAGS="-s"
|
%configure --prefix=${RPM_BUILD_ROOT}/%{_libdir} --disable-static LDFLAGS="-s"
|
||||||
%make_build
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}/%{_libdir}/*
|
rm -rf %{buildroot}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/
|
mkdir -p %{buildroot}
|
||||||
make install
|
make install DESTDIR=%{buildroot}
|
||||||
cp -rf /lib64/libsdmadk* ${RPM_BUILD_ROOT}/%{_libdir}/
|
|
||||||
find ${RPM_BUILD_ROOT}/%{_libdir}/ -name '*.so*'
|
find ${RPM_BUILD_ROOT}/%{_libdir}/ -name '*.so*'
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
%{_libdir}/libsdmadk*
|
%{_libdir}/libsdma_dk*
|
||||||
|
/usr/include/*
|
||||||
|
|
||||||
%changelog
|
%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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user