Accepting request 651126 from security:SELinux

OBS-URL: https://build.opensuse.org/request/show/651126
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/checkpolicy?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2018-11-27 09:40:46 +00:00 committed by Git OBS Bridge
commit ddbaae9ad5
5 changed files with 75 additions and 20 deletions

View File

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

3
checkpolicy-2.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9dec811c24b88e58c3bf741365eacf1dbb945531a2fcb8f284aacf68098194c8
size 66243

BIN
checkpolicy-tests.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Sun Nov 11 17:19:04 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Enable parallel build. Remove ineffective LDFLAGS="$RPM_LD_FLAGS"
(RPM_LD_FLAGS is always empty).
-------------------------------------------------------------------
Wed Nov 7 16:26:24 UTC 2018 - jsegitz@suse.com
- Source URL was invalid (bsc#1115052)
-------------------------------------------------------------------
Wed Oct 17 11:52:55 UTC 2018 - jsegitz@suse.com
- Update to version 2.8 (bsc#1111732)
- Dropped checkpolicy-build.patch, not necessary anymore
- Removed BuildRequires for byacc. It builds without and this blocks
building on SLE 15
-------------------------------------------------------------------
Mon Jun 11 07:48:05 UTC 2018 - jsegitz@suse.com
- checkpolicy-build.patch was added in the former change to fix build
failures
-------------------------------------------------------------------
Wed May 16 07:16:19 UTC 2018 - mcepl@suse.com
- Rebase to 2.7
-------------------------------------------------------------------
Fri Nov 24 09:01:04 UTC 2017 - jsegitz@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package checkpolicy
#
# 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
@ -12,23 +12,24 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libsepol_ver 2.6
%define libsepol_ver 2.8
Name: checkpolicy
Version: 2.6
Version: 2.8
Release: 0
Summary: SELinux policy compiler
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Productivity/Security
Url: https://github.com/SELinuxProject/selinux
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/%{name}-%{version}.tar.gz
Source0: https://github.com/SELinuxProject/selinux/releases/download/20180524/%{name}-%{version}.tar.gz
Source1: checkpolicy-tests.tar.gz
BuildRequires: bison
BuildRequires: flex
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
BuildRequires: libsepol-devel-static => %{libsepol_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -40,29 +41,50 @@ utilities that implement mandatory access control policies, such as
Type Enforcement, Role-based Access Control and Multi-Level
Security.)
%package devel
Summary: Development files for SELinux policy compiler
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
checkpolicy is the SELinux policy compiler. It uses libsepol to
generate the binary policy.
This package contains the development files, which are
necessary to develop your own software using checkpolicy.
%package -n python3-%{name}
Summary: Python bindings for SELinux policy compiler
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description -n python3-%{name}
checkpolicy is the SELinux policy compiler. It uses libsepol to
generate the binary policy.
This package contains the Python bindindgs, which are necessary
to use checkpolicy from Python.
%prep
%setup -q
%build
make %{?_smp_mflags} clean
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
cd test
make clean
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
make -C test LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
make LIBDIR="%{_libdir}" DESTDIR=%{buildroot} install
install test/dismod %{buildroot}%{_bindir}/sedismod
install test/dispol %{buildroot}%{_bindir}/sedispol
mkdir -p %{buildroot}/%{_bindir}
%make_install LIBDIR="%{_libdir}"
install test/dismod %{buildroot}/%{_bindir}/sedismod
install test/dispol %{buildroot}/%{_bindir}/sedispol
%files
%defattr(-,root,root)
%doc COPYING ChangeLog
%{_bindir}/checkpolicy
%{_bindir}/checkmodule
%{_bindir}/sedismod
%{_bindir}/sedispol
%{_mandir}/man8/checkmodule.8%{ext_man}
%{_mandir}/man8/checkpolicy.8%{ext_man}
%{_mandir}/man8/check*.*%{ext_man}
%changelog