File checkpolicy.spec of Package checkpolicy

# spec file for package checkpolicy
# Copyright (c) 2016 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

%define libsepol_ver 2.5
Name:           checkpolicy
Version:        2.5
Release:        0
Summary:        SELinux policy compiler
License:        GPL-2.0+
Group:          Productivity/Security
BuildRequires:  bison
BuildRequires:  flex-old
BuildRequires:  libselinux-devel
BuildRequires:  libsepol-devel-static >= %{libsepol_ver}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Security-enhanced Linux is a feature of the Linux(R) kernel and a
number of utilities with enhanced security functionality designed to
add mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These architectural
components provide general support for the enforcement of many kinds of
mandatory access control policies, including those based on the
concepts of Type Enforcement(R), Role-based Access Control, and
Multi-level Security.

This package contains checkpolicy, the SELinux policy compiler. Only
required for building policies.

%setup -q

make %{?_smp_mflags} clean
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}
cd test
make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" %{?_smp_mflags}

mkdir -p %{buildroot}%{_bindir}
make LIBDIR="%{_libdir}" DESTDIR=%{buildroot} install
install test/dismod %{buildroot}%{_bindir}/sedismod
install test/dispol %{buildroot}%{_bindir}/sedispol

%doc COPYING ChangeLog

openSUSE Build Service is sponsored by