File selinux-doc.spec of Package selinux-doc

# spec file for package selinux-doc
# Copyright (c) 2012 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

Name:           selinux-doc
Version:        1.26
Release:        0
Summary:        SELinux documentation
License:        GPL-2.0+
Group:          Productivity/Security
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  docbook-toys
BuildRequires:  docbook-utils
%if %suse_version > 1220
BuildRequires:  texlive-courier
BuildRequires:  texlive-dvips
BuildRequires:  texlive-ec
BuildRequires:  texlive-helvetic
BuildRequires:  texlive-jadetex
BuildRequires:  texlive-times

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}

openSUSE Build Service is sponsored by