SPECS: dazuko.spec - fixing module build

glen glen at pld-linux.org
Thu Mar 2 19:33:24 CET 2006


Author: glen                         Date: Thu Mar  2 18:33:24 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixing module build

---- Files affected:
SPECS:
   dazuko.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/dazuko.spec
diff -u SPECS/dazuko.spec:1.13 SPECS/dazuko.spec:1.14
--- SPECS/dazuko.spec:1.13	Thu Mar  2 18:44:46 2006
+++ SPECS/dazuko.spec	Thu Mar  2 19:33:18 2006
@@ -22,6 +22,7 @@
 Group:		Base/Kernel
 Source0:	http://www.dazuko.org/files/%{name}-%{version}.tar.gz
 # Source0-md5:	844498651d22ddd76bea4104bf7c3e43
+Patch0:		%{name}-kbuild.patch
 URL:		http://www.dazuko.org/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:	kernel-module-build >= 2.6.7}
@@ -132,17 +133,9 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# NOTE: It's not autoconf configure.
-bash ./configure \
-	%{?debug:--enable-debug} \
-	--kernelsrcdir=%{_kernelsrcdir} \
-	--disable-local-dpath \
-	--disable-compat1 \
-	%{!?with_userspace:--without-library} \
-	%{!?with_kernel:--without-module}
-
 %if %{with kernel}
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
 	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
@@ -161,7 +154,15 @@
 %endif
 #
 #	patching/creating makefile(s) (optional)
-#
+
+	# NOTE: It's not autoconf configure.
+	bash ./configure \
+		--kernelsrcdir=%{_kernelsrcdir} \
+		%{?debug:--enable-debug} \
+		--disable-local-dpath \
+		--disable-compat1 \
+		--without-library
+
 	%{__make} -C %{_kernelsrcdir} clean \
 		RCS_FIND_IGNORE="-name '*.ko' -o" \
 		SYSSRC=%{_kernelsrcdir} \
@@ -180,6 +181,13 @@
 %endif
 
 %if %{with userspace}
+# NOTE: It's not autoconf configure.
+bash ./configure \
+	%{?debug:--enable-debug} \
+	--disable-local-dpath \
+	--disable-compat1 \
+	--without-module
+
 cd library
 %{__make} \
 	CC="%{__cc}" \
@@ -268,6 +276,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2006/03/02 18:33:18  glen
+- fixing module build
+
 Revision 1.13  2006/03/02 17:44:46  glen
 - just build macros update
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dazuko.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list