diff --git a/manpages_html.tgz b/manpages_html.tgz new file mode 100644 index 00000000..eaf26f88 Binary files /dev/null and b/manpages_html.tgz differ diff --git a/manpages_man.tgz b/manpages_man.tgz new file mode 100644 index 00000000..09be9131 Binary files /dev/null and b/manpages_man.tgz differ diff --git a/selinux-policy.spec b/selinux-policy.spec index f805c87e..a94997ce 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -54,7 +54,8 @@ Source27: selinux-policy.conf Source28: permissivedomains.pp Source29: serefpolicy-contrib-%{version}.tgz Source30: booleans.subs_dist - +Source33: manpages_html.tgz +Source34: manpages_man.tgz Url: http://github.com/TresysTechnology/refpolicy/wiki BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -375,6 +376,8 @@ rm -rf %{buildroot}%{_sharedstatedir}/selinux/minimum/active/modules/100/sandbox %endif mkdir -p %{buildroot}%{_mandir} +mkdir %{buildroot}/usr/share/man/man8/ +tar -xf ../manpages_man.tgz -C %{buildroot}/usr/share/man/man8/ cp -R man/* %{buildroot}%{_mandir} make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name} MLS_CATS=1024 MCS_CATS=1024 install-docs make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=%{distro} UBAC=n DIRECT_INITRC=n MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name} MLS_CATS=1024 MCS_CATS=1024 install-headers @@ -385,7 +388,8 @@ 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/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} +#/usr/bin/sepolicy manpage -a -p %{buildroot}/usr/share/man/man8/ -w -r %{buildroot} +tar -xf ../manpages_html.tgz -C %{buildroot}/usr/share/man/man8/ mkdir %{buildroot}%{_usr}/share/selinux/devel/html mv %{buildroot}%{_usr}/share/man/man8/*.html %{buildroot}%{_usr}/share/selinux/devel/html mv %{buildroot}%{_usr}/share/man/man8/style.css %{buildroot}%{_usr}/share/selinux/devel/html