X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=62711055f9a3b460a5a799344e3dc065960147c9;hb=548c6e6ad3bc706f2b327e9147c4d5e7f0a69108;hp=a843b22f1103a5f5a8dea58a8f2c50065f9369c6;hpb=f06fb3500f7cb45a00cb2c3a81684021046bc4b6;p=build.git diff --git a/Makefile b/Makefile index a843b22f..62711055 100644 --- a/Makefile +++ b/Makefile @@ -295,6 +295,7 @@ $(1).module := $(firstword $($(1)-MODULES)) $(1).specpath := SPECS/$(notdir $($(1)-SPEC)) $(1).moduledir := MODULES/$$($(1).module) $(1).codespec := MODULES/$$($(1).module)/$($(1)-SPEC) +$(1).spec2makeflags := $(if $($(1)-NEEDSPEC2MAKEHACK),$(if $(filter $(DISTRONAME),f8 centos5),--hack,),) endef $(foreach package, $(ALL), $(eval $(call stage1_package_vars,$(package)))) @@ -427,10 +428,12 @@ spec2make: spec2make.c ### run spec2make on the spec file and include the result # usage: spec2make package +# with old rpms (f8&c5) and too recent specfiles (the kernel), we need a patch to spec2make +# so when MAKE/$(1).mk || { rm MAKE/$(1).mk; exit 1; } + ./spec2make $($(1).spec2makeflags) $($(1)-RPMFLAGS) $($(1).specpath) $(1) > MAKE/$(1).mk || { rm MAKE/$(1).mk; exit 1; } endef $(foreach package,$(ALL),$(eval $(call target_mk,$(package))))