From ee0e69dc626be79abf55a9ded05207d13af7e4c6 Mon Sep 17 00:00:00 2001 From: James Duley Date: Mon, 16 May 2016 22:01:05 +0100 Subject: [PATCH] LP-317: Add make rule to upload to Copr --- package/linux/rpm.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/linux/rpm.mk b/package/linux/rpm.mk index 8da6d6dba..4528bcdd7 100644 --- a/package/linux/rpm.mk +++ b/package/linux/rpm.mk @@ -38,6 +38,10 @@ $(RPM_PACKAGE_FILE): RPMBUILD_OPTS := -bb package_src: $(RPM_PACKAGE_SRC) $(RPM_PACKAGE_SRC): RPMBUILD_OPTS := -bs +.PHONY: package_src_upload +package_src_upload: $(RPM_PACKAGE_SRC) + copr-cli build --nowait $(COPR_PROJECT) $(RPM_PACKAGE_SRC) + $(RPM_PACKAGE_FILE) $(RPM_PACKAGE_SRC): $(SPEC_FILE) $(DIST_TAR_GZ) $(FW_DIST_TAR_GZ) | $(RPM_DIRS) @$(ECHO) "Building $(call toprel,$@), please wait..." $(V1) ln -sf $(DIST_TAR_GZ) $(PACKAGE_DIR)/SOURCES