2008-08-02 04:29:10 +02:00
|
|
|
#
|
|
|
|
# spec file for package checkpolicy (Version 2.0.16)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
2008-10-22 17:42:41 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-08-02 04:29:10 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%define libsepol_ver 2.0.32
|
2008-10-22 17:42:41 +02:00
|
|
|
BuildRequires: bison flex-old
|
2008-08-02 04:29:10 +02:00
|
|
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
|
|
|
|
Name: checkpolicy
|
|
|
|
Version: 2.0.16
|
2008-10-22 17:42:41 +02:00
|
|
|
Release: 27
|
2008-08-02 04:29:10 +02:00
|
|
|
Url: http://www.nsa.gov/selinux/
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Productivity/Security
|
|
|
|
Summary: SELinux policy compiler
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2008-10-22 17:42:41 +02:00
|
|
|
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
|
2008-08-02 04:29:10 +02:00
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
mandatory access control policies, including those based on the
|
2008-10-22 17:42:41 +02:00
|
|
|
concepts of Type Enforcement(R), Role-based Access Control, and
|
2008-08-02 04:29:10 +02:00
|
|
|
Multi-level Security.
|
|
|
|
|
|
|
|
This package contains checkpolicy, the SELinux policy compiler. Only
|
|
|
|
required for building policies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
make LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cd test
|
|
|
|
make LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
make LIBDIR="%{_libdir}" DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
install test/dismod $RPM_BUILD_ROOT%{_bindir}/sedismod
|
|
|
|
install test/dispol $RPM_BUILD_ROOT%{_bindir}/sedispol
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING ChangeLog
|
|
|
|
%{_bindir}/checkpolicy
|
|
|
|
%{_bindir}/checkmodule
|
|
|
|
%{_mandir}/man8/checkpolicy.*
|
|
|
|
%{_mandir}/man8/checkmodule.*
|
|
|
|
%{_bindir}/sedismod
|
|
|
|
%{_bindir}/sedispol
|
|
|
|
|
|
|
|
%changelog
|
2008-10-22 17:42:41 +02:00
|
|
|
* Mon Oct 20 2008 prusnak@suse.cz
|
|
|
|
- use flex-old for building (using flex does not build refpolicy)
|
2008-08-02 04:29:10 +02:00
|
|
|
* Tue Jul 15 2008 prusnak@suse.cz
|
|
|
|
- initial version 2.0.16
|
|
|
|
* based on Fedora package by Dan Walsh <dwalsh@redhat.com>
|