File selinux-doc.spec of Package selinux-doc

# spec file for package selinux-doc (Version 1.26)
# Copyright (c) 2009 SUSE LINUX Products 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

# norootforbuild

Name:           selinux-doc
Version:        1.26
Release:        33
License:        GPL v2 or later
Group:          Productivity/Security
Summary:        SELinux documentation
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  docbook-toys docbook-utils

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 build instructions, porting information, and a
CREDITS file for SELinux.  Some of these files will be split up into
per-package files in the future, and other documentation will be added
to this package (e.g. an updated form of the Configuring the SELinux
Policy report).

%setup -q
%define parts module policy uavc

for i in %{parts}; do
    (cd $i && make all)

for i in %{parts}; do
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/$i
install -m 644 CREDITS PORTING README* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
for i in %{parts}; do
    cp -R $i/main/*   $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/$i
    cp    $i/main.pdf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/$i/selinux$i.pdf


%doc %{_datadir}/doc/%{name}-%{version}

* Mon Jul 21 2008
- initial version 1.26
  * based on Fedora package by Dan Walsh <>