From 2f774cc10226ed24bce84e3aada865b4955b74e1 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: May 19 2023 22:02:25 +0000 Subject: copr: Install llvm-snapshot-builder from the local COPR project This ensures we always get the same source tarball when building into this project. --- diff --git a/.copr/Makefile b/.copr/Makefile index be16732..753982b 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,10 +1,14 @@ # See https://docs.pagure.org/copr.copr/user_documentation.html#make-srpm # See for the --setopt option in the enabling of copr repo see: # https://pagure.io/copr/copr/issue/184 + +COPR_USERNAME=$(shell rpm --eval %copr_username) +COPR_PROJECT=$(shell rpm --eval %copr_projectname) + .PHONY: srpm srpm: dnf install -y dnf-plugins-core fedora-packager - dnf copr enable -y --setopt=reposdir=/tmp/yum.repos.d @fedora-llvm-team/llvm-snapshot-builder + dnf copr enable -y --setopt=reposdir=/tmp/yum.repos.d $(COPR_USERNAME)/$(COPR_PROJECT) dnf install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder rpmbuild \ --define "_srcrpmdir $(outdir)" \