SPECS: zaptel.spec - build fixes

arekm arekm at pld-linux.org
Thu Jan 12 21:54:36 CET 2006


Author: arekm                        Date: Thu Jan 12 20:54:36 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- build fixes

---- Files affected:
SPECS:
   zaptel.spec (1.46 -> 1.47) 

---- Diffs:

================================================================
Index: SPECS/zaptel.spec
diff -u SPECS/zaptel.spec:1.46 SPECS/zaptel.spec:1.47
--- SPECS/zaptel.spec:1.46	Thu Jan 12 20:04:50 2006
+++ SPECS/zaptel.spec	Thu Jan 12 21:54:30 2006
@@ -22,6 +22,7 @@
 # Source0-md5:	efabb39a05d4c51f1e9d7d55ac097e2c
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Patch0:		%{name}-make.patch
 URL:		http://www.asterisk.org/
 %if %{with kernel} && %{with dist_kernel}
 BuildRequires:	kernel-module-build
@@ -104,13 +105,15 @@
 
 %prep
 %setup -q
+%patch0 -p1
 sed -i -e "s#/usr/lib#%{_libdir}#g#" Makefile
 
 %define buildconfigs %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
 
 %build
 %{__make} prereq \
-	CC="%{__cc}"
+	CC="%{__cc}" \
+	OPTFLAGS="%{rpmcflags}"
 
 %if %{with kernel}
 for cfg in %{buildconfigs}; do
@@ -144,6 +147,8 @@
 	ln -sf %{_kernelsrcdir}/scripts/basic/fixdep scripts/basic/fixdep
 %endif
 	%{__make} -C %{_kernelsrcdir} modules \
+		KVERS=%{_kernel_ver} \
+		KSRC=%{_kernelsrcdir} \
 		SUBDIRS=$PWD \
 		O=$PWD \
 		%{?with_verbose:V=1}
@@ -256,6 +261,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.47  2006/01/12 20:54:30  arekm
+- build fixes
+
 Revision 1.46  2006/01/12 19:04:50  arekm
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/zaptel.spec?r1=1.46&r2=1.47&f=u



More information about the pld-cvs-commit mailing list