forked from pool/llvm14
- Replace %dnl in lists by something Leap's RPM understands.
- Rename groups a bit. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm14?expand=0&rev=32
This commit is contained in:
parent
c5f877a9d0
commit
64c035b70e
82
llvm14.spec
82
llvm14.spec
@ -121,10 +121,12 @@
|
|||||||
# produces foo_a foo_b foo_c.
|
# produces foo_a foo_b foo_c.
|
||||||
%define lapply(p:) %{_lapply_rec -p %{-p*} -f %{shrink:%*}}
|
%define lapply(p:) %{_lapply_rec -p %{-p*} -f %{shrink:%*}}
|
||||||
|
|
||||||
|
%define comment() %{nil}
|
||||||
|
|
||||||
# Due to RPMs recursion limit, we have to split the lists into portions of ≤ 20.
|
# Due to RPMs recursion limit, we have to split the lists into portions of ≤ 20.
|
||||||
%global llvm_ua_anchor llvm-ar
|
%global llvm_ua_anchor llvm-ar
|
||||||
%global llvm_tools \
|
%global llvm_tools \
|
||||||
%dnl Optimizer, compiler, interpreter, linker \
|
%{comment Optimizer, compiler, interpreter, linker} \
|
||||||
llc \
|
llc \
|
||||||
lli \
|
lli \
|
||||||
llvm-jitlink \
|
llvm-jitlink \
|
||||||
@ -133,7 +135,7 @@
|
|||||||
llvm-lto2 \
|
llvm-lto2 \
|
||||||
llvm-rtdyld \
|
llvm-rtdyld \
|
||||||
opt \
|
opt \
|
||||||
%dnl LLVM IR tools \
|
%{comment LLVM IR tools} \
|
||||||
llvm-as \
|
llvm-as \
|
||||||
llvm-bcanalyzer \
|
llvm-bcanalyzer \
|
||||||
llvm-bitcode-strip \
|
llvm-bitcode-strip \
|
||||||
@ -145,7 +147,7 @@
|
|||||||
llvm-sim \
|
llvm-sim \
|
||||||
llvm-split
|
llvm-split
|
||||||
%global llvm_elf_dwarf_tools \
|
%global llvm_elf_dwarf_tools \
|
||||||
%dnl ELF tools \
|
%{comment ELF tools} \
|
||||||
llvm-cfi-verify \
|
llvm-cfi-verify \
|
||||||
llvm-nm \
|
llvm-nm \
|
||||||
llvm-objcopy \
|
llvm-objcopy \
|
||||||
@ -155,7 +157,7 @@
|
|||||||
llvm-readobj \
|
llvm-readobj \
|
||||||
llvm-size \
|
llvm-size \
|
||||||
llvm-strip \
|
llvm-strip \
|
||||||
%dnl Debug info tools \
|
%{comment Debug info tools} \
|
||||||
dsymutil \
|
dsymutil \
|
||||||
llvm-addr2line \
|
llvm-addr2line \
|
||||||
llvm-debuginfod-find \
|
llvm-debuginfod-find \
|
||||||
@ -163,12 +165,12 @@
|
|||||||
llvm-dwp \
|
llvm-dwp \
|
||||||
llvm-gsymutil
|
llvm-gsymutil
|
||||||
%global llvm_abi_coff_macho_tools \
|
%global llvm_abi_coff_macho_tools \
|
||||||
%dnl ABI tools \
|
%{comment ABI tools} \
|
||||||
llvm-cxxdump \
|
llvm-cxxdump \
|
||||||
llvm-cxxfilt \
|
llvm-cxxfilt \
|
||||||
llvm-cxxmap \
|
llvm-cxxmap \
|
||||||
llvm-ifs \
|
llvm-ifs \
|
||||||
%dnl Windows/COFF \
|
%{comment Windows/COFF} \
|
||||||
llvm-cvtres \
|
llvm-cvtres \
|
||||||
llvm-dlltool \
|
llvm-dlltool \
|
||||||
llvm-lib \
|
llvm-lib \
|
||||||
@ -178,14 +180,14 @@
|
|||||||
llvm-rc \
|
llvm-rc \
|
||||||
llvm-undname \
|
llvm-undname \
|
||||||
llvm-windres \
|
llvm-windres \
|
||||||
%dnl Apple/Mach-O \
|
%{comment Apple/Mach-O} \
|
||||||
llvm-install-name-tool \
|
llvm-install-name-tool \
|
||||||
llvm-libtool-darwin \
|
llvm-libtool-darwin \
|
||||||
llvm-lipo \
|
llvm-lipo \
|
||||||
llvm-otool \
|
llvm-otool \
|
||||||
llvm-tapi-diff
|
llvm-tapi-diff
|
||||||
%global llvm_instrumentation_development_tools \
|
%global llvm_instr_devel_tools \
|
||||||
%dnl Instrumentation and introspection \
|
%{comment Instrumentation and introspection} \
|
||||||
llvm-cov \
|
llvm-cov \
|
||||||
llvm-opt-report \
|
llvm-opt-report \
|
||||||
llvm-profdata \
|
llvm-profdata \
|
||||||
@ -194,7 +196,7 @@
|
|||||||
llvm-xray \
|
llvm-xray \
|
||||||
sancov \
|
sancov \
|
||||||
sanstats \
|
sanstats \
|
||||||
%dnl Development utilities \
|
%{comment Development utilities} \
|
||||||
bugpoint \
|
bugpoint \
|
||||||
llvm-c-test \
|
llvm-c-test \
|
||||||
llvm-mc \
|
llvm-mc \
|
||||||
@ -254,28 +256,28 @@
|
|||||||
%endif
|
%endif
|
||||||
%global binfiles \
|
%global binfiles \
|
||||||
%{llvm_ua_anchor} %{llvm_tools} %{llvm_elf_dwarf_tools} \
|
%{llvm_ua_anchor} %{llvm_tools} %{llvm_elf_dwarf_tools} \
|
||||||
%{llvm_abi_coff_macho_tools} %{llvm_instrumentation_development_tools} \
|
%{llvm_abi_coff_macho_tools} %{llvm_instr_devel_tools} \
|
||||||
%{clang_ua_anchor} %{clang_binfiles} %{clang_tools_extra_binfiles} \
|
%{clang_ua_anchor} %{clang_binfiles} %{clang_tools_extra_binfiles} \
|
||||||
%{?lld_ua_anchor} %{?lld_binfiles} %{?lldb_ua_anchor} %{?lldb_binfiles}
|
%{?lld_ua_anchor} %{?lld_binfiles} %{?lldb_ua_anchor} %{?lldb_binfiles}
|
||||||
|
|
||||||
%global llvm_main_man \
|
%global llvm_man \
|
||||||
%dnl Optimizer, compiler, interpreter, linker \
|
%{comment Optimizer, compiler, interpreter, linker} \
|
||||||
llc \
|
llc \
|
||||||
lli \
|
lli \
|
||||||
llvm-link \
|
llvm-link \
|
||||||
opt \
|
opt \
|
||||||
%dnl LLVM IR tools \
|
%{comment LLVM IR tools} \
|
||||||
llvm-as \
|
llvm-as \
|
||||||
llvm-bcanalyzer \
|
llvm-bcanalyzer \
|
||||||
llvm-dis \
|
llvm-dis \
|
||||||
llvm-extract \
|
llvm-extract \
|
||||||
%dnl Instrumentation and introspection \
|
%{comment Instrumentation and introspection} \
|
||||||
llvm-cov \
|
llvm-cov \
|
||||||
llvm-profdata \
|
llvm-profdata \
|
||||||
llvm-profgen \
|
llvm-profgen \
|
||||||
llvm-symbolizer
|
llvm-symbolizer
|
||||||
%global llvm_aux_man \
|
%global llvm_bin_utils_man \
|
||||||
%dnl ELF tools \
|
%{comment ELF tools} \
|
||||||
llvm-ar \
|
llvm-ar \
|
||||||
llvm-nm \
|
llvm-nm \
|
||||||
llvm-objcopy \
|
llvm-objcopy \
|
||||||
@ -285,23 +287,23 @@
|
|||||||
llvm-readobj \
|
llvm-readobj \
|
||||||
llvm-size \
|
llvm-size \
|
||||||
llvm-strip \
|
llvm-strip \
|
||||||
%dnl Debug info tools \
|
%{comment Debug info tools} \
|
||||||
dsymutil \
|
dsymutil \
|
||||||
llvm-addr2line \
|
llvm-addr2line \
|
||||||
llvm-dwarfdump \
|
llvm-dwarfdump \
|
||||||
%dnl Windows/COFF \
|
%{comment Windows/COFF} \
|
||||||
llvm-lib \
|
llvm-lib \
|
||||||
llvm-pdbutil \
|
llvm-pdbutil \
|
||||||
%dnl Apple/Mach-O \
|
%{comment Apple/Mach-O} \
|
||||||
llvm-install-name-tool \
|
llvm-install-name-tool \
|
||||||
llvm-libtool-darwin \
|
llvm-libtool-darwin \
|
||||||
llvm-lipo \
|
llvm-lipo \
|
||||||
llvm-otool
|
llvm-otool
|
||||||
%global llvm_util_man \
|
%global llvm_devel_utils_man \
|
||||||
%dnl ABI tools \
|
%{comment ABI tools} \
|
||||||
llvm-cxxfilt \
|
llvm-cxxfilt \
|
||||||
llvm-cxxmap \
|
llvm-cxxmap \
|
||||||
%dnl Development utilities \
|
%{comment Development utilities} \
|
||||||
bugpoint \
|
bugpoint \
|
||||||
llvm-diff \
|
llvm-diff \
|
||||||
llvm-mca \
|
llvm-mca \
|
||||||
@ -311,7 +313,7 @@
|
|||||||
llvm-tli-checker
|
llvm-tli-checker
|
||||||
|
|
||||||
%global clang_manfiles clang diagtool
|
%global clang_manfiles clang diagtool
|
||||||
%global manfiles %{llvm_main_man} %{llvm_aux_man} %{llvm_util_man} %{clang_manfiles}
|
%global manfiles %{llvm_man} %{llvm_bin_utils_man} %{llvm_devel_utils_man} %{clang_manfiles}
|
||||||
|
|
||||||
%define _dwz_low_mem_die_limit 40000000
|
%define _dwz_low_mem_die_limit 40000000
|
||||||
%define _dwz_max_die_limit 200000000
|
%define _dwz_max_die_limit 200000000
|
||||||
@ -1431,10 +1433,10 @@ fi
|
|||||||
%{lapply -p ua_bin_slave %llvm_tools} \
|
%{lapply -p ua_bin_slave %llvm_tools} \
|
||||||
%{lapply -p ua_bin_slave %llvm_elf_dwarf_tools} \
|
%{lapply -p ua_bin_slave %llvm_elf_dwarf_tools} \
|
||||||
%{lapply -p ua_bin_slave %llvm_abi_coff_macho_tools} \
|
%{lapply -p ua_bin_slave %llvm_abi_coff_macho_tools} \
|
||||||
%{lapply -p ua_bin_slave %llvm_instrumentation_development_tools} \
|
%{lapply -p ua_bin_slave %llvm_instr_devel_tools} \
|
||||||
%{lapply -p ua_man_slave %llvm_main_man} \
|
%{lapply -p ua_man_slave %llvm_man} \
|
||||||
%{lapply -p ua_man_slave %llvm_aux_man} \
|
%{lapply -p ua_man_slave %llvm_bin_utils_man} \
|
||||||
%{lapply -p ua_man_slave %llvm_util_man}
|
%{lapply -p ua_man_slave %llvm_devel_utils_man}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{ua_remove %llvm_ua_anchor}
|
%{ua_remove %llvm_ua_anchor}
|
||||||
@ -1488,25 +1490,25 @@ fi
|
|||||||
%{lapply -p bin_path %llvm_ua_anchor %llvm_tools}
|
%{lapply -p bin_path %llvm_ua_anchor %llvm_tools}
|
||||||
%{lapply -p bin_path %llvm_elf_dwarf_tools}
|
%{lapply -p bin_path %llvm_elf_dwarf_tools}
|
||||||
%{lapply -p bin_path %llvm_abi_coff_macho_tools}
|
%{lapply -p bin_path %llvm_abi_coff_macho_tools}
|
||||||
%{lapply -p bin_path %llvm_instrumentation_development_tools}
|
%{lapply -p bin_path %llvm_instr_devel_tools}
|
||||||
%{lapply -p bin_relver_path %llvm_ua_anchor %llvm_tools}
|
%{lapply -p bin_relver_path %llvm_ua_anchor %llvm_tools}
|
||||||
%{lapply -p bin_relver_path %llvm_elf_dwarf_tools}
|
%{lapply -p bin_relver_path %llvm_elf_dwarf_tools}
|
||||||
%{lapply -p bin_relver_path %llvm_abi_coff_macho_tools}
|
%{lapply -p bin_relver_path %llvm_abi_coff_macho_tools}
|
||||||
%{lapply -p bin_relver_path %llvm_instrumentation_development_tools}
|
%{lapply -p bin_relver_path %llvm_instr_devel_tools}
|
||||||
%{lapply -p ghost_ua_bin_link %llvm_ua_anchor %llvm_tools}
|
%{lapply -p ghost_ua_bin_link %llvm_ua_anchor %llvm_tools}
|
||||||
%{lapply -p ghost_ua_bin_link %llvm_elf_dwarf_tools}
|
%{lapply -p ghost_ua_bin_link %llvm_elf_dwarf_tools}
|
||||||
%{lapply -p ghost_ua_bin_link %llvm_abi_coff_macho_tools}
|
%{lapply -p ghost_ua_bin_link %llvm_abi_coff_macho_tools}
|
||||||
%{lapply -p ghost_ua_bin_link %llvm_instrumentation_development_tools}
|
%{lapply -p ghost_ua_bin_link %llvm_instr_devel_tools}
|
||||||
|
|
||||||
%{lapply -p man_path %llvm_main_man}
|
%{lapply -p man_path %llvm_man}
|
||||||
%{lapply -p man_path %llvm_aux_man}
|
%{lapply -p man_path %llvm_bin_utils_man}
|
||||||
%{lapply -p man_path %llvm_util_man}
|
%{lapply -p man_path %llvm_devel_utils_man}
|
||||||
%{lapply -p man_relver_path %llvm_main_man}
|
%{lapply -p man_relver_path %llvm_man}
|
||||||
%{lapply -p man_relver_path %llvm_aux_man}
|
%{lapply -p man_relver_path %llvm_bin_utils_man}
|
||||||
%{lapply -p man_relver_path %llvm_util_man}
|
%{lapply -p man_relver_path %llvm_devel_utils_man}
|
||||||
%{lapply -p ghost_ua_man_link %llvm_main_man}
|
%{lapply -p ghost_ua_man_link %llvm_man}
|
||||||
%{lapply -p ghost_ua_man_link %llvm_aux_man}
|
%{lapply -p ghost_ua_man_link %llvm_bin_utils_man}
|
||||||
%{lapply -p ghost_ua_man_link %llvm_util_man}
|
%{lapply -p ghost_ua_man_link %llvm_devel_utils_man}
|
||||||
|
|
||||||
%files -n clang%{_sonum}
|
%files -n clang%{_sonum}
|
||||||
%license CREDITS.TXT LICENSE.TXT
|
%license CREDITS.TXT LICENSE.TXT
|
||||||
|
Loading…
Reference in New Issue
Block a user