2020-01-15 22:29:42 +08:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
Name: setools
|
2020-07-30 10:21:58 +08:00
|
|
|
Version: 4.3.0
|
2020-12-01 15:03:11 +08:00
|
|
|
Release: 4
|
2020-01-15 22:29:42 +08:00
|
|
|
Summary: Policy Analysis Tools for SELinux
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://github.com/SELinuxProject/setools/wiki
|
|
|
|
|
Source0: https://github.com/SELinuxProject/setools/archive/%{version}.tar.gz
|
|
|
|
|
Source1: setools.pam
|
|
|
|
|
Source2: apol.desktop
|
|
|
|
|
|
2020-07-30 10:21:58 +08:00
|
|
|
Patch0: 0001-Do-not-use-Werror-during-build.patch
|
|
|
|
|
Patch1: 0002-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch
|
2020-08-06 15:44:52 +08:00
|
|
|
Patch2: 0003-Require-networkx-on-package-level.patch
|
2020-01-15 22:29:42 +08:00
|
|
|
|
|
|
|
|
BuildRequires: flex bison glibc-devel gcc swig git python3-setuptools
|
2020-07-30 10:21:58 +08:00
|
|
|
BuildRequires: qt5-qtbase-devel python3-devel
|
2020-12-01 15:03:11 +08:00
|
|
|
BuildRequires: libsepol-devel >= 3.1 libsepol-static >= 3.1
|
|
|
|
|
BuildRequires: python3-Cython
|
|
|
|
|
BuildRequires: python3-setuptools
|
2020-01-15 22:29:42 +08:00
|
|
|
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%description
|
2020-01-15 22:29:42 +08:00
|
|
|
SETools consists of a number of SELinux policy analysis tools, both graphical
|
|
|
|
|
and command line.
|
|
|
|
|
|
|
|
|
|
%package console
|
|
|
|
|
Summary: Console packages for setools
|
|
|
|
|
License: GPLv2
|
2020-12-01 15:03:11 +08:00
|
|
|
Requires: python3-setools = %{version}-%{release} libselinux >= 3.1
|
2020-01-15 22:29:42 +08:00
|
|
|
|
|
|
|
|
%description console
|
|
|
|
|
Console packages for setools.
|
|
|
|
|
|
|
|
|
|
%package console-analyses
|
|
|
|
|
Summary: Analyses files for setools-console
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Requires: python3-setools = %{version}-%{release}
|
2020-12-01 15:03:11 +08:00
|
|
|
Requires: libselinux >= 3.1
|
2020-01-15 22:29:42 +08:00
|
|
|
|
|
|
|
|
%description console-analyses
|
|
|
|
|
Analyses files for setools-console.
|
|
|
|
|
|
|
|
|
|
%package -n python3-setools
|
|
|
|
|
Summary: Python3 package for setools
|
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
Provides: setools-python3 = %{version}-%{release}
|
|
|
|
|
Obsoletes: setools-libs < 4.0.0
|
|
|
|
|
Obsoletes: setools-python3 < %{version}-%{release}
|
2020-03-13 20:10:00 +08:00
|
|
|
Obsoletes: setools < %{version}-%{release}
|
2020-01-15 22:29:42 +08:00
|
|
|
Recommends: libselinux-python3
|
2019-09-30 11:16:53 -04:00
|
|
|
%{?python_provide:%python_provide python3-setools}
|
|
|
|
|
|
|
|
|
|
%description -n python3-setools
|
2020-01-15 22:29:42 +08:00
|
|
|
Python3 package for setools.
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
%package gui
|
|
|
|
|
Summary: Gui packages for setools
|
|
|
|
|
Requires: python3-setools = %{version}-%{release}
|
2021-02-09 11:19:17 +08:00
|
|
|
Requires: python3-qt5
|
|
|
|
|
Requires: python3-networkx
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
%description gui
|
|
|
|
|
Gui packages for setools.
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-15 22:29:42 +08:00
|
|
|
%autosetup -n setools-%{version} -p1
|
|
|
|
|
|
2019-09-30 11:16:53 -04:00
|
|
|
%build
|
2020-01-15 22:29:42 +08:00
|
|
|
%{__python3} setup.py build
|
|
|
|
|
|
2019-09-30 11:16:53 -04:00
|
|
|
%install
|
2020-01-15 22:29:42 +08:00
|
|
|
rm -rf %{buildroot}%{_bindir}
|
|
|
|
|
%{__python3} setup.py install --root %{buildroot}
|
2020-07-30 10:21:58 +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-15 22:29:42 +08:00
|
|
|
%files console
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/sediff
|
|
|
|
|
%{_bindir}/seinfo
|
|
|
|
|
%{_bindir}/sesearch
|
|
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
%files console-analyses
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/sedta
|
|
|
|
|
%{_bindir}/seinfoflow
|
|
|
|
|
|
2020-01-15 22:29:42 +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-15 22:29:42 +08:00
|
|
|
%{python3_sitearch}/setools-%{version}-*
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
%files gui
|
2019-09-30 11:16:53 -04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/apol
|
|
|
|
|
%{python3_sitearch}/setoolsgui
|
2020-07-30 10:21:58 +08:00
|
|
|
%{_mandir}/man1/apol*
|
|
|
|
|
%{_mandir}/ru/man1/apol*
|
2019-09-30 11:16:53 -04:00
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man1/*
|
2020-07-30 10:21:58 +08:00
|
|
|
%{_mandir}/ru/man1/*
|
2019-09-30 11:16:53 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-12-01 15:03:11 +08:00
|
|
|
* Tue Dec 1 2020 Liquor <lirui130@huawei.com> - 4.3.0-4
|
|
|
|
|
- add the necessary version dependencies
|
|
|
|
|
|
2020-08-11 17:13:31 +08:00
|
|
|
* Tue Aug 11 2020 linwei <linwei54@huawei.com> - 4.3.0-3
|
|
|
|
|
- remove requires python3-network
|
|
|
|
|
|
2020-08-06 15:44:52 +08:00
|
|
|
* Thu Aug 6 2020 Liquor <lirui130@huawei.com> - 4.3.0-2
|
|
|
|
|
- remove requires python3-networkx
|
|
|
|
|
|
2020-07-30 10:21:58 +08:00
|
|
|
* Thu Jul 30 2020 linwei <linwei54@huawei.com> - 4.3.0-1
|
|
|
|
|
- update setools to 4.3.0
|
|
|
|
|
|
2020-03-13 20:10:00 +08:00
|
|
|
* Fri Mar 13 2020 zhangrui <zhangrui182@huawei.com> - 4.1.1-17
|
|
|
|
|
- obsolete setools
|
|
|
|
|
|
2020-03-06 19:08:30 +08:00
|
|
|
* Fri Mar 6 2020 songnannan <songnannan2@huaiwei.com> - 4.1.1-16
|
|
|
|
|
- remove the unnecessary requires
|
|
|
|
|
|
2020-01-15 22:29:42 +08:00
|
|
|
* Wed Oct 30 2019 yanan <yanan@huawei.com> - 4.1.1-15
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add global marco of debug_package
|
|
|
|
|
|
|
|
|
|
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.1.1-14
|
|
|
|
|
- Package init
|