Accepting request 609011 from home:mcepl:SELinux

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
This commit is contained in:
Johannes Segitz 2018-05-23 08:42:50 +00:00 committed by Git OBS Bridge
parent 3307f1be7a
commit 7c1c4b8894
5 changed files with 25 additions and 26 deletions

3
4.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46a927ea2b163cbe1d35cc35da43e45853e13720c7e02d4cf75a498783c19610
size 461649

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c2049877f2f68e4485b72bc280fe20127b49a019169a2cf1d8295c908bdcdfe
size 399888

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 16 07:28:39 UTC 2018 - mcepl@suse.com
- Upgrade to 4.1.1
-------------------------------------------------------------------
Wed Dec 20 12:23:39 UTC 2017 - jsegitz@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package setools
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -17,21 +17,19 @@
Name: setools
Version: 4.0.1
Version: 4.1.1
Release: 0
Url: https://github.com/TresysTechnology/setools/
Summary: Policy analysis tools for SELinux
License: GPL-2.0
License: GPL-2.0-only
Group: System/Management
Source: https://github.com/TresysTechnology/setools3/archive/%{name}-%{version}.tar.gz
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: libbz2-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libsepol-devel-static
BuildRequires: python-devel
@ -49,12 +47,8 @@ SETools.
%package -n python-setools
Summary: Python bindings for SELinux policy analysis
License: LGPL-2.0
License: LGPL-2.0-only
Group: Development/Languages/Python
Obsoletes: setools-devel
Obsoletes: setools-java
Obsoletes: setools-libs
Obsoletes: setools-tcl
Requires: python
%description -n python-setools
@ -63,7 +57,7 @@ libraries designed to facilitate SELinux policy analysis.
%package console
Summary: Policy analysis command-line tools for SELinux
License: GPL-2.0
License: GPL-2.0-only
Group: System/Base
Requires: python-setools = %{version}
@ -81,7 +75,7 @@ This package includes the following console tools:
%package gui
Summary: Policy analysis graphical tools for SELinux
License: GPL-2.0
License: GPL-2.0-only
Group: System/Base
Requires: bwidget
Requires: gtk2
@ -127,11 +121,9 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files gui
%defattr(-,root,root,-)
%dir /usr/lib64/python2.7/site-packages/setoolsgui
/usr/lib64/python2.7/site-packages/setoolsgui/*
%dir %{python_sitearch}/setoolsgui
%{python_sitearch}/setoolsgui/*
%{_bindir}/apol
%dir %{_datadir}/%{name}/
%{_mandir}/man1/apol.1.gz
%{_datadir}/%{name}/*
%changelog

View File

@ -1,11 +1,13 @@
--- setup.py_orig 2017-12-20 13:15:09.526094481 +0100
+++ setup.py 2017-12-20 13:15:14.102096423 +0100
@@ -128,7 +128,7 @@
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=['libqpol', 'libqpol/include'],
libraries=['bz2', 'selinux', 'sepol'],
include_dirs=include_dirs,
- extra_compile_args=['-Werror', '-Wextra',
+ extra_compile_args=['-Wextra',
'-Waggregate-return',
'-Wcast-align',
'-Wfloat-equal',
'-Wformat', '-Wformat=2',