fix the build
[util-vserver.git] / util-vserver.spec
index 574c180..8d9b684 100644 (file)
@@ -36,6 +36,7 @@ Group:                System Environment/Base
 URL:           http://savannah.nongnu.org/projects/util-vserver/
 Source0:       http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
 #Source1:      http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
+Patch1:                f12.patch
 BuildRoot:     %_tmppath/%name-%version-%release-root
 Requires:      init(%name)
 Requires:      %name-core = %version-%release
@@ -49,7 +50,7 @@ BuildRequires:        e2fsprogs-devel e2fsprogs
 %{!?_without_beecrypt:BuildRequires: beecrypt-devel}
 %{?_without_beecrypt:BuildRequires: nss-devel}
 BuildRequires: e2fsprogs
-#%%{!?_without_doc:BuildRequires:      doxygen tetex-latex}
+%{!?_without_doc:BuildRequires:        doxygen tetex-latex}
 %{!?_without_python:BuildRequires: python python-devel ctags}
 Requires(post):                %name-core
 Requires(pre):         %pkglibdir
@@ -193,7 +194,8 @@ Linux-VServer API from Python.
 
 %prep
 %setup -q -n %name-%fullver
-
+%patch1 -p0
+autoreconf -fi
 
 %build
 %configure --with-initrddir=%_initrddir --enable-release \
@@ -203,7 +205,7 @@ Linux-VServer API from Python.
            %{?_without_python:--without-python}
 
 %__make %{?_smp_mflags} all
-#%%{!?_without_doc:%__make %{?_smp_mflags} doc}
+%{!?_without_doc:%__make %{?_smp_mflags} doc}
 
 
 %install
@@ -381,8 +383,8 @@ test "$1" = 0  || %_initrddir/rebootmgr   condrestart >/dev/null || :
 
 %files devel -f %name-devel.list
 %defattr(-,root,root,-)
-#%%{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
-#%%{!?_without_doc:%doc lib/apidoc/html}
+%{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
+%{!?_without_doc:%doc lib/apidoc/html}
 
 
 %files python