Fix automatic template versioning (#667)
This commit is contained in:
parent
82742e6fd6
commit
fcf4b4b86f
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
base_rpms
|
||||
keys
|
||||
appmenus
|
||||
build_timestamp
|
||||
|
9
Makefile
9
Makefile
@ -3,8 +3,8 @@ $(error "You must set DIST variable, e.g. DIST=fc14")
|
||||
endif
|
||||
|
||||
TEMPLATE_NAME := $${DIST/fc/fedora-}-x64
|
||||
TIMESTAMP := $(shell date -u +%Y%m%d-%H%M)
|
||||
VERSION := $(shell cat version)-$(TIMESTAMP)
|
||||
VERSION := $(shell cat version)
|
||||
TIMESTAMP := $(shell date -u +%Y%m%d%H%M)
|
||||
|
||||
help:
|
||||
@echo "make rpms -- generate template rpm"
|
||||
@ -13,7 +13,8 @@ help:
|
||||
|
||||
|
||||
rpms:
|
||||
@export DIST NO_SIGN
|
||||
@echo $(TIMESTAMP) > build_timestamp
|
||||
export DIST NO_SIGN
|
||||
@echo "Building template: $(TEMPLATE_NAME)"
|
||||
@./create_symlinks_in_rpms_to_install_dir.sh && \
|
||||
sudo -E ./fedorize_image fedorized_images/$(TEMPLATE_NAME).img clean_images/packages.list && \
|
||||
@ -21,7 +22,7 @@ rpms:
|
||||
./build_template_rpm $(TEMPLATE_NAME) || exit 1; \
|
||||
|
||||
update-repo-installer:
|
||||
ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-*.noarch.rpm ../installer/yum/qubes-dom0/rpm
|
||||
ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-$(shell cat build_timestamp)*.noarch.rpm ../installer/yum/qubes-dom0/rpm
|
||||
|
||||
clean:
|
||||
sudo rm -fr qubeized_images/root.img.*
|
||||
|
@ -4,10 +4,11 @@
|
||||
#
|
||||
|
||||
%{!?version: %define version %(cat version)}
|
||||
%{!?rel: %define rel %(cat build_timestamp)}
|
||||
|
||||
Name: qubes-template-%{template_name}
|
||||
Version: %{version}
|
||||
Release: 1
|
||||
Release: %{rel}
|
||||
Summary: Qubes template for %{template_name}
|
||||
|
||||
License: GPL
|
||||
|
Loading…
Reference in New Issue
Block a user