commit
a506c4cd18
@ -119,6 +119,9 @@ mkdir -p %{buildroot}%{_fileattrsdir}
|
|||||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 21 2020 Wang Shuo <wangshuo_1994@foxmail.com> - 30-14
|
||||||
|
- fix error message for kmodtool
|
||||||
|
|
||||||
* Thu Aug 13 2020 shenyangyang <shenyangyang4@huawei.com> - 30-13
|
* Thu Aug 13 2020 shenyangyang <shenyangyang4@huawei.com> - 30-13
|
||||||
- Add provides of perl-macros
|
- Add provides of perl-macros
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ def get_rpmtemplate(kmod_name,verrel):
|
|||||||
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
|
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
|
||||||
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
|
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
|
||||||
print("%post -n kmod-" + kmod_name)
|
print("%post -n kmod-" + kmod_name)
|
||||||
print("if [ -e /boot/System.map-" + verrel + "]; then")
|
print("if [ -e /boot/System.map-" + verrel + " ]; then")
|
||||||
print(" /sbin/depmod -aeF /boot/System.map-" + verrel +" " + verrel +"> /dev/null || :")
|
print(" /sbin/depmod -aeF /boot/System.map-" + verrel +" " + verrel +"> /dev/null || :")
|
||||||
print("fi")
|
print("fi")
|
||||||
if (kmp !=""):
|
if (kmp !=""):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user