lld/.copr/Makefile
Tulio Magno Quites Machado Filho 7f0682b594 Update to LLVM 17.0.0 RC1
This is also a squashed merge commit from upstream-snapshot (commit ID
793e0363467b802a) into rawhide whose most important commits from
upstream-snapshot are:

Konrad Kleine (21):
      Generated patches again rebased llvm-project
      Prepared lld for snapshot builds
      Fix indention
      Rebased patches from streamline branch of llvm-project
      Fix installed (but unpacked) file(s) found for ld64.ldd.darwinold
      Disable checks when building snapshots
      Experiment to find out how version suffix may look like
      Make download path for snapshot sources-easily adjustable
      Fix RPM build error:
      Use new llvm_snashot_changelog_entry macro
      Don't install unittests dir because as of https://reviews.llvm.org/D114842 that no longer exist
      Try fix RPM build
      Use llvm_snapshot_version_suffix
      Compile with DWARFv4
      Fix: cp: cannot stat 'redhat-linux-build/lib64/libgtest*so*': No such file or directory
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Make lld use the llvm-snapshot-builder
      Use %{llvm_snapshot_extra_source_tags} macro
      Rebase patch
      Fix error by adding cmake tarball
      Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot

Nikita Popov (1):
      Remove Unit site.cfg.py handling

Tom Stellard (3):
      Remove lld-test package
      Drop gtest detection patch
      copr: Install llvm-snapshot-builder from the local COPR project
2023-08-11 13:37:21 -03:00

18 lines
649 B
Makefile

# 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 $(COPR_USERNAME)/$(COPR_PROJECT)
dnf install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder
rpmbuild \
--define "_srcrpmdir $(outdir)" \
--define "_sourcedir $(shell pwd)" \
--define "_disable_source_fetch 0" \
-bs $(spec)