From b43c2cf74495f7efd66fc318bb575eb2b4db110d Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 28 Dec 2006 00:05:43 +0000 Subject: [PATCH] Add --without doc and --with legacy options. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2433 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver.spec.in | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/util-vserver.spec.in b/util-vserver.spec.in index ff0b58b..c607252 100644 --- a/util-vserver.spec.in +++ b/util-vserver.spec.in @@ -3,6 +3,8 @@ ## This package understands the following switches: ## --without dietlibc ... disable usage of dietlibc ## --with xalan ... require/use the xalan xslt processor +## --without doc ... disable doc generation +## --with legacy ... enable the legacy APIs %global confdir %_sysconfdir/vservers %global confdefaultdir %confdir/.defaults @@ -33,7 +35,7 @@ Obsoletes: vserver < %version BuildRequires: mount vconfig gawk iproute iptables BuildRequires: gcc-c++ wget which diffutils BuildRequires: e2fsprogs-devel beecrypt-devel -BuildRequires: doxygen tetex-latex +%{!?_without_doc:BuildRequires: doxygen tetex-latex} Requires(post): %name-core Requires(pre): %pkglibdir Requires(postun): %pkglibdir @@ -165,10 +167,11 @@ develop VServer related applications. %build %configure --with-initrddir=%_initrddir --enable-release \ - %{?_without_dietlibc:--disable-dietlibc} + %{?_without_dietlibc:--disable-dietlibc} \ + %{?_with_legacy:--enable-apis=NOLEGACY} %__make %{?_smp_mflags} all -%__make %{?_smp_mflags} doc +%{!?_without_doc:%__make %{?_smp_mflags} doc} %install @@ -339,8 +342,8 @@ test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || : %files devel -f %name-devel.list %defattr(-,root,root,-) -%doc lib/apidoc/latex/refman.pdf -%doc lib/apidoc/html +%{!?_without_doc:%doc lib/apidoc/latex/refman.pdf} +%{!?_without_doc:%doc lib/apidoc/html} %changelog -- 1.8.1.5