Accepting request 657421 from security:SELinux
OBS-URL: https://build.opensuse.org/request/show/657421 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/setools?expand=0&rev=31
This commit is contained in:
commit
6b7d922d47
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:46a927ea2b163cbe1d35cc35da43e45853e13720c7e02d4cf75a498783c19610
|
|
||||||
size 461649
|
|
3
4.2.0.tar.gz
Normal file
3
4.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6a8893fbaf3bd79154b5e9677ae16cb20c02de8c52c95890a61cecb07daaa700
|
||||||
|
size 363802
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 15:10:14 UTC 2018 - jsegitz@suse.com
|
||||||
|
|
||||||
|
- Changed requires of console subpackage to python3-setools
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 21 14:17:32 UTC 2018 - jsegitz@suse.com
|
||||||
|
|
||||||
|
- Upgrade to 4.2.0
|
||||||
|
* Support for Python 2.7 was dropped
|
||||||
|
* Symbol names are now available as the name attribute (e.g. Boolean.name, Type.name, etc.)
|
||||||
|
* Move constraint expression to its own class.
|
||||||
|
* Made Conditional.evaluate() more useful and added BaseTERule.enabled() method to determine if a rule is enabled..
|
||||||
|
* Added support for SCTP portcons
|
||||||
|
* Updated permission maps
|
||||||
|
- Dropped warning.patch
|
||||||
|
- Single spec, limited to python3. Obsoletes python-setools, provides
|
||||||
|
python3-setools
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 11 08:14:26 UTC 2018 - jsegitz@suse.com
|
Mon Jun 11 08:14:26 UTC 2018 - jsegitz@suse.com
|
||||||
|
|
||||||
|
63
setools.spec
63
setools.spec
@ -16,24 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
|
# doesn't work for python 2
|
||||||
|
%define skip_python2 1
|
||||||
|
|
||||||
Name: setools
|
Name: setools
|
||||||
Version: 4.1.1
|
Version: 4.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://github.com/TresysTechnology/setools/
|
Url: https://github.com/SELinuxProject/setools
|
||||||
Summary: Policy analysis tools for SELinux
|
Summary: Policy analysis tools for SELinux
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Source: https://github.com/TresysTechnology/setools/archive/%{version}.tar.gz
|
Source: https://github.com/SELinuxProject/setools/archive/%{version}.tar.gz
|
||||||
Patch0: warning.patch
|
BuildRequires: %{python_module Cython}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: libsepol-devel
|
BuildRequires: libsepol-devel
|
||||||
BuildRequires: libsepol-devel-static
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
Requires: setools-console = %{version}-%{release}
|
Requires: setools-console = %{version}-%{release}
|
||||||
Requires: setools-gui = %{version}-%{release}
|
Requires: setools-gui = %{version}-%{release}
|
||||||
@ -45,21 +50,11 @@ libraries designed to facilitate SELinux policy analysis.
|
|||||||
This meta-package depends upon the main packages necessary to run
|
This meta-package depends upon the main packages necessary to run
|
||||||
SETools.
|
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
|
%package console
|
||||||
Summary: Policy analysis command-line tools for SELinux
|
Summary: Policy analysis command-line tools for SELinux
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: System/Base
|
Group: System/Base
|
||||||
Requires: python-setools = %{version}
|
Requires: python3-setools = %{version}
|
||||||
|
|
||||||
%description console
|
%description console
|
||||||
SETools is a collection of graphical tools, command-line tools, and
|
SETools is a collection of graphical tools, command-line tools, and
|
||||||
@ -73,6 +68,17 @@ This package includes the following console tools:
|
|||||||
seinfoflow Information flow analysis tool
|
seinfoflow Information flow analysis tool
|
||||||
sediff Semantic policy difference tool
|
sediff Semantic policy difference tool
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
|
%description -n python3-setools
|
||||||
|
SETools is a collection of graphical tools, command-line tools, and
|
||||||
|
libraries designed to facilitate SELinux policy analysis.
|
||||||
|
|
||||||
%package gui
|
%package gui
|
||||||
Summary: Policy analysis graphical tools for SELinux
|
Summary: Policy analysis graphical tools for SELinux
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
@ -92,19 +98,19 @@ This package includes the following graphical tools:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build_ext -i
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%fdupes -s %{buildroot}%{python3_sitearch}
|
||||||
|
|
||||||
%files -n python-setools
|
%files -n python3-setools
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{python_sitearch}/setools*.egg-info
|
%dir %{python3_sitearch}/setools/
|
||||||
%dir %{python_sitearch}/setools
|
%{python3_sitearch}/setools/*
|
||||||
%{python_sitearch}/setools/*
|
%{python3_sitearch}/setools*egg-info*
|
||||||
|
|
||||||
%files console
|
%files console
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -121,8 +127,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|||||||
|
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{python_sitearch}/setoolsgui
|
%{python3_sitearch}/setoolsgui*
|
||||||
%{python_sitearch}/setoolsgui/*
|
|
||||||
%{_bindir}/apol
|
%{_bindir}/apol
|
||||||
%{_mandir}/man1/apol.1.gz
|
%{_mandir}/man1/apol.1.gz
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
Index: setup.py
|
|
||||||
===================================================================
|
|
||||||
--- setup.py.orig
|
|
||||||
+++ setup.py
|
|
||||||
@@ -146,7 +146,7 @@ ext_py_mods = [Extension('setools.policy
|
|
||||||
'libqpol/policy_scan.c',
|
|
||||||
'libqpol/xen_query.c'],
|
|
||||||
include_dirs=include_dirs,
|
|
||||||
- extra_compile_args=['-Werror', '-Wextra',
|
|
||||||
+ extra_compile_args=['-Wextra',
|
|
||||||
'-Waggregate-return',
|
|
||||||
'-Wfloat-equal',
|
|
||||||
'-Wformat', '-Wformat=2',
|
|
Loading…
x
Reference in New Issue
Block a user