Disable vserver-start.
[util-vserver.git] / util-vserver.spec.in
index 7712459..fba68f7 100644 (file)
@@ -13,9 +13,9 @@
 
 %global _localstatedir %_var
 
-%global ver            %( echo @VERSION@ | sed 's/-.*//' )
-%global subver         %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
 %global fullver                @VERSION@
+%global ver            %( echo %fullver | sed 's/-.*//' )
+%global subver         %( s=`echo %fullver | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
 
 
 %{!?release_func:%global release_func() %1%{?dist}}
@@ -38,7 +38,9 @@ Provides:     vserver = %version-%release
 Obsoletes:     vserver < %version
 BuildRequires: mount vconfig gawk iproute iptables
 BuildRequires: gcc-c++ wget which diffutils
-BuildRequires: e2fsprogs-devel beecrypt-devel
+BuildRequires: e2fsprogs-devel e2fsprogs
+%{!?_without_beecrypt:BuildRequires: beecrypt-devel}
+%{?_without_beecrypt:BuildRequires: nss-devel}
 BuildRequires: e2fsprogs
 %{!?_without_doc:BuildRequires:        doxygen tetex-latex}
 Requires(post):                %name-core
@@ -255,6 +257,11 @@ copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
 
 
+%pre build
+x="%_libdir/util-vserver/distributions/etch"
+test -d "$x" && mv "$x" "$x.rpmsave" || :
+
+
 %post build
 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
 
@@ -268,11 +275,6 @@ f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
 
 
-%pre build
-x="%_libdir/util-vserver/distributions/etch"
-test -d "$x" && mv "$x" "$x.rpmsave"
-
-
 ## Temporary workaround to remove old v_* files; it will conflict
 ## somehow with the -legacy package but can be fixed by reinstalling
 ## this package.