Update kernel file modification scope
This commit is contained in:
parent
f5320b9e50
commit
eaa060f437
6
oec-hardware-1.0.0-system.patch
Normal file
6
oec-hardware-1.0.0-system.patch
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
diff tests/system_new.py tests/system.py > oec-hardware-1.0.0-system.patch
|
||||||
|
155,156c155
|
||||||
|
< except_list = ["/modules.dep$", "/modules.symbols$", "/modules.dep.bin$", "/modules.symbols.bin$"]
|
||||||
|
< if os.system("rpm -V --nomtime --nomode --nocontexts %s | grep -Ev '%s'" % (kernel_rpm, "|".join(except_list))) is 0:
|
||||||
|
---
|
||||||
|
> if not os.system("rpm -V --nomtime --nomode --nocontexts %s" % kernel_rpm) is 0:
|
||||||
@ -1,5 +1,5 @@
|
|||||||
%define version 1.0.0
|
%define version 1.0.0
|
||||||
%define release 2
|
%define release 3
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%global _build_id_links none
|
%global _build_id_links none
|
||||||
%undefine __brp_mangle_shebangs
|
%undefine __brp_mangle_shebangs
|
||||||
@ -13,6 +13,9 @@ License: Mulan PSL v2
|
|||||||
URL: https://gitee.com/openeuler/oec-hardware
|
URL: https://gitee.com/openeuler/oec-hardware
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
|
#PATCH-FIX-https://gitee.com/src-openEuler/ patch from oec-hardware project
|
||||||
|
Patch0001: oec-hardware-1.0.0-system.patch
|
||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
Requires: kernel-devel, kernel-headers, dmidecode, tar
|
Requires: kernel-devel, kernel-headers, dmidecode, tar
|
||||||
@ -71,6 +74,7 @@ DESTDIR=$RPM_BUILD_ROOT make install
|
|||||||
rm -rf /var/lock/oech.lock
|
rm -rf /var/lock/oech.lock
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 18 2020 Cui XuCui <cuixucui@huawei.com> - 1.0.0-3
|
||||||
* Sun Jul 01 2020 Cui XuCui <cuixucui@huawei.com> - 1.0.0-2
|
* Sun Jul 01 2020 Cui XuCui <cuixucui@huawei.com> - 1.0.0-2
|
||||||
* Fri Jul 26 2019 Lu Tianxiong <lutianxiong@huawei.com> - 1.0.0-h1
|
* Fri Jul 26 2019 Lu Tianxiong <lutianxiong@huawei.com> - 1.0.0-h1
|
||||||
- Initial spec
|
- Initial spec
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user