From 5c4311e122903e549983385ae89d191dabca959b Mon Sep 17 00:00:00 2001 From: jinlun Date: Sat, 18 Feb 2023 08:40:53 +0000 Subject: [PATCH] =?UTF-8?q?setools=EF=BC=9A=E6=89=93=E5=BC=80=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jinlun (cherry picked from commit 6a5b8e3f70076d49aa18ad7594d214e6f63f9c1d) --- setools.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setools.spec b/setools.spec index c7ad715..d60d521 100644 --- a/setools.spec +++ b/setools.spec @@ -1,6 +1,6 @@ Name: setools Version: 4.4.0 -Release: 2 +Release: 3 Summary: Policy Analysis Tools for SELinux License: GPLv2 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: libsepol-devel >= 3.2 libsepol-static >= 3.2 libselinux-devel BuildRequires: python3-Cython -BuildRequires: python3-setuptools +BuildRequires: python3-setuptools python3-networkx checkpolicy Obsoletes: setools < 4.0.0, setools-devel < 4.0.0 %description @@ -74,9 +74,9 @@ Gui packages for setools. %py3_install %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 -%endif + %files @@ -111,6 +111,9 @@ Gui packages for setools. %{_mandir}/ru/man1/* %changelog +* Thu Feb 16 2023 jinlun - 4.4.0-3 +- add code check + * Tue Aug 2 2022 xuwenlong - 4.4.0-2 - change release for rebulid -- Gitee