|
 |
082b752 |
# % global setools_pre_ver rc
|
|
 |
d5a84f0 |
# % global gitver f1e5b20
|
|
 |
d5a84f0 |
|
|
 |
e1c3bd6 |
%global sepol_ver 2.3-1
|
|
 |
e1c3bd6 |
%global selinux_ver 2.3-1
|
|
 |
082b752 |
|
|
 |
d5a84f0 |
|
|
 |
d5a84f0 |
Name: setools
|
|
 |
7a283c3 |
Version: 4.3.0
|
|
 |
e1c3bd6 |
Release: 3%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist}
|
|
 |
d5a84f0 |
Summary: Policy analysis tools for SELinux
|
|
 |
d5a84f0 |
|
|
 |
d5a84f0 |
License: GPLv2
|
|
 |
b2615bd |
URL: https://github.com/SELinuxProject/setools/wiki
|
|
 |
b2615bd |
Source0: https://github.com/SELinuxProject/setools/archive/%{version}%{?setools_pre_ver:-%{setools_pre_ver}}.tar.gz
|
|
 |
d5a84f0 |
Source1: setools.pam
|
|
 |
d5a84f0 |
Source2: apol.desktop
|
|
 |
082b752 |
Patch1001: 1001-Do-not-use-Werror-during-build.patch
|
|
 |
082b752 |
Patch1002: 1002-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch
|
|
 |
7a283c3 |
Patch1003: 1003-Require-networkx-on-package-level.patch
|
|
 |
d5a84f0 |
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
|
|
 |
d5a84f0 |
BuildRequires: flex, bison
|
|
 |
442c972 |
BuildRequires: glibc-devel, gcc, git
|
|
 |
e236753 |
BuildRequires: libsepol-devel >= %{sepol_ver}, libsepol-static >= %{sepol_ver}
|
|
 |
d5a84f0 |
BuildRequires: qt5-qtbase-devel
|
|
 |
d5a84f0 |
BuildRequires: swig
|
|
 |
082b752 |
BuildRequires: python3-Cython
|
|
 |
ccf0ebf |
BuildRequires: python3-devel
|
|
 |
ccf0ebf |
BuildRequires: python3-setuptools
|
|
 |
082b752 |
BuildRequires: libselinux-devel
|
|
 |
d5a84f0 |
|
|
 |
bb087c8 |
Requires: %{name}-console = %{version}-%{release}
|
|
 |
bb087c8 |
Requires: %{name}-console-analyses = %{version}-%{release}
|
|
 |
bb087c8 |
Requires: %{name}-gui = %{version}-%{release}
|
|
 |
933ef7d |
|
|
cvsdist |
ea3dcf6 |
%description
|
|
 |
6023d0f |
SETools is a collection of graphical tools, command-line tools, and
|
|
 |
d5a84f0 |
Python modules designed to facilitate SELinux policy analysis.
|
|
 |
6023d0f |
|
|
 |
12efca8 |
%package console
|
|
 |
12efca8 |
Summary: Policy analysis command-line tools for SELinux
|
|
 |
12efca8 |
License: GPLv2
|
|
 |
051ad0f |
Requires: python3-setools = %{version}-%{release}
|
|
 |
12efca8 |
Requires: libselinux >= %{selinux_ver}
|
|
 |
6023d0f |
|
|
 |
6023d0f |
%description console
|
|
 |
6023d0f |
SETools is a collection of graphical tools, command-line tools, and
|
|
 |
6023d0f |
libraries designed to facilitate SELinux policy analysis.
|
|
 |
6023d0f |
|
|
 |
6023d0f |
This package includes the following console tools:
|
|
 |
6023d0f |
|
|
 |
d5a84f0 |
sediff Compare two policies to find differences.
|
|
 |
d5a84f0 |
seinfo List policy components.
|
|
 |
d5a84f0 |
sesearch Search rules (allow, type_transition, etc.)
|
|
cvsdist |
ea3dcf6 |
|
|
cvsdist |
ea3dcf6 |
|
|
 |
d570700 |
%package console-analyses
|
|
 |
d570700 |
Summary: Policy analysis command-line tools for SELinux
|
|
 |
