!47 【轻量级 PR】:setools:打开测试用例

From: @jinlun123123 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2023-02-22 03:42:30 +00:00 committed by Gitee
commit 72b473ac9a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: setools Name: setools
Version: 4.4.0 Version: 4.4.0
Release: 2 Release: 3
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
@ -15,7 +15,7 @@ BuildRequires: flex bison glibc-devel gcc swig git python3-setuptools
BuildRequires: qt5-qtbase-devel python3-devel BuildRequires: qt5-qtbase-devel python3-devel
BuildRequires: libsepol-devel >= 3.2 libsepol-static >= 3.2 libselinux-devel BuildRequires: libsepol-devel >= 3.2 libsepol-static >= 3.2 libselinux-devel
BuildRequires: python3-Cython BuildRequires: python3-Cython
BuildRequires: python3-setuptools BuildRequires: python3-setuptools python3-networkx checkpolicy
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0 Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
%description %description
@ -74,9 +74,9 @@ Gui packages for setools.
%py3_install %py3_install
%check %check
%if %{?_with_check:1}%{!?_with_check:0} sed -i "s#from setools import InfoFlowAnalysis#from setools.infoflow import InfoFlowAnalysis#" ./tests/conditionalinfoflow.py
%{__python3} setup.py test %{__python3} setup.py test
%endif
%files %files
@ -111,6 +111,9 @@ Gui packages for setools.
%{_mandir}/ru/man1/* %{_mandir}/ru/man1/*
%changelog %changelog
* Thu Feb 16 2023 jinlun <jinlun@huawei.com> - 4.4.0-3
- add code check
* Tue Aug 2 2022 xuwenlong <xuwenlong16@huawei.com> - 4.4.0-2 * Tue Aug 2 2022 xuwenlong <xuwenlong16@huawei.com> - 4.4.0-2
- change release for rebulid - change release for rebulid