X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=004311727e88bded19fed2252ab56927785d3ce6;hb=4e211122234db3972056d1f9cc91b70ca47cbb7c;hp=3e8f6eae59129370706c3fbcb0269c128af236fc;hpb=e4d47dbbc4dba4a4ec401767456d2155a216f55b;p=build.git diff --git a/Makefile b/Makefile index 3e8f6eae..00431172 100644 --- a/Makefile +++ b/Makefile @@ -204,6 +204,8 @@ myplc-release: (echo "Build trelease: $(RELEASE)") >> $@ echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx modules versions info" >> $@ $(MAKE) --no-print-directory versions >> $@ + echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx rpms list" >> $@ + $(MAKE) --no-print-directory version-rpms >> $@ ### yumgroups.xml # the source @@ -296,9 +298,7 @@ endif rm -f $@ echo "%_topdir $(HOME)" >> $@ echo "%_tmppath $(HOME)/tmp" >> $@ - echo "%_netsharedpath /proc:/dev/pts" >> $@ - echo "%_install_langs C:de:en:es:fr" >> $@ - echo "%_excludedocs yes" >> $@ + getrpmmacros.sh >> $@ ### this utility allows to extract various info from a spec file ### and to define them in makefiles @@ -601,6 +601,15 @@ $(foreach module,$(ALL-MODULES), $(eval $(call print_version,$(module)))) versions: $(foreach module, $(ALL-MODULES), $(module)-version) +RFORMAT="%20s :: %s\n" +define print_rpms +$(1)-version-rpms: + @$(foreach rpm,$($(1).rpms),printf $(RFORMAT) $(1) $(notdir $(rpm));) +version-rpms: $(1)-version-rpms +endef + +$(foreach package,$(sort $(ALL)), $(eval $(call print_rpms,$(package)))) + #################### include install Makefile # the default is to use the distro-dependent install file # however the main distro file can redefine PLDISTROINSTALL