#
# Conditional build:
%bcond_without source # don't build kernel-source package
+%bcond_without doc # don't build kernel-doc package
%bcond_without pcmcia # don't build pcmcia
%bcond_with verbose # verbose build (V=1)
%exclude %dir %{_kernelsrcdir}/security
%exclude %dir %{_kernelsrcdir}/security/selinux
+%if %{with doc}
%files doc
%defattr(644,root,root,755)
%dir %{_docdir}/%{name}-%{version}
%lang(ja) %{_docdir}/%{name}-%{version}/ja_JP
%lang(ko) %{_docdir}/%{name}-%{version}/ko_KR
%lang(zh_CN) %{_docdir}/%{name}-%{version}/zh_CN
+%endif
%if %{with source}
%files source -f files.source_exclude_modulebuild_and_dirs