Make libomp use the llvm-snapshot-builder

This commit is contained in:
Konrad Kleine 2022-06-13 09:33:51 +02:00
parent fd571ca5e6
commit 3f6528b350
2 changed files with 19 additions and 0 deletions

11
.copr/Makefile Normal file
View file

@ -0,0 +1,11 @@
# 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
.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 install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder
rpmdev-spectool --get-files --all --sourcedir libomp.spec
rpmbuild -bs libomp.spec
find $(shell rpm --eval "%{_srcrpmdir}") -name "*.src.rpm" -exec cp {} $(outdir) \;

View file

@ -1,3 +1,11 @@
%bcond_without snapshot_build
%if %{with snapshot_build}
# Unlock LLVM Snapshot LUA functions
%{llvm_sb_verbose}
%{llvm_sb}
%endif
%global libomp_version 13.0.1
%global rc_ver 1
%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src