Pretend the template rpm is build the standard way
This allows to reuse standard update-repo-* and sign-* make targets. QubesOS/qubes-issues#3935
This commit is contained in:
parent
ee42db95ec
commit
a78fc2ddbb
5
Makefile.builder
Normal file
5
Makefile.builder
Normal file
@ -0,0 +1,5 @@
|
||||
# pretend that normal package is built from this repo, to reuse update-repo-*
|
||||
ifeq ($(PACKAGE_SET),vm)
|
||||
OUTPUT_DIR = rpm
|
||||
RPM_SPEC_FILES = templates.spec
|
||||
endif
|
@ -3,8 +3,9 @@
|
||||
# This includes the VM's root image, patched with all qubes rpms, etc
|
||||
#
|
||||
|
||||
%{!?version: %define version %(cat version)}
|
||||
%{!?rel: %define rel %(cat build_timestamp_%{template_name})}
|
||||
%{!?template_name: %global template_name %{getenv:TEMPLATE_NAME}}
|
||||
%{!?version: %global version %(cat version)}
|
||||
%{!?rel: %global rel %(cat build_timestamp_%{template_name} || echo unavailable)}
|
||||
|
||||
Name: qubes-template-%{template_name}
|
||||
Version: %{version}
|
||||
@ -17,6 +18,7 @@ Source: .
|
||||
|
||||
Requires: xdg-utils
|
||||
Requires(post): tar
|
||||
BuildArch: noarch
|
||||
Provides: qubes-template
|
||||
Obsoletes: %{name} > %{version}-%{release}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user