d570700 |
License: GPLv2
|
|
 |
051ad0f |
Requires: python3-setools = %{version}-%{release}
|
|
 |
d570700 |
Requires: libselinux >= %{selinux_ver}
|
|
 |
d570700 |
Requires: python3-networkx
|
|
 |
d570700 |
|
|
 |
d570700 |
%description console-analyses
|
|
 |
d570700 |
SETools is a collection of graphical tools, command-line tools, and
|
|
 |
d570700 |
libraries designed to facilitate SELinux policy analysis.
|
|
 |
d570700 |
|
|
 |
d570700 |
This package includes the following console tools:
|
|
 |
d570700 |
|
|
 |
d570700 |
sedta Perform domain transition analyses.
|
|
 |
d570700 |
seinfoflow Perform information flow analyses.
|
|
 |
d570700 |
|
|
 |
d570700 |
|
|
 |
051ad0f |
%package -n python3-setools
|
|
 |
d5a84f0 |
Summary: Policy analysis tools for SELinux
|
|
 |
950d0d1 |
Obsoletes: setools-libs < 4.0.0
|
|
 |
7bfe6fa |
Recommends: libselinux-python3
|
|
 |
082b752 |
%{?python_provide:%python_provide python3-setools}
|
|
 |
ec182ab |
Requires: python3-setuptools
|
|
 |
db98489 |
|
|
 |
051ad0f |
%description -n python3-setools
|
|
 |
d5a84f0 |
SETools is a collection of graphical tools, command-line tools, and
|
|
 |
d5a84f0 |
Python 3 modules designed to facilitate SELinux policy analysis.
|
|
 |
0fd1802 |
|
|
 |
26a7d40 |
|
|
 |
d5a84f0 |
%package gui
|
|
 |
d5a84f0 |
Summary: Policy analysis graphical tools for SELinux
|
|
 |
fd63d73 |
Requires: python3-setools = %{version}-%{release}
|
|
 |
d5a84f0 |
Requires: python3-qt5
|
|
 |
d570700 |
Requires: python3-networkx
|
|
 |
b7aa74d |
|
|
 |
d5a84f0 |
%description gui
|
|
 |
d5a84f0 |
SETools is a collection of graphical tools, command-line tools, and
|
|
 |
d5a84f0 |
Python modules designed to facilitate SELinux policy analysis.
|
|
 |
52c9820 |
|
|
 |
f1f2c58 |
|
|
 |
d5a84f0 |
%prep
|
|
 |
082b752 |
%autosetup -p 1 -S git -n setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}}
|
|
 |
f4279f3 |
|
|
 |
764e716 |
|
|
 |
d5a84f0 |
%build
|
|
 |
aae45ee |
%py3_build
|
|
 |
764e716 |
|
|
 |
764e716 |
|
|
 |
d5a84f0 |
%install
|
|
 |
aae45ee |
%py3_install
|
|
 |
d5a84f0 |
|
|
 |
d5a84f0 |
%check
|
|
 |
d5a84f0 |
%if %{?_with_check:1}%{!?_with_check:0}
|
|
 |
12efca8 |
%{__python3} setup.py test
|
|
 |
d5a84f0 |
%endif
|
|
 |
277093c |
|
|
 |
019b809 |
|
|
 |
d5a84f0 |
%files
|
|
 |
1a39aa9 |
|
|
 |
d5a84f0 |
%files console
|
|
 |
d5a84f0 |
%{_bindir}/sediff
|
|
 |
d5a84f0 |
%{_bindir}/seinfo
|
|
 |
d5a84f0 |
%{_bindir}/sesearch
|
|
 |
d570700 |
%{_mandir}/man1/sediff*
|
|
 |
d570700 |
%{_mandir}/man1/seinfo*
|
|
 |
d570700 |
%{_mandir}/man1/sesearch*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/sediff*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/seinfo*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/sesearch*
|
|
 |
d570700 |
|
|
 |
d570700 |
%files console-analyses
|
|
 |
d570700 |
%{_bindir}/sedta
|
|
 |
d570700 |
%{_bindir}/seinfoflow
|
|
 |
d570700 |
%{_mandir}/man1/sedta*
|
|
 |
