mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 09:01:46 +00:00
build grub2-xcat with grub2-2.02-0.16.ael7b.src.rpm; set version and release of grub2-xcat according to the info of grub2
Former-commit-id: 234b44fd29eaa261f28ba9f316bd9b510b39e60f
This commit is contained in:
parent
81bc7a7099
commit
e536c7d2bb
@ -2,7 +2,7 @@
|
||||
# Maintainer: GONG Jie <gongjie@linux.vnet.ibm.com>
|
||||
#
|
||||
|
||||
SRC_RPM = grub2-2.02-0.16.xcat.src.rpm
|
||||
SRC_RPM = grub2-2.02-0.16.ael7b.src.rpm
|
||||
SPEC_TEMPLATE = grub2-xcat.spec.template
|
||||
|
||||
BUILD_NUMBER_FILE = build-number.txt
|
||||
@ -34,8 +34,13 @@ grub2-xcat.spec: $(SPEC_TEMPLATE) $(BUILD_NUMBER_FILE) timestamp.grub2.mknetdir
|
||||
umask 0022
|
||||
( cd grub2-xcat ; find tftpboot -type d -exec echo '%dir "/{}"' ';' ) >filelist
|
||||
( cd grub2-xcat ; find tftpboot -type f -exec echo '"/{}"' ';' ) >>filelist
|
||||
#cat $(SPEC_TEMPLATE) | sed -e \
|
||||
# 's@###<<<BUILD>>>###@build'$$(cat $(BUILD_NUMBER_FILE))'.xcat@g' \
|
||||
# -e '/%files/ r filelist' >$@
|
||||
cat $(SPEC_TEMPLATE) | sed -e \
|
||||
's@###<<<BUILD>>>###@build'$$(cat $(BUILD_NUMBER_FILE))'.xcat@g' \
|
||||
's@###<<<BUILD>>>###@build'$$(date +"%Y%m%d%H%M")'@g' \
|
||||
-e 's@###<<<GRUB2RELEASE>>>###@'$$(rpm -qpf --qf "%{RELEASE}" $(SRC_RPM) )'@g' \
|
||||
-e 's@###<<<GRUB2VERSION>>>###@'$$(rpm -qpf --qf "%{VERSION}" $(SRC_RPM) )'@g' \
|
||||
-e '/%files/ r filelist' >$@
|
||||
$(RM) filelist
|
||||
|
||||
|
BIN
grub2-xcat.recompile/grub2-2.02-0.16.ael7b.src.rpm
Normal file
BIN
grub2-xcat.recompile/grub2-2.02-0.16.ael7b.src.rpm
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user