Rebase to 4.1.1 OBS-URL: https://build.opensuse.org/request/show/609011 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=60
130 lines
3.7 KiB
RPMSpec
130 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package setools
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: setools
|
|
Version: 4.1.1
|
|
Release: 0
|
|
Url: https://github.com/TresysTechnology/setools/
|
|
Summary: Policy analysis tools for SELinux
|
|
License: GPL-2.0-only
|
|
Group: System/Management
|
|
Source: https://github.com/TresysTechnology/setools/archive/%{version}.tar.gz
|
|
Patch0: warning.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: gcc
|
|
BuildRequires: libsepol-devel
|
|
BuildRequires: libsepol-devel-static
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: swig
|
|
Requires: setools-console = %{version}-%{release}
|
|
Requires: setools-gui = %{version}-%{release}
|
|
|
|
%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 -n python-setools
|
|
Summary: Python bindings for SELinux policy analysis
|
|
License: LGPL-2.0-only
|
|
Group: Development/Languages/Python
|
|
Requires: python
|
|
|
|
%description -n python-setools
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
%package console
|
|
Summary: Policy analysis command-line tools for SELinux
|
|
License: GPL-2.0-only
|
|
Group: System/Base
|
|
Requires: python-setools = %{version}
|
|
|
|
%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:
|
|
|
|
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
|
|
|
|
%package gui
|
|
Summary: Policy analysis graphical tools for SELinux
|
|
License: GPL-2.0-only
|
|
Group: System/Base
|
|
Requires: bwidget
|
|
Requires: gtk2
|
|
Requires: tcl
|
|
Requires: tk
|
|
|
|
%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
|
|
%setup -q -n %{name}-%{version}
|
|
%patch0
|
|
|
|
%build
|
|
python setup.py build_ext -i
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files -n python-setools
|
|
%defattr(-,root,root,-)
|
|
%{python_sitearch}/setools*.egg-info
|
|
%dir %{python_sitearch}/setools
|
|
%{python_sitearch}/setools/*
|
|
|
|
%files console
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/seinfo
|
|
%{_bindir}/sesearch
|
|
%{_bindir}/sedta
|
|
%{_bindir}/seinfoflow
|
|
%{_bindir}/sediff
|
|
%{_mandir}/man1/sedta.1.gz
|
|
%{_mandir}/man1/seinfoflow.1.gz
|
|
%{_mandir}/man1/sediff.1.gz
|
|
%{_mandir}/man1/seinfo.1.gz
|
|
%{_mandir}/man1/sesearch.1.gz
|
|
|
|
%files gui
|
|
%defattr(-,root,root,-)
|
|
%dir %{python_sitearch}/setoolsgui
|
|
%{python_sitearch}/setoolsgui/*
|
|
%{_bindir}/apol
|
|
%{_mandir}/man1/apol.1.gz
|
|
|
|
%changelog
|