From a7c9a9368199eadd5ff4e70bc130cf6e732f8366 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Feb 21 2013 15:30:31 +0000 Subject: Switch to building man pages and html pages on the fly --- diff --git a/selinux-policy.spec b/selinux-policy.spec index 9fe3c0b..f8f5f84 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -14,7 +14,7 @@ %define BUILD_MLS 1 %endif %define POLICYVER 29 -%define POLICYCOREUTILSVER 2.1.14-1 +%define POLICYCOREUTILSVER 2.1.14-7 %define CHECKPOLICYVER 2.1.12-1 Summary: SELinux policy configuration Name: selinux-policy @@ -89,6 +89,8 @@ SELinux policy development and man page package %dir %{_usr}/share/selinux/devel %dir %{_usr}/share/selinux/devel/include %{_usr}/share/selinux/devel/include/* +%dir %{_usr}/share/selinux/devel/html +%{_usr}/share/selinux/devel/html/*html %{_usr}/share/selinux/devel/Makefile %{_usr}/share/selinux/devel/example.* @@ -347,7 +349,11 @@ install -m 644 doc/example.* %{buildroot}%{_usr}/share/selinux/devel/ install -m 644 doc/policy.* %{buildroot}%{_usr}/share/selinux/devel/ echo "xdg-open file:///usr/share/doc/selinux-policy-%{version}/html/index.html"> %{buildroot}%{_usr}/share/selinux/devel/policyhelp chmod +x %{buildroot}%{_usr}/share/selinux/devel/policyhelp - +/usr/bin/sepolicy manpage -a -p %{buildroot}/usr/share/man/man8/ -w -r %{buildroot} +mkdir %{buildroot}%{_usr}/share/selinux/devel/html +htmldir=`compgen -d %{buildroot}%{_usr}/share/man/man8/` +mv ${htmldir}/* %{buildroot}%{_usr}/share/selinux/devel/html +rm -rf ${htmldir} mkdir %{buildroot}%{_usr}/share/selinux/packages/ rm -rf selinux_config