修复测试阶段错误导致rpm构建失败的问题
Signed-off-by: jinlun <jinlun@huawei.com>
This commit is contained in:
parent
881e29ba96
commit
d6e1f33900
10
setools.spec
10
setools.spec
@ -1,6 +1,6 @@
|
|||||||
Name: setools
|
Name: setools
|
||||||
Version: 4.4.2
|
Version: 4.4.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Policy Analysis Tools for SELinux
|
Summary: Policy Analysis Tools for SELinux
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/SELinuxProject/setools/wiki
|
URL: https://github.com/SELinuxProject/setools/wiki
|
||||||
@ -73,10 +73,11 @@ Gui packages for setools.
|
|||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/conditionalinfoflow.py
|
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/test_conditionalinfoflow.py
|
||||||
|
sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/test_infoflow.py
|
||||||
|
sed -i "s#from setools import DomainTransitionAnalysis#from setools.dta import DomainTransitionAnalysis#" ./tests/test_dta.py
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
||||||
%files console
|
%files console
|
||||||
@ -110,6 +111,9 @@ sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import Info
|
|||||||
%{_mandir}/ru/man1/*
|
%{_mandir}/ru/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fir Aug 04 2023 jinlun <jinlun@huawei.com> - 4.4.2-2
|
||||||
|
- fix in the test phase error
|
||||||
|
|
||||||
* Thu Jul 20 2023 jinlun <jinlun@huawei.com> - 4.4.2-1
|
* Thu Jul 20 2023 jinlun <jinlun@huawei.com> - 4.4.2-1
|
||||||
- update setools to 4.4.2
|
- update setools to 4.4.2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user