qubes-installer-qubes-os/Makefile.builder
Frédéric Pierret (fepitre) 6a0f408a47
Move all components except LIVE_USB components to separate repositories
anaconda, blivet, lorax, pungi, pykickstart, qubes-release, lorax-template-qubes and anaconda-addon are separate components.
2019-01-08 18:34:39 +01:00

23 lines
823 B
Ruby

ifeq ($(ISO_LIVEUSB),1)
RPM_SPEC_FILES.dom0 += \
livecd-tools/livecd-tools.spec \
live/qubes-live.spec
endif
RPM_SPEC_FILES := $(RPM_SPEC_FILES.$(PACKAGE_SET))
SOURCE_COPY_IN := $(RPM_SPEC_FILES.dom0)
$(RPM_SPEC_FILES.dom0): SPEC=$(notdir $@)
$(RPM_SPEC_FILES.dom0): PACKAGE=$(dir $@)
$(RPM_SPEC_FILES.dom0): SOURCE_ARCHIVE_NAME=$(notdir $(shell $(RPM_PLUGIN_DIR)/tools/spectool --list-files --source 0 $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SPEC) | cut -d' ' -f2))
$(RPM_SPEC_FILES.dom0):
# Create the archive for specific Qubes packages
[[ -e $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE)/$(SOURCE_ARCHIVE_NAME) ]] \
|| $(BUILDER_DIR)/scripts/create-archive $(CHROOT_DIR)/$(DIST_SRC)/$(PACKAGE) $(SOURCE_ARCHIVE_NAME)
NO_ARCHIVE = 1
dist-package-build: RPM_SOURCE_DIR=$(dir $(DIST_SRC)/$(PACKAGE))
# vim: ft=make