]> git.proxmox.com Git - mirror_lxc.git/commitdiff
take into account new configure option --with-linuxdir
authorCedric Le Goater <clg@fr.ibm.com>
Fri, 21 Jan 2011 10:01:43 +0000 (11:01 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 1 Feb 2011 11:54:17 +0000 (12:54 +0100)
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Makefile.am
lxc.spec.in

index 9945d00c740c29e01f94be4c0f9bbbdd988df4f9..887e300d094e585ca311a8e4ed6faa4b7e0471ab 100644 (file)
@@ -13,4 +13,4 @@ ChangeLog::
        @touch ChangeLog
 
 rpm: dist
-       rpmbuild --clean -ta ${distdir}.tar.gz
+       rpmbuild --clean -ta --define "ksrc ${LINUX_DIR}" ${distdir}.tar.gz
index 379b53d76daa3f597f833552cc733d1785ee3161..452493de4a1222614cd7954bfd74a2c7e2aad0c5 100644 (file)
@@ -56,7 +56,8 @@ development of the linux containers.
 %prep
 %setup
 %build
-PATH=$PATH:/usr/sbin:/sbin %configure
+test "%{ksrc}" != "none" && args="--with-linuxdir=%{ksrc}"
+PATH=$PATH:/usr/sbin:/sbin %configure $args
 make %{?_smp_mflags}
 
 %install