2020-01-09 19:37:01 +08:00
|
|
|
%global sepol_ver 2.9-1
|
|
|
|
|
%global selinux_ver 2.9-1
|
|
|
|
|
|
|
|
|
|
Name: setools
|
|
|
|
|
Version: 4.2.2
|
2020-01-15 22:25:02 +08:00
|
|
|
Release: 2
|
2020-01-09 19:37:01 +08:00
|
|
|
Summary: Policy analysis tools for SELinux
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://github.com/SELinuxProject/setools/wiki
|
|
|
|
|
Source0: https://github.com/SELinuxProject/setools/archive/%{name}-%{version}.tar.gz
|
|
|
|
|
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
|
|
|
|
|
BuildRequires: flex bison glibc-devel gcc git qt5-qtbase-devel swig
|
|
|
|
|
BuildRequires: libsepol-devel >= %{sepol_ver}, libsepol-static >= %{sepol_ver}
|
|
|
|
|
BuildRequires: python3-Cython python3-devel python3-setuptools libselinux-devel
|
|
|
|
|
Requires: python3-%{name} = %{version}-%{release}
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%description
|
2020-01-09 19:37:01 +08:00
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
|
Python modules designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
|
|
%package console
|
|
|
|
|
Summary: Policy analysis command-line tools for SELinux
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Requires: python3-setools = %{version}-%{release} libselinux >= %{selinux_ver}
|
|
|
|
|
|
|
|
|
|
%description console
|
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
|
|
This package includes the following console tools:
|
|
|
|
|
|
|
|
|
|
sediff Compare two policies to find differences.
|
|
|
|
|
seinfo List policy components.
|
|
|
|
|
sesearch Search rules (allow, type_transition, etc.)
|
|
|
|
|
|
|
|
|
|
%package console-analyses
|
|
|
|
|
Summary: Policy analysis command-line tools for SELinux
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Requires: python3-setools = %{version}-%{release}
|
|
|
|
|
Requires: libselinux >= %{selinux_ver} python3-networkx
|
|
|
|
|
|
|
|
|
|
%description console-analyses
|
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
|
|
This package includes the following console tools:
|
|
|
|
|
|
|
|
|
|
sedta Perform domain transition analyses.
|
|
|
|
|
seinfoflow Perform information flow analyses.
|
|
|
|
|
|
|
|
|
|
%package -n python3-setools
|
|
|
|
|
Summary: Policy analysis tools for SELinux
|
|
|
|
|
Obsoletes: setools-libs < 4.0.0
|
|
|
|
|
Recommends: libselinux-python3
|
2019-09-30 11:16:53 -04:00
|
|
|
%{?python_provide:%python_provide python3-setools}
|
2020-01-09 19:37:01 +08:00
|
|
|
Requires: python3-setuptools
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%description -n python3-setools
|
2020-01-09 19:37:01 +08:00
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
|
Python 3 modules designed to facilitate SELinux policy analysis.
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%package gui
|
|
|
|
|
Summary: Policy analysis graphical tools for SELinux
|
|
|
|
|
Requires: python3-setools = %{version}-%{release}
|
|
|
|
|
Requires: python3-qt5 python3-networkx
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%description gui
|
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
|
Python modules designed to facilitate SELinux policy analysis.
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-09 19:37:01 +08:00
|
|
|
%autosetup -n setools-%{version} -p1
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%build
|
2020-01-09 19:37:01 +08:00
|
|
|
%py3_build
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%install
|
2020-01-09 19:37:01 +08:00
|
|
|
%py3_install
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{?_with_check:1}%{!?_with_check:0}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%files console
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/sediff
|
|
|
|
|
%{_bindir}/seinfo
|
|
|
|
|
%{_bindir}/sesearch
|
|
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%files console-analyses
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/sedta
|
|
|
|
|
%{_bindir}/seinfoflow
|
|
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%files -n python3-setools
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license COPYING COPYING.GPL COPYING.LGPL
|
|
|
|
|
%{python3_sitearch}/setools
|
2020-01-09 19:37:01 +08:00
|
|
|
%{python3_sitearch}/setools-*
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%files gui
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/apol
|
|
|
|
|
%{python3_sitearch}/setoolsgui
|
|
|
|
|
|
2020-01-09 19:37:01 +08:00
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/apol*
|
|
|
|
|
%{_mandir}/man1/sedta*
|
|
|
|
|
%{_mandir}/man1/seinfoflow*
|
|
|
|
|
%{_mandir}/man1/sediff*
|
|
|
|
|
%{_mandir}/man1/seinfo*
|
|
|
|
|
%{_mandir}/man1/sesearch*
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-01-09 19:37:01 +08:00
|
|
|
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.2.2-2
|
|
|
|
|
- update to 4.2.2
|