Compare commits

1 Commits
main ... 1.1

7 changed files with 36 additions and 154 deletions

View File

@@ -1,2 +1,2 @@
Additional functionality for these tools can be gained by installing python3-networkx. This pulls in many dependencies and is
not needed for most people, therefore it's not required or recommended due to the size of the required dependencies.
not needed for most people, therefor it's not required or recommended due to the size of the required dependencies

BIN
setools-4.4.3.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
setools-4.5.1.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,11 +0,0 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
25e47d00bbffd6046f55409c9ba3b08d9b1d5788cc159ea247d9e0ced8e482e7 setools-4.5.1.tar.bz2
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQSFZJCJyfOFs19AVo0haY/SnUNVpAUCZuhwhAAKCRAhaY/SnUNV
pPFLAQCxeYSAb83UT/lCMuJqInvnq/n9FfmfniCgu1HuLEmvKgEAkCGSVFtSAe6C
q+Mu17dAOACwnCYo+aK6eXXuJd3ABQo=
=S2WE
-----END PGP SIGNATURE-----

View File

@@ -1,69 +1,3 @@
-------------------------------------------------------------------
Wed Sep 18 14:17:31 UTC 2024 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Add upstream tarball signature
- Add key 85649089C9F385B35F40568D21698FD29D4355A4 to setools.keyring
-------------------------------------------------------------------
Tue May 28 11:19:10 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
- Rework packaging to modern python packaging
- python-setools module now builds for python310, python311, python312
for tw and builds for python311 in 15.4 + 15.5
- setools-console scripts will use python311 as default in factory, 15.4
and 15.5
- moved %dir %{_docdir}/%{name}/ and %{_docdir}/%{name}/* out of the
python-setools module into setools-console as it does not belong in there
and causes conflicts between python versions
- moved %{python_sitearch}/setoolsgui from setools-gui into the
python-setools module for multiversion build
-------------------------------------------------------------------
Thu May 2 07:41:11 UTC 2024 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Update to version 4.5.1:
- Correct annotations of NetworkX types to make it optional again.
- Fix packaging issue for apol's style sheet (apol.css).
- Drop 0001-Make-networkx-optional-again-Fixes-125.patch fixed upstream
- Change networkx Requires to Suggests
-------------------------------------------------------------------
Thu Apr 18 13:21:48 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
- Fix build for 15.4 and 15.5:
- Minimum required python version is 3.11, so building only for python311
- Remove dependency for networkx: 0001-Make-networkx-optional-again-Fixes-125.patch
-------------------------------------------------------------------
Thu Mar 21 14:06:13 UTC 2024 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Update to version 4.5.0:
- User Visible Changes
* Add graphical results for information flow analysis and domain
transition analysis, available in apol, sedta, and seinfoflow.
* Add tooltips, What's This?, and detail popups in apol to help
cross-referencing query and analysis results along with
context-sensitive help.
- Under The Hood Changes
* Rework apol to fully generate the UI programmatically.
* Update apol to PyQt6
* Replace deprecated uses of pkg_resources and distutils.
* Begin adding unit tests for apol UI.
- Updated Dependencies
SETools now higher minimum versions of the following dependencies:
* Python 3.10
* NetworkX 2.6
* PyQt6
* Cython 0.29.14
- New Dependencies
* pygraphviz (for seinfoflow, sedta, apol)
-------------------------------------------------------------------
Mon Dec 11 08:09:10 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
- Update to version 4.4.4:
* Update for compiling with libsepol 3.6.
-------------------------------------------------------------------
Tue Aug 1 10:27:36 UTC 2023 - Filippo Bonazzi <filippo.bonazzi@suse.com>
@@ -123,7 +57,7 @@ Tue Feb 22 09:13:19 UTC 2022 - Shung-Hsi Yu <shung-hsi.yu@suse.com>
Tue Jun 8 11:10:02 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Fix dependency of python3-setools: require python3, not python
(which is python2) (bsc#1200649).
(which is python2).
-------------------------------------------------------------------
Tue Mar 9 09:24:10 UTC 2021 - Johannes Segitz <jsegitz@suse.com>

View File

@@ -1,35 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZuhGfhYJKwYBBAHaRw8BAQdADz/tF/gexoZl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R+6f9ZBHQ9/Qoxocuvce3HSSk7XAQDASqRpXcaMcm8ZaKSOm6wXAa8J
7NguD2Ov8QEsZDA9BLg4BGboSckSCisGAQQBl1UBBQEBB0DUELErM3F1hWb3j/Wm
3vDku3kdA2YVLxZtonOkF6XOUgMBCAeIfgQYFgoAJhYhBMTGKxZwwt8zFEjyhsY2
PvHJaXsUBQJm6EnJAhsMBQkDwmcAAAoJEMY2PvHJaXsU+x4BAMeSfc01SUt1eNtW
AEj/caCS4ako0iZd7QZT8recX3zfAP0crszn37KtEaiHb5vHy38tym3+cSzDzvb8
+9wp84UkArgzBGboSbQWCSsGAQQB2kcPAQEHQJDi94fnaJtloFcS6jDbPcg4xuJB
3TEojTql8N+WBlTAiQFWBBgWCgAmFiEExMYrFnDC3zMUSPKGxjY+8clpexQFAmbo
SbQCGwIFCQPCZwAA4gkQxjY+8clpexTAFiAEGRYKAH0WIQSFZJCJyfOFs19AVo0h
aY/SnUNVpAUCZuhJtF8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVu
cGdwLmZpZnRoaG9yc2VtYW4ubmV0ODU2NDkwODlDOUYzODVCMzVGNDA1NjhEMjE2
OThGRDI5RDQzNTVBNAAKCRAhaY/SnUNVpFg5AP9SZa0U2GqZgJ4qVioUyCu4J5A7
NVVW7wKylAEphRGG9wEA4ETyrF90dU/ZM+ty4buWsnPiYFf8IzyTCIYnlXCiyANd
+QD+J1Hzc+oB4J+n2s5ZZ/iA4AafxqoZsREYJmHoK27cVlIA/2NRj6qBA8PNHsDV
xIlxic7DWU+KEF28BO3UQQ6fqEUG
=XJN+
-----END PGP PUBLIC KEY BLOCK-----

View File

@@ -1,7 +1,7 @@
#
# spec file for package setools
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,37 +16,33 @@
#
%{?sle15_python_module_pythons}
%if 0%{?suse_version} < 1600
# set python_for_executables from python macros to python311
# to build python scripts in bin dirs only for python311
%define python_for_executables python311
%endif
# As soon as python38 is introduced as flavor, we need this:
%{?!python3_primary_provider:%define python3_primary_provider %{lua: \
l,c = posix.readlink("/usr/bin/python3") \
flavor = l:gsub("%.", ""):sub(0,-1) \
print(rpm.expand("%{?" .. flavor .. "_prefix}%{!?" .. flavor .. "_prefix:python3}")) \
}}
# Skip every flavor except for the primary_provider
%define pythons %python3_primary_provider
Name: setools
Version: 4.5.1
Version: 4.4.3
Release: 0
URL: https://github.com/SELinuxProject/setools
Summary: Policy analysis tools for SELinux
License: GPL-2.0-only
Group: System/Management
Source: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2
Source2: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2.sha256.asc
Source3: setools.keyring
Source4: README.SUSE
BuildRequires: %{python_module Cython >= 0.29.14}
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module setuptools}
Source2: README.SUSE
BuildRequires: fdupes
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: python-rpm-macros
BuildRequires: python3-Cython
BuildRequires: python3-devel >= 3.4
BuildRequires: python3-setuptools
Requires: setools-console = %{version}-%{release}
Requires: setools-gui = %{version}-%{release}
# needed since setools is not a python-main package, see
# https://github.com/openSUSE/python-rpm-macros
%define python_subpackage_only 1
%python_subpackages
%description
SETools is a collection of graphical tools, command-line tools, and
@@ -59,7 +55,7 @@ SETools.
Summary: Policy analysis command-line tools for SELinux
License: GPL-2.0-only
Group: System/Base
Requires: %{python_for_executables}-setools = %{version}
Requires: python3-setools = %{version}
%description console
SETools is a collection of graphical tools, command-line tools, and
@@ -73,22 +69,20 @@ This package includes the following console tools:
seinfoflow Information flow analysis tool
sediff Semantic policy difference tool
%package -n python-setools
%package -n %{python3_primary_provider}-setools
Summary: Python bindings for SELinux policy analysis
License: LGPL-2.0-only
Group: Development/Languages/Python
Requires: %{python_for_executables} >= 3.10
Requires: %{python_for_executables}-setuptools
# Only suggest python-networkx due to its large amount of dependencies
# (see README.SUSE)
Suggests: %{python_for_executables}-networkx
Requires: python3 >= 3.4
Requires: python3-setuptools
Obsoletes: python-setools < %{version}-%{release}
Provides: python-setools = %{version}-%{release}
%if "%{python_flavor}" != "python3"
%if "%{python3_primary_provider}" != "python3"
Obsoletes: python3-setools < %{version}-%{release}
Provides: python3-setools = %{version}-%{release}
%endif
%description -n python-setools
%description -n %{python3_primary_provider}-setools
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis.
@@ -96,9 +90,9 @@ libraries designed to facilitate SELinux policy analysis.
Summary: Policy analysis graphical tools for SELinux
License: GPL-2.0-only
Group: System/Base
Requires: %{python_for_executables}-PyQt6
Requires: %{python_for_executables}-pygraphviz
Requires: %{python_for_executables}-setools = %{version}
Requires: python3-networkx
Requires: python3-qt5
Requires: python3-setools = %{version}
%description gui
SETools is a collection of graphical tools, command-line tools, and
@@ -118,13 +112,14 @@ This package includes the following graphical tools:
%install
%python_install
install -m 644 -D %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.SUSE
%fdupes -s %{buildroot}%{python_sitearch}
%fdupes -s %{buildroot}%{python3_sitearch}
%files %{python_files setools}
%files -n %{python3_primary_provider}-setools
%defattr(-,root,root,-)
%{python_sitearch}/setools
%{python_sitearch}/setoolsgui
%{python_sitearch}/setools-%{version}*-info
%{python3_sitearch}/setools
%{python3_sitearch}/setools-%{version}*-info
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/*
%files console
%defattr(-,root,root,-)
@@ -146,11 +141,10 @@ install -m 644 -D %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.SUSE
%{_mandir}/ru/man1/seinfo.1.gz
%{_mandir}/ru/man1/seinfoflow.1.gz
%{_mandir}/ru/man1/sesearch.1.gz
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/*
%files gui
%defattr(-,root,root,-)
%{python3_sitearch}/setoolsgui
%{_bindir}/apol
%{_mandir}/man1/apol.1.gz