could not get the tarball to contain a decent 'configure'
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Dec 2010 13:43:52 +0000 (14:43 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Dec 2010 13:43:52 +0000 (14:43 +0100)
so now the tarball we point at is the bare svn repo, and
we regenerate configure (make -f Makefile.svn) as part of the build stage

sources
util-vserver.spec

diff --git a/sources b/sources
index 17b3ccc..234443c 100644 (file)
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5ae3afafcd980d8fb4ac3df18012e08c8bc5c8cb  http://mirror.onelab.eu/third-party/util-vserver-0.30.216-pre2926.tar.bz2
+33ebef4e25720b05272201cda1d15e9f6d9804af  http://mirror.onelab.eu/third-party/util-vserver-0.30.216-pre2926.tar.bz2
index 6e21ccd..0d7c0f4 100644 (file)
@@ -19,6 +19,7 @@
 %global fullver                0.30.216-pre2926
 %global ver            %( echo %fullver | sed 's/-.*//' )
 %global subver         %( s=`echo %fullver | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
+%global release                %( echo %subver | sed -e 's,\.,,' )
 
 
 # Mandriva does funky stuff that break us.
@@ -33,9 +34,6 @@
 %endif
 
 
-%global release pre2926
-#%{!?release_func:%global release_func() %1%{?dist}}
-
 Summary:       Linux virtual server utilities
 Name:          util-vserver
 Version:       %ver
@@ -206,6 +204,7 @@ Linux-VServer API from Python.
 
 
 %build
+make -f Makefile.svn
 %configure --with-initrddir=%_initrddir --enable-release \
            %{?_without_dietlibc:--disable-dietlibc} \
            %{?_with_legacy:--enable-apis=NOLEGACY} \