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
|
|
|
#
|
2019-02-05 11:31:49 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2018-11-23 16:27:19 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
|
|
|
# doesn't work for python 2
|
|
|
|
%define skip_python2 1
|
|
|
|
|
2009-08-11 17:57:05 +02:00
|
|
|
Name: setools
|
2019-11-11 08:10:34 +01:00
|
|
|
Version: 4.2.2
|
2012-02-13 16:04:09 +01:00
|
|
|
Release: 0
|
2018-11-23 16:27:19 +01: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
|
2018-11-23 16:27:19 +01:00
|
|
|
Source: https://github.com/SELinuxProject/setools/archive/%{version}.tar.gz
|
2019-11-11 08:10:34 +01:00
|
|
|
# PATCH-FIX-UPSTREAM python3.8-compat.patch mcepl@suse.com
|
|
|
|
# allow build with Python 3.8
|
|
|
|
Patch0: python3.8-compat.patch
|
2018-11-23 16:27:19 +01:00
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2012-02-13 16:04:09 +01:00
|
|
|
BuildRequires: bison
|
2018-11-23 16:27:19 +01:00
|
|
|
BuildRequires: fdupes
|
2012-02-13 16:04:09 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc
|
2018-11-23 16:27:19 +01:00
|
|
|
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-02-13 16:04:09 +01:00
|
|
|
BuildRequires: swig
|
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
|
|
|
|
2018-11-23 16:27:19 +01:00
|
|
|
%package -n python3-setools
|
|
|
|
Summary: Python bindings for SELinux policy analysis
|
|
|
|
License: LGPL-2.0-only
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: python
|
|
|
|
Obsoletes: python-setools < %{version}
|
2019-02-05 11:31:49 +01:00
|
|
|
Provides: python-setools = %{version}-%{release}
|
2018-11-23 16:27:19 +01:00
|
|
|
|
|
|
|
%description -n python3-setools
|
|
|
|
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
|
2012-07-03 11:35:39 +02:00
|
|
|
Requires: bwidget
|
|
|
|
Requires: gtk2
|
|
|
|
Requires: tcl
|
|
|
|
Requires: tk
|
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
|
2017-12-22 13:36:48 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2019-11-11 08:10:34 +01:00
|
|
|
%autopatch -p1
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-23 16:27:19 +01:00
|
|
|
%python_build
|
2009-08-11 17:57:05 +02:00
|
|
|
|
|
|
|
%install
|
2018-11-23 16:27:19 +01:00
|
|
|
%python_install
|
|
|
|
%fdupes -s %{buildroot}%{python3_sitearch}
|
2010-03-09 17:07:02 +01:00
|
|
|
|
2018-11-23 16:27:19 +01:00
|
|
|
%files -n python3-setools
|
2010-03-09 17:07:02 +01:00
|
|
|
%defattr(-,root,root,-)
|
2018-11-23 16:27:19 +01:00
|
|
|
%dir %{python3_sitearch}/setools/
|
|
|
|
%{python3_sitearch}/setools/*
|
|
|
|
%{python3_sitearch}/setools*egg-info*
|
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
|
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
|
|
|
|
|
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root,-)
|
2018-11-23 16:27:19 +01:00
|
|
|
%{python3_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
|