d570700 |
%{_mandir}/man1/seinfoflow*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/sedta*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/seinfoflow*
|
|
 |
d01ce99 |
|
|
 |
051ad0f |
%files -n python3-setools
|
|
 |
d5a84f0 |
%license COPYING COPYING.GPL COPYING.LGPL
|
|
 |
afb5e45 |
%{python3_sitearch}/setools
|
|
 |
afb5e45 |
%{python3_sitearch}/setools-*
|
|
 |
a73038c |
|
|
 |
d5a84f0 |
%files gui
|
|
 |
d5a84f0 |
%{_bindir}/apol
|
|
 |
afb5e45 |
%{python3_sitearch}/setoolsgui
|
|
 |
d570700 |
%{_mandir}/man1/apol*
|
|
 |
7a283c3 |
%{_mandir}/ru/man1/apol*
|
|
 |
a557fc8 |
|
|
 |
d5a84f0 |
%changelog
|
|
 |
e1c3bd6 |
* Thu Jul 16 2020 Petr Lautrbach <plautrba@redhat.com> - 4.3.0-3
|
|
 |
e1c3bd6 |
- rebuild with SELinux userspace 3.1 release
|
|
 |
e1c3bd6 |
|
|
 |
c62a76d |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.3.0-2
|
|
 |
c62a76d |
- Rebuilt for Python 3.9
|
|
 |
c62a76d |
|
|
 |
7a283c3 |
* Thu Apr 2 2020 Petr Lautrbach <plautrba@redhat.com> - 4.3.0-1
|
|
 |
7a283c3 |
- SETools 4.3.0 release
|
|
 |
7a283c3 |
- Revised sediff method for TE rules. This drastically reduced memory and run time.
|
|
 |
7a283c3 |
- Added infiniband context support to seinfo, sediff, and apol.
|
|
 |
7a283c3 |
- Added apol configuration for location of Qt assistant.
|
|
 |
7a283c3 |
- Fixed sediff issue where properties header would display when not requested.
|
|
 |
7a283c3 |
- Fixed sediff issue with type_transition file name comparison.
|
|
 |
7a283c3 |
- Fixed permission map socket sendto information flow direction.
|
|
 |
7a283c3 |
- Added methods to TypeAttribute class to make it a complete Python collection.
|
|
 |
7a283c3 |
- Genfscon now will look up classes rather than using fixed values which
|
|
 |
7a283c3 |
were dropped from libsepol.
|
|
 |
7a283c3 |
|
|
 |
bb087c8 |
* Mon Mar 23 2020 Petr Lautrbach <plautrba@redhat.com> - 4.2.2-5
|
|
 |
bb087c8 |
- setools requires -console, -console-analyses and -gui packages (#1794314)
|
|
 |
bb087c8 |
|
|
 |
7f0685b |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-4
|
|
 |
7f0685b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
7f0685b |
|
|
 |
2598e73 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.2-3
|
|
 |
2598e73 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
2598e73 |
|
|
 |
5f644f8 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.2-2
|
|
 |
5f644f8 |
- Rebuilt for Python 3.8
|
|
 |
5f644f8 |
|
|
 |
082b752 |
* Mon Jul 08 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.2-1}
|
|
 |
082b752 |
- SETools 4.2.2 release
|
|
 |
082b752 |
|
|
 |
082b752 |
* Mon May 13 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-3
|
|
 |
082b752 |
- Use %set_build_flags instead of %optflags
|
|
 |
082b752 |
|
|
 |
082b752 |
* Mon May 06 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-2
|
|
 |
