On Fri, Sep 29, 2006 at 10:34:09AM +0200, zbyniu wrote: > Author: zbyniu Date: Fri Sep 29 08:34:09 2006 GMT > Module: SPECS Tag: LINUX_2_6 > ---- Log message: > - rpm macros need utsrelease.h for external modules; rel 2 >
> @@ -1184,6 +1185,8 @@ > KERNEL_INSTALL_DIR="$KERNEL_BUILD_DIR/build-done/kernel-UP" > rm -rf $KERNEL_INSTALL_DIR > BuildConfig > +%{__make} $CrossOpts include/linux/utsrelease.h > +cp include/linux/utsrelease.h{,.save} Isn't there any way to do it in %install ? just after %{__make} $CrossOpts include/linux/version.h > %{__make} $CrossOpts mrproper > +mv -f include/linux/utsrelease.h.save > $RPM_BUILD_ROOT%{_prefix}/src/linux-%{version}/include/linux/utsrelease.h > %{__make} $CrossOpts include/linux/version.h wrong, use install instead of mv, or you'll brake multiple rpmbuild -bi --short-circuit -- ____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En /____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org \____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparky<at>jabberes.org (____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparky<at>pld-linux.org _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en