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>
45 lines
974 B
RPMSpec
Executable File
45 lines
974 B
RPMSpec
Executable File
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 <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
|