082b752 |
- SELinuxPolicy: Create a map of aliases on policy load (#1672631)
|
|
 |
082b752 |
|
|
 |
082b752 |
* Tue Mar 26 2019 Petr Lautrbach <plautrba@redhat.com> - 4.2.1-1
|
|
 |
082b752 |
- SETools 4.2.1 release (#1581761, #1595582)
|
|
 |
082b752 |
|
|
 |
082b752 |
* Wed Nov 14 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-1
|
|
 |
082b752 |
- Update source to SETools 4.2.0 release
|
|
 |
082b752 |
|
|
 |
082b752 |
* Mon Oct 01 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-0.3.rc
|
|
 |
082b752 |
- Update upstream source to 4.2.0-rc
|
|
 |
5443cd0 |
|
|
 |
082b752 |
* Wed Sep 19 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-0.2.beta
|
|
 |
082b752 |
- Require userspace release 2.8
|
|
 |
082b752 |
- setools-gui requires python3-setools
|
|
 |
082b752 |
- Add Requires for python[23]-setuptools - no longer required (just recommended) by python[23] (#1623371)
|
|
 |
082b752 |
- Drop python2 subpackage (4.2.0 no longer supports python2)
|
|
 |
0818b39 |
|
|
 |
ec182ab |
* Wed Aug 29 2018 Vit Mojzis <vmojzis@redhat.com> - 4.1.1-13
|
|
 |
ec182ab |
- Add Requires for python[23]-setuptools - no longer required (just recommended)
|
|
 |
ec182ab |
by python[23] (#1623371)
|
|
 |
ec182ab |
|
|
 |
618f976 |
* Wed Aug 22 2018 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-12.1
|
|
 |
b2615bd |
- Fix SCTP patch - https://github.com/SELinuxProject/setools/issues/9
|
|
 |
b2615bd |
|
|
 |
3bb977d |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-11
|
|
 |
3bb977d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
3bb977d |
|
|
 |
a5d7dbf |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.1.1-10
|
|
 |
a5d7dbf |
- Rebuilt for Python 3.7
|
|
 |
a5d7dbf |
|
|
 |
9ad7d4e |
* Thu Jun 14 2018 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-9
|
|
 |
f73658f |
- Move gui python files to -gui subpackage
|
|
 |
f73658f |
|
|
 |
efa4712 |
* Thu Apr 26 2018 Vit Mojzis <vmojzis@redhat.com> - 4.1.1-8
|
|
 |
efa4712 |
- Add support for SCTP protocol (#1568333)
|
|
 |
efa4712 |
|
|
 |
2dcce95 |
* Thu Apr 19 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 4.1.1-7
|
|
 |
2dcce95 |
- Update Python 2 dependency declarations to new packaging standards
|
|
 |
2dcce95 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
 |
2dcce95 |
|
|
 |
3a754fe |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-6
|
|
 |
3a754fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
3a754fe |
|
|
 |
1924f09 |
* Mon Sep 04 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-5
|
|
 |
1924f09 |
- setools-python2 requires python2-enum34
|
|
 |
1924f09 |
|
|
 |
7672531 |
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.1.1-4
|
|
 |
7672531 |
- Add Provides for the old name without %%_isa
|
|
 |
7672531 |
|
|
 |
be3765e |
* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.1.1-3
|
|
 |
be3765e |
- Python 2 binary package renamed to python2-setools
|
|
 |
be3765e |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
 |
051ad0f |
- Python 3 binary package renamed to python3-setools
|
|
 |
be3765e |
|
|
 |
5739cf7 |
* Thu Aug 10 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-2
|
|
 |
5739cf7 |
- bswap_* macros are defined in byteswap.h
|
|
 |
5739cf7 |
|
|
 |
13a8a83 |
* Mon Aug 07 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-1
|
|
 |
13a8a83 |
- New upstream release
|
|
 |
13a8a83 |
|
|
 |
4006d5c |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-5
|
|
 |
4006d5c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
 |
4006d5c |
|
|
 |
869ecbd |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
|
 |
869ecbd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
869ecbd |
|
|
 |
13a8a83 |
* Mon May 22 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-3
|
|
 |
7bfe6fa |
- setools-python{,3} packages should have a weak dependency on libselinux-python{,3}
|
|
 |
7bfe6fa |
(#1447747)
|
|
 |
7bfe6fa |
|
|
 |
526a526 |
* Thu Feb 23 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-2
|
|
 |
526a526 |
- Move python networkx dependency to -gui and -console-analyses
|
|
 |
526a526 |
- Ship sedta and seinfoflow in setools-console-analyses
|
|
 |
526a526 |
|
|
 |
d5a84f0 |
* Wed Feb 15 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-1
|
|
 |
308e8fe |
- New upstream release.
|