From 80d21dc60af1d8a40df5ce6ff5917e00aaca6ef8 Mon Sep 17 00:00:00 2001 From: Miroslav Grepl Date: Feb 07 2012 13:08:38 +0000 Subject: Revert "Simplify the build-docs target" This reverts commit 01be4862923cef936acb3e6b599295028b6e16ec. --- diff --git a/selinux-policy.spec b/selinux-policy.spec index eb4534b..0d8bfda 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -3,9 +3,6 @@ %define monolithic n %if %{?BUILD_DOC:0}%{!?BUILD_DOC:1} %define BUILD_DOC 1 -%define docs-target install-docs -%else -%define docs-target %nil %endif %if %{?BUILD_TARGETED:0}%{!?BUILD_TARGETED:1} %define BUILD_TARGETED 1 @@ -290,7 +287,11 @@ make clean %installCmds mls mls n deny %endif -make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-headers %{docs-target} +%if %{BUILD_DOC} +make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-docs +%endif + +make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} MLS_CATS=1024 MCS_CATS=1024 install-headers mkdir %{buildroot}%{_usr}/share/selinux/devel/ mkdir %{buildroot}%{_usr}/share/selinux/packages/