From 1848fd38fb354a3a6df52a6a6c615bd7c9600863 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 4 Jan 2010 13:42:50 +0000 Subject: [PATCH] - add doc bcond Changed files: kernel.spec -> 1.743 --- kernel.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel.spec b/kernel.spec index f7d5ad79..590cb0bc 100644 --- a/kernel.spec +++ b/kernel.spec @@ -23,6 +23,7 @@ # # 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) @@ -1456,6 +1457,7 @@ fi %exclude %dir %{_kernelsrcdir}/security %exclude %dir %{_kernelsrcdir}/security/selinux +%if %{with doc} %files doc %defattr(644,root,root,755) %dir %{_docdir}/%{name}-%{version} @@ -1468,6 +1470,7 @@ fi %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 -- 2.44.0