2009-08-11 17:57:05 +02:00
|
|
|
#
|
2011-05-30 10:45:11 +02:00
|
|
|
# spec file for package setools
|
2009-08-11 17:57:05 +02:00
|
|
|
#
|
2024-04-18 15:51:47 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-08-11 17:57:05 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-11-11 08:10:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-11 17:57:05 +02:00
|
|
|
#
|
|
|
|
|
2012-07-03 11:35:39 +02:00
|
|
|
|
2024-04-18 15:51:47 +02:00
|
|
|
%define python3_primary_provider python311
|
2020-11-10 14:40:14 +01:00
|
|
|
%define pythons %python3_primary_provider
|
2018-11-23 16:27:19 +01:00
|
|
|
|
2009-08-11 17:57:05 +02:00
|
|
|
Name: setools
|
2024-05-02 13:01:21 +02:00
|
|
|
Version: 4.5.1
|
2012-02-13 16:04:09 +01:00
|
|
|
Release: 0
|
2020-04-03 15:08:27 +02:00
|
|
|
URL: https://github.com/SELinuxProject/setools
|
2009-08-11 17:57:05 +02:00
|
|
|
Summary: Policy analysis tools for SELinux
|
2018-05-23 10:42:50 +02:00
|
|
|
License: GPL-2.0-only
|
2017-12-22 13:36:48 +01:00
|
|
|
Group: System/Management
|
2021-03-12 08:59:19 +01:00
|
|
|
Source: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
2022-09-02 14:53:45 +02:00
|
|
|
Source2: README.SUSE
|
2024-04-18 15:51:47 +02:00
|
|
|
BuildRequires: %{python_module Cython >= 0.29.14}
|
|
|
|
BuildRequires: %{python_module devel >= 3.10}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-11-23 16:27:19 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libselinux-devel
|
2017-12-22 13:36:48 +01:00
|
|
|
BuildRequires: libsepol-devel
|
2018-11-23 16:27:19 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-07-03 11:35:39 +02:00
|
|
|
Requires: setools-console = %{version}-%{release}
|
|
|
|
Requires: setools-gui = %{version}-%{release}
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
This meta-package depends upon the main packages necessary to run
|
|
|
|
SETools.
|
|
|
|
|
|
|
|
%package console
|
|
|
|
Summary: Policy analysis command-line tools for SELinux
|
2018-05-23 10:42:50 +02:00
|
|
|
License: GPL-2.0-only
|
2009-08-11 17:57:05 +02:00
|
|
|
Group: System/Base
|
2018-12-12 10:16:42 +01:00
|
|
|
Requires: python3-setools = %{version}
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%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:
|
|
|
|
|
2017-12-22 13:36:48 +01:00
|
|
|
seinfo Provide information about policies
|
|
|
|
sesearch Tool to query policies
|
|
|
|
sedta Domain transition analysis tool
|
|
|
|
seinfoflow Information flow analysis tool
|
|
|
|
sediff Semantic policy difference tool
|
2009-08-11 17:57:05 +02:00
|
|
|
|
2020-11-06 11:40:07 +01:00
|
|
|
%package -n %{python3_primary_provider}-setools
|
2018-11-23 16:27:19 +01:00
|
|
|
Summary: Python bindings for SELinux policy analysis
|
|
|
|
License: LGPL-2.0-only
|
|
|
|
Group: Development/Languages/Python
|
2024-04-18 15:51:47 +02:00
|
|
|
Requires: %{python3_primary_provider} >= 3.10
|
|
|
|
Requires: %{python3_primary_provider}-setuptools
|
2024-05-02 13:01:21 +02:00
|
|
|
# Only suggest python-networkx due to its large amount of dependencies
|
|
|
|
# (see README.SUSE)
|
|
|
|
Suggests: %{python3_primary_provider}-networkx
|
2020-11-06 11:40:07 +01:00
|
|
|
Obsoletes: python-setools < %{version}-%{release}
|
2019-02-05 11:31:49 +01:00
|
|
|
Provides: python-setools = %{version}-%{release}
|
2020-11-06 11:40:07 +01:00
|
|
|
%if "%{python3_primary_provider}" != "python3"
|
|
|
|
Obsoletes: python3-setools < %{version}-%{release}
|
|
|
|
Provides: python3-setools = %{version}-%{release}
|
|
|
|
%endif
|
2018-11-23 16:27:19 +01:00
|
|
|
|
2020-11-06 11:40:07 +01:00
|
|
|
%description -n %{python3_primary_provider}-setools
|
2018-11-23 16:27:19 +01:00
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
2009-08-11 17:57:05 +02:00
|
|
|
%package gui
|
|
|
|
Summary: Policy analysis graphical tools for SELinux
|
2018-05-23 10:42:50 +02:00
|
|
|
License: GPL-2.0-only
|
2009-08-11 17:57:05 +02:00
|
|
|
Group: System/Base
|
2024-04-18 15:51:47 +02:00
|
|
|
Requires: %{python3_primary_provider}-PyQt6
|
|
|
|
Requires: %{python3_primary_provider}-pygraphviz
|
|
|
|
Requires: %{python3_primary_provider}-setools = %{version}
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%description gui
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
This package includes the following graphical tools:
|
|
|
|
|
|
|
|
apol policy analysis tool
|
|
|
|
|
|
|
|
%prep
|
2020-04-03 15:08:27 +02:00
|
|
|
%setup -q -n %{name}
|
2022-02-22 16:38:03 +01:00
|
|
|
%autopatch -p1
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%build
|
2020-11-10 14:40:14 +01:00
|
|
|
%python_build
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%install
|
2020-11-10 14:40:14 +01:00
|
|
|
%python_install
|
2022-09-02 14:53:45 +02:00
|
|
|
install -m 644 -D %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.SUSE
|
2024-04-18 15:51:47 +02:00
|
|
|
%fdupes -s %{buildroot}%{python_sitearch}
|
2010-03-09 17:07:02 +01:00
|
|
|
|
2020-11-06 11:40:07 +01:00
|
|
|
%files -n %{python3_primary_provider}-setools
|
2010-03-09 17:07:02 +01:00
|
|
|
%defattr(-,root,root,-)
|
2024-04-18 15:51:47 +02:00
|
|
|
%{python_sitearch}/setools
|
|
|
|
%{python_sitearch}/setools-%{version}*-info
|
2022-09-02 14:53:45 +02:00
|
|
|
%dir %{_docdir}/%{name}/
|
|
|
|
%{_docdir}/%{name}/*
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%files console
|
|
|
|
%defattr(-,root,root,-)
|
2010-03-09 17:07:02 +01:00
|
|
|
%{_bindir}/seinfo
|
|
|
|
%{_bindir}/sesearch
|
2017-12-22 13:36:48 +01:00
|
|
|
%{_bindir}/sedta
|
|
|
|
%{_bindir}/seinfoflow
|
2009-08-11 17:57:05 +02:00
|
|
|
%{_bindir}/sediff
|
2021-03-12 08:59:19 +01:00
|
|
|
%{_bindir}/sechecker
|
|
|
|
%{_mandir}/man1/sechecker.1.gz
|
2017-12-22 13:36:48 +01:00
|
|
|
%{_mandir}/man1/sedta.1.gz
|
|
|
|
%{_mandir}/man1/seinfoflow.1.gz
|
2009-08-11 17:57:05 +02:00
|
|
|
%{_mandir}/man1/sediff.1.gz
|
|
|
|
%{_mandir}/man1/seinfo.1.gz
|
|
|
|
%{_mandir}/man1/sesearch.1.gz
|
2020-04-03 15:08:27 +02:00
|
|
|
%{_mandir}/ru/man1/apol.1.gz
|
|
|
|
%{_mandir}/ru/man1/sediff.1.gz
|
|
|
|
%{_mandir}/ru/man1/sedta.1.gz
|
|
|
|
%{_mandir}/ru/man1/seinfo.1.gz
|
|
|
|
%{_mandir}/ru/man1/seinfoflow.1.gz
|
|
|
|
%{_mandir}/ru/man1/sesearch.1.gz
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root,-)
|
2024-04-18 15:51:47 +02:00
|
|
|
%{python_sitearch}/setoolsgui
|
2010-03-09 17:07:02 +01:00
|
|
|
%{_bindir}/apol
|
2009-08-11 17:57:05 +02:00
|
|
|
%{_mandir}/man1/apol.1.gz
|
|
|
|
|
|
|
|
%changelog
|