Blame SPECS/llvm.spec

c8621d
# Components enabled if supported by target architecture:
c8621d
%define gold_arches %{ix86} x86_64 %{arm} aarch64 %{power64}
c8621d
%ifarch %{gold_arches}
c8621d
  %bcond_without gold
c8621d
%else
c8621d
  %bcond_with gold
c8621d
%endif
c8621d
c8621d
%bcond_with compat_build
c8621d
08f1e7
%global _smp_mflags -j8
08f1e7
c8621d
%global llvm_libdir %{_libdir}/%{name}
c8621d
%global build_llvm_libdir %{buildroot}%{llvm_libdir}
158546
#%%global rc_ver 6
158546
%global baserelease 2
c8621d
%global llvm_srcdir llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src
08f1e7
%global maj_ver 11
c8621d
%global min_ver 0
08f1e7
%global patch_ver 0
c8621d
c8621d
%if %{with compat_build}
c8621d
%global pkg_name llvm%{maj_ver}.%{min_ver}
c8621d
%global exec_suffix -%{maj_ver}.%{min_ver}
c8621d
%global install_prefix %{_libdir}/%{name}
c8621d
%global install_bindir %{install_prefix}/bin
c8621d
%global install_includedir %{install_prefix}/include
c8621d
%global install_libdir %{install_prefix}/lib
c8621d
c8621d
%global pkg_bindir %{install_bindir}
c8621d
%global pkg_includedir %{_includedir}/%{name}
c8621d
%global pkg_libdir %{install_libdir}
c8621d
%else
c8621d
%global pkg_name llvm
c8621d
%global install_prefix /usr
c8621d
%global install_libdir %{_libdir}
c8621d
%global pkg_libdir %{install_libdir}
c8621d
%endif
c8621d
c8621d
%global build_install_prefix %{buildroot}%{install_prefix}
c8621d
c8621d
%if !0%{?rhel}
c8621d
# libedit-devel is a buildroot-only package in RHEL8, so we can't have a
c8621d
# any run-time depencies on it.
c8621d
%global use_libedit 1
c8621d
%endif
c8621d
c8621d
Name:		%{pkg_name}
c8621d
Version:	%{maj_ver}.%{min_ver}.%{patch_ver}
c8621d
Release:	%{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
c8621d
Summary:	The Low Level Virtual Machine
c8621d
c8621d
License:	NCSA
c8621d
URL:		http://llvm.org
08f1e7
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{llvm_srcdir}.tar.xz
08f1e7
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{llvm_srcdir}.tar.xz.sig
08f1e7
Source2:	https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
c8621d
%if %{without compat_build}
08f1e7
Source3:	run-lit-tests
08f1e7
Source4:	lit.fedora.cfg.py
c8621d
%endif
c8621d
158546
# Fix coreos-installer test crash on s390x (rhbz#1883457), https://reviews.llvm.org/D89034
158546
Patch1:		0001-SystemZ-Use-LA-instead-of-AGR-in-eliminateFrameIndex.patch
c8621d
Patch2:		0001-CMake-Split-static-library-exports-into-their-own-ex.patch
c8621d
Patch3:		0001-CMake-Split-test-binary-exports-into-their-own-expor.patch
c8621d
c8621d
# RHEL-specific patches.
08f1e7
Patch101:      0001-Deactivate-markdown-doc.patch
08f1e7
Patch102:      error-opening-permission.patch
c8621d
c8621d
BuildRequires:	gcc
c8621d
BuildRequires:	gcc-c++
c8621d
BuildRequires:	cmake
c8621d
BuildRequires:	ninja-build
c8621d
BuildRequires:	zlib-devel
c8621d
BuildRequires:	libffi-devel
c8621d
BuildRequires:	ncurses-devel
c8621d
BuildRequires:	python3-sphinx
08f1e7
c8621d
%if !0%{?rhel}
08f1e7
BuildRequires: python3-recommonmark
c8621d
%else
08f1e7
BuildRequires: pandoc
c8621d
%endif
08f1e7
c8621d
BuildRequires:	multilib-rpm-config
c8621d
%if %{with gold}
c8621d
BuildRequires:	binutils-devel
c8621d
%endif
c8621d
%ifarch %{valgrind_arches}
c8621d
# Enable extra functionality when run the LLVM JIT under valgrind.
c8621d
BuildRequires:	valgrind-devel
c8621d
%endif
c8621d
%if 0%{?use_libedit}
c8621d
# LLVM's LineEditor library will use libedit if it is available.
c8621d
BuildRequires:	libedit-devel
c8621d
%endif
c8621d
# We need python3-devel for pathfix.py.
c8621d
BuildRequires:	python3-devel
c8621d
c8621d
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
c8621d
c8621d
Provides:	llvm(major) = %{maj_ver}
c8621d
c8621d
%description
c8621d
LLVM is a compiler infrastructure designed for compile-time, link-time,
c8621d
runtime, and idle-time optimization of programs from arbitrary programming
c8621d
languages. The compiler infrastructure includes mirror sets of programming
c8621d
tools as well as libraries with equivalent functionality.
c8621d
c8621d
%package devel
c8621d
Summary:	Libraries and header files for LLVM
c8621d
Requires:	%{name}%{?_isa} = %{version}-%{release}
c8621d
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
c8621d
# The installed LLVM cmake files will add -ledit to the linker flags for any
c8621d
# app that requires the libLLVMLineEditor, so we need to make sure
c8621d
# libedit-devel is available.
c8621d
%if 0%{?use_libedit}
c8621d
Requires:	libedit-devel
c8621d
%endif
08f1e7
# The installed cmake files reference binaries from llvm-test and llvm-static.
08f1e7
# We tried in the past to split the cmake exports for these binaries out into
08f1e7
# separate files, so that llvm-devel would not need to Require these packages,
08f1e7
# but this caused bugs (rhbz#1773678) and forced us to carry two non-upstream
08f1e7
# patches.
08f1e7
Requires:	llvm-static%{?_isa} = %{version}-%{release}
08f1e7
Requires:	llvm-test%{?_isa} = %{version}-%{release}
08f1e7
08f1e7
c8621d
Requires(post):	%{_sbindir}/alternatives
c8621d
Requires(postun):	%{_sbindir}/alternatives
c8621d
c8621d
Provides:	llvm-devel(major) = %{maj_ver}
c8621d
c8621d
%description devel
c8621d
This package contains library and header files needed to develop new native
c8621d
programs that use the LLVM infrastructure.
c8621d
c8621d
%package doc
c8621d
Summary:	Documentation for LLVM
c8621d
BuildArch:	noarch
c8621d
Requires:	%{name} = %{version}-%{release}
c8621d
c8621d
%description doc
c8621d
Documentation for the LLVM compiler infrastructure.
c8621d
c8621d
%package libs
c8621d
Summary:	LLVM shared libraries
c8621d
c8621d
%description libs
c8621d
Shared libraries for the LLVM compiler infrastructure.
c8621d
c8621d
%package static
c8621d
Summary:	LLVM static libraries
c8621d
Conflicts:	%{name}-devel < 8
c8621d
c8621d
%description static
c8621d
Static libraries for the LLVM compiler infrastructure.
c8621d
c8621d
%if %{without compat_build}
c8621d
c8621d
%package test
c8621d
Summary:	LLVM regression tests
c8621d
Requires:	%{name}%{?_isa} = %{version}-%{release}
c8621d
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
c8621d
Requires:	python3-lit
c8621d
# The regression tests need gold.
c8621d
Requires:	binutils
c8621d
# This is for llvm-config
c8621d
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
c8621d
# Bugpoint tests require gcc
c8621d
Requires:	gcc
c8621d
Requires:	findutils
c8621d
c8621d
Provides:	llvm-test(major) = %{maj_ver}
c8621d
c8621d
%description test
c8621d
LLVM regression tests.
c8621d
c8621d
%package googletest
c8621d
Summary: LLVM's modified googletest sources
c8621d
c8621d
%description googletest
c8621d
LLVM's modified googletest sources.
c8621d
c8621d
%endif
c8621d
c8621d
%prep
c8621d
%autosetup -n %{llvm_srcdir} -p2
c8621d
c8621d
pathfix.py -i %{__python3} -pn \
c8621d
	test/BugPoint/compile-custom.ll.py \
08f1e7
	tools/opt-viewer/*.py \
08f1e7
	utils/update_cc_test_checks.py
c8621d
08f1e7
# Convert markdown files to rst to cope with the absence of compatible md parser in rhel.
c8621d
# The sed expression takes care of a slight difference between pandoc markdown and sphinx markdown.
c8621d
find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pandoc -f markdown -o ${md%.md}.rst  ; done
c8621d
c8621d
%build
c8621d
mkdir -p _build
c8621d
cd _build
c8621d
c8621d
%ifarch s390 %{arm} %ix86
c8621d
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
c8621d
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
c8621d
%endif
c8621d
c8621d
# force off shared libs as cmake macros turns it on.
c8621d
#
c8621d
# -DCMAKE_INSTALL_RPATH=";" is a workaround for llvm manually setting the
c8621d
# rpath of libraries and binaries.  llvm will skip the manual setting
158546
# if CMAKE_INSTALL_RPATH is set to a value, but cmake interprets this value
c8621d
# as nothing, so it sets the rpath to "" when installing.
c8621d
%cmake .. -G Ninja \
c8621d
	-DBUILD_SHARED_LIBS:BOOL=OFF \
c8621d
	-DLLVM_PARALLEL_LINK_JOBS=1 \
c8621d
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
c8621d
	-DCMAKE_INSTALL_RPATH=";" \
c8621d
%ifarch s390 %{arm} %ix86
c8621d
	-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
c8621d
	-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
c8621d
%endif
c8621d
%if %{without compat_build}
c8621d
%if 0%{?__isa_bits} == 64
c8621d
	-DLLVM_LIBDIR_SUFFIX=64 \
c8621d
%else
c8621d
	-DLLVM_LIBDIR_SUFFIX= \
c8621d
%endif
c8621d
%endif
c8621d
	\
c8621d
	-DLLVM_TARGETS_TO_BUILD="X86;AMDGPU;PowerPC;NVPTX;SystemZ;AArch64;ARM;Mips;BPF" \
c8621d
	-DLLVM_ENABLE_LIBCXX:BOOL=OFF \
c8621d
	-DLLVM_ENABLE_ZLIB:BOOL=ON \
c8621d
	-DLLVM_ENABLE_FFI:BOOL=ON \
c8621d
	-DLLVM_ENABLE_RTTI:BOOL=ON \
c8621d
%if %{with gold}
c8621d
	-DLLVM_BINUTILS_INCDIR=%{_includedir} \
c8621d
%endif
c8621d
	\
c8621d
	-DLLVM_BUILD_RUNTIME:BOOL=ON \
c8621d
	\
c8621d
	-DLLVM_INCLUDE_TOOLS:BOOL=ON \
c8621d
	-DLLVM_BUILD_TOOLS:BOOL=ON \
c8621d
	\
c8621d
	-DLLVM_INCLUDE_TESTS:BOOL=ON \
c8621d
	-DLLVM_BUILD_TESTS:BOOL=ON \
c8621d
	\
c8621d
	-DLLVM_INCLUDE_EXAMPLES:BOOL=ON \
c8621d
	-DLLVM_BUILD_EXAMPLES:BOOL=OFF \
c8621d
	\
c8621d
	-DLLVM_INCLUDE_UTILS:BOOL=ON \
c8621d
%if %{with compat_build}
c8621d
	-DLLVM_INSTALL_UTILS:BOOL=OFF \
c8621d
%else
c8621d
	-DLLVM_INSTALL_UTILS:BOOL=ON \
c8621d
	-DLLVM_UTILS_INSTALL_DIR:PATH=%{_bindir} \
c8621d
	-DLLVM_TOOLS_INSTALL_DIR:PATH=bin \
c8621d
%endif
c8621d
	\
c8621d
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
c8621d
	-DLLVM_BUILD_DOCS:BOOL=ON \
c8621d
	-DLLVM_ENABLE_SPHINX:BOOL=ON \
c8621d
	-DLLVM_ENABLE_DOXYGEN:BOOL=OFF \
c8621d
	\
08f1e7
%if %{without compat_build}
08f1e7
	-DLLVM_VERSION_SUFFIX='' \
08f1e7
%endif
c8621d
	-DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
c8621d
	-DLLVM_DYLIB_EXPORT_ALL:BOOL=ON \
c8621d
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
c8621d
	-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON \
c8621d
	-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF \
c8621d
	\
c8621d
	-DSPHINX_WARNINGS_AS_ERRORS=OFF \
c8621d
	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
c8621d
	-DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \
c8621d
	-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3
c8621d
c8621d
# Build libLLVM.so first.  This ensures that when libLLVM.so is linking, there
c8621d
# are no other compile jobs running.  This will help reduce OOM errors on the
c8621d
# builders without having to artificially limit the number of concurrent jobs.
c8621d
%ninja_build LLVM
c8621d
%ninja_build
c8621d
c8621d
%install
c8621d
%ninja_install -C _build
c8621d
c8621d
c8621d
%if %{without compat_build}
c8621d
mkdir -p %{buildroot}/%{_bindir}
c8621d
mv %{buildroot}/%{_bindir}/llvm-config %{buildroot}/%{_bindir}/llvm-config-%{__isa_bits}
c8621d
1e30ac
# ghost presence
1e30ac
touch %{buildroot}%{_bindir}/llvm-config
1e30ac
c8621d
# Fix some man pages
c8621d
ln -s llvm-config.1 %{buildroot}%{_mandir}/man1/llvm-config-%{__isa_bits}.1
c8621d
mv %{buildroot}%{_mandir}/man1/tblgen.1 %{buildroot}%{_mandir}/man1/llvm-tblgen.1
c8621d
c8621d
# Install binaries needed for lit tests
c8621d
%global test_binaries llvm-isel-fuzzer llvm-opt-fuzzer
c8621d
c8621d
for f in %{test_binaries}
c8621d
do
c8621d
    install -m 0755 ./_build/bin/$f %{buildroot}%{_bindir}
c8621d
done
c8621d
c8621d
# Remove testing of update utility tools
c8621d
rm -rf test/tools/UpdateTestChecks
c8621d
c8621d
%multilib_fix_c_header --file %{_includedir}/llvm/Config/llvm-config.h
c8621d
c8621d
# Install libraries needed for unittests
c8621d
%if 0%{?__isa_bits} == 64
c8621d
%global build_libdir _build/lib64
c8621d
%else
c8621d
%global build_libdir _build/lib
c8621d
%endif
c8621d
c8621d
install %{build_libdir}/libLLVMTestingSupport.a %{buildroot}%{_libdir}
c8621d
c8621d
%global install_srcdir %{buildroot}%{_datadir}/llvm/src
c8621d
%global lit_cfg test/%{_arch}.site.cfg.py
c8621d
%global lit_unit_cfg test/Unit/%{_arch}.site.cfg.py
c8621d
%global lit_fedora_cfg %{_datadir}/llvm/lit.fedora.cfg.py
c8621d
c8621d
# Install gtest sources so clang can use them for gtest
c8621d
install -d %{install_srcdir}
c8621d
install -d %{install_srcdir}/utils/
c8621d
cp -R utils/unittest %{install_srcdir}/utils/
c8621d
08f1e7
# Clang needs these for running lit tests.
08f1e7
cp utils/update_cc_test_checks.py %{install_srcdir}/utils/
08f1e7
cp -R utils/UpdateTestChecks %{install_srcdir}/utils/
08f1e7
08f1e7
# One of the lit tests references this file
08f1e7
install -d %{install_srcdir}/docs/CommandGuide/
08f1e7
install -m 0644 docs/CommandGuide/dsymutil.rst %{install_srcdir}/docs/CommandGuide/
08f1e7
08f1e7
# Generate lit config files.  Strip off the last lines that initiates the
c8621d
# test run, so we can customize the configuration.
08f1e7
head -n -2 _build/test/lit.site.cfg.py >> %{lit_cfg}
08f1e7
head -n -2 _build/test/Unit/lit.site.cfg.py >> %{lit_unit_cfg}
c8621d
c8621d
# Install custom fedora config file
08f1e7
cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg}
c8621d
c8621d
# Patch lit config files to load custom fedora config:
c8621d
for f in %{lit_cfg} %{lit_unit_cfg}; do
c8621d
  echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> $f
c8621d
done
c8621d
c8621d
install -d %{buildroot}%{_libexecdir}/tests/llvm
08f1e7
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/llvm
c8621d
c8621d
# Install lit tests.  We need to put these in a tarball otherwise rpm will complain
c8621d
# about some of the test inputs having the wrong object file format.
c8621d
install -d %{buildroot}%{_datadir}/llvm/
c746b4
c746b4
# The various tar options are there to make sur the archive is the same on 32 and 64 bit arch, i.e.
c746b4
# the archive creation is reproducible. Move arch-specific content out of the tarball
c746b4
mv %{lit_cfg} %{install_srcdir}/%{_arch}.site.cfg.py
c746b4
mv %{lit_unit_cfg} %{install_srcdir}/%{_arch}.Unit.site.cfg.py
c746b4
tar --sort=name --mtime='UTC 2020-01-01' -c test/ | gzip -n > %{install_srcdir}/test.tar.gz
c8621d
c8621d
# Install the unit test binaries
c8621d
mkdir -p %{build_llvm_libdir}
c8621d
cp -R _build/unittests %{build_llvm_libdir}/
c8621d
rm -rf `find %{build_llvm_libdir} -iname 'cmake*'`
c8621d
c8621d
# Install libraries used for testing
c8621d
install -m 0755 %{build_libdir}/BugpointPasses.so %{buildroot}%{_libdir}
c8621d
install -m 0755 %{build_libdir}/LLVMHello.so %{buildroot}%{_libdir}
c8621d
c8621d
# Install test inputs for PDB tests
c8621d
echo "%{_datadir}/llvm/src/unittests/DebugInfo/PDB" > %{build_llvm_libdir}/unittests/DebugInfo/PDB/llvm.srcdir.txt
c8621d
mkdir -p %{buildroot}%{_datadir}/llvm/src/unittests/DebugInfo/PDB/
c8621d
cp -R unittests/DebugInfo/PDB/Inputs %{buildroot}%{_datadir}/llvm/src/unittests/DebugInfo/PDB/
c8621d
08f1e7
%if %{with gold}
08f1e7
# Add symlink to lto plugin in the binutils plugin directory.
08f1e7
%{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
08f1e7
ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/
08f1e7
%endif
08f1e7
c8621d
%else
c8621d
c8621d
# Add version suffix to binaries
c8621d
mkdir -p %{buildroot}/%{_bindir}
c8621d
for f in %{buildroot}/%{install_bindir}/*; do
c8621d
  filename=`basename $f`
c8621d
  ln -s ../../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
c8621d
done
c8621d
c8621d
# Move header files
c8621d
mkdir -p %{buildroot}/%{pkg_includedir}
c8621d
ln -s ../../../%{install_includedir}/llvm %{buildroot}/%{pkg_includedir}/llvm
c8621d
ln -s ../../../%{install_includedir}/llvm-c %{buildroot}/%{pkg_includedir}/llvm-c
c8621d
c8621d
# Fix multi-lib
c8621d
mv %{buildroot}%{_bindir}/llvm-config{%{exec_suffix},%{exec_suffix}-%{__isa_bits}}
c8621d
%multilib_fix_c_header --file %{install_includedir}/llvm/Config/llvm-config.h
c8621d
c8621d
# Create ld.so.conf.d entry
c8621d
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
c8621d
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
c8621d
%{pkg_libdir}
c8621d
EOF
c8621d
c8621d
# Add version suffix to man pages and move them to mandir.
c8621d
mkdir -p %{buildroot}/%{_mandir}/man1
c8621d
for f in %{build_install_prefix}/share/man/man1/*; do
c8621d
  filename=`basename $f | cut -f 1 -d '.'`
c8621d
  mv $f %{buildroot}%{_mandir}/man1/$filename%{exec_suffix}.1
c8621d
done
c8621d
c8621d
# Remove opt-viewer, since this is just a compatibility package.
c8621d
rm -Rf %{build_install_prefix}/share/opt-viewer
c8621d
c8621d
%endif
c8621d
c8621d
c8621d
%check
c8621d
# TODO: Fix test failures on arm
08f1e7
# FIXME: use %%cmake_build instead of %%__ninja
08f1e7
LD_LIBRARY_PATH=%{buildroot}/%{_libdir}  %{__ninja} check-all -C _build || \
c8621d
%ifarch %{arm}
c8621d
  :
c8621d
%else
c8621d
  false
c8621d
%endif
c8621d
c8621d
%ldconfig_scriptlets libs
c8621d
c8621d
%if %{without compat_build}
c8621d
c8621d
%post devel
c8621d
%{_sbindir}/update-alternatives --install %{_bindir}/llvm-config llvm-config %{_bindir}/llvm-config-%{__isa_bits} %{__isa_bits}
c8621d
c8621d
%postun devel
c8621d
if [ $1 -eq 0 ]; then
1e30ac
  %{_sbindir}/update-alternatives --remove llvm-config %{_bindir}/llvm-config-%{__isa_bits}
c8621d
fi
c8621d
c8621d
%endif
c8621d
c8621d
%files
08f1e7
%license LICENSE.TXT
c8621d
%exclude %{_mandir}/man1/llvm-config*
c8621d
%{_mandir}/man1/*
c8621d
%{_bindir}/*
c8621d
c8621d
%if %{without compat_build}
1e30ac
%exclude %{_bindir}/llvm-config
c8621d
%exclude %{_bindir}/llvm-config-%{__isa_bits}
c8621d
%exclude %{_bindir}/not
c8621d
%exclude %{_bindir}/count
c8621d
%exclude %{_bindir}/yaml-bench
c8621d
%exclude %{_bindir}/lli-child-target
c8621d
%exclude %{_bindir}/llvm-isel-fuzzer
c8621d
%exclude %{_bindir}/llvm-opt-fuzzer
c8621d
%{_datadir}/opt-viewer
c8621d
%else
c8621d
%exclude %{pkg_bindir}/llvm-config
c8621d
%{pkg_bindir}
c8621d
%endif
c8621d
c8621d
%files libs
08f1e7
%license LICENSE.TXT
c8621d
%{pkg_libdir}/libLLVM-%{maj_ver}.so
c8621d
%if %{without compat_build}
c8621d
%if %{with gold}
c8621d
%{_libdir}/LLVMgold.so
08f1e7
%{_libdir}/bfd-plugins/LLVMgold.so
c8621d
%endif
c8621d
%{_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so
c8621d
%{_libdir}/libLTO.so*
c8621d
%else
c8621d
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
c8621d
%if %{with gold}
c8621d
%{_libdir}/%{name}/lib/LLVMgold.so
c8621d
%endif
c8621d
%{pkg_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so
c8621d
%{pkg_libdir}/libLTO.so*
c8621d
%exclude %{pkg_libdir}/libLTO.so
c8621d
%endif
c8621d
%{pkg_libdir}/libRemarks.so*
c8621d
c8621d
%files devel
08f1e7
%license LICENSE.TXT
c8621d
%if %{without compat_build}
1e30ac
%ghost %{_bindir}/llvm-config
c8621d
%{_bindir}/llvm-config-%{__isa_bits}
c8621d
%{_mandir}/man1/llvm-config*
c8621d
%{_includedir}/llvm
c8621d
%{_includedir}/llvm-c
c8621d
%{_libdir}/libLLVM.so
c8621d
%{_libdir}/cmake/llvm
c8621d
%exclude %{_libdir}/cmake/llvm/LLVMStaticExports.cmake
c8621d
%exclude %{_libdir}/cmake/llvm/LLVMTestExports.cmake
c8621d
%else
c8621d
%{_bindir}/llvm-config%{exec_suffix}-%{__isa_bits}
c8621d
%{pkg_bindir}/llvm-config
c8621d
%{_mandir}/man1/llvm-config%{exec_suffix}.1.gz
c8621d
%{install_includedir}/llvm
c8621d
%{install_includedir}/llvm-c
c8621d
%{pkg_includedir}/llvm
c8621d
%{pkg_includedir}/llvm-c
c8621d
%{pkg_libdir}/libLTO.so
c8621d
%{pkg_libdir}/libLLVM.so
c8621d
%{pkg_libdir}/cmake/llvm
c8621d
%endif
c8621d
c8621d
%files doc
08f1e7
%license LICENSE.TXT
c8621d
%doc %{_pkgdocdir}/html
c8621d
c8621d
%files static
08f1e7
%license LICENSE.TXT
c8621d
%if %{without compat_build}
c8621d
%{_libdir}/*.a
c8621d
%exclude %{_libdir}/libLLVMTestingSupport.a
c8621d
%{_libdir}/cmake/llvm/LLVMStaticExports.cmake
c8621d
%else
c8621d
%{_libdir}/%{name}/lib/*.a
c8621d
%endif
c8621d
c8621d
%if %{without compat_build}
c8621d
c8621d
%files test
08f1e7
%license LICENSE.TXT
c8621d
%{_libexecdir}/tests/llvm/
c8621d
%{llvm_libdir}/unittests/
c8621d
%{_datadir}/llvm/src/unittests
c8621d
%{_datadir}/llvm/src/test.tar.gz
c746b4
%{_datadir}/llvm/src/%{_arch}.site.cfg.py
c746b4
%{_datadir}/llvm/src/%{_arch}.Unit.site.cfg.py
c8621d
%{_datadir}/llvm/lit.fedora.cfg.py
08f1e7
%{_datadir}/llvm/src/docs/CommandGuide/dsymutil.rst
c8621d
%{_bindir}/not
c8621d
%{_bindir}/count
c8621d
%{_bindir}/yaml-bench
c8621d
%{_bindir}/lli-child-target
c8621d
%{_bindir}/llvm-isel-fuzzer
c8621d
%{_bindir}/llvm-opt-fuzzer
c8621d
%{_libdir}/BugpointPasses.so
c8621d
%{_libdir}/LLVMHello.so
c8621d
%{_libdir}/cmake/llvm/LLVMTestExports.cmake
c8621d
c8621d
%files googletest
08f1e7
%license LICENSE.TXT
c8621d
%{_datadir}/llvm/src/utils
c8621d
%{_libdir}/libLLVMTestingSupport.a
c8621d
c8621d
%endif
c8621d
c8621d
%changelog
158546
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-2
158546
- Remove obsolete patch
158546
158546
* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-1
158546
- 11.0.1 final release
158546
08f1e7
* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-0.6.rc2
08f1e7
- Restore default CI behavior wrt. number of threads
08f1e7
08f1e7
* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.5.rc2
08f1e7
- Fix test case depending on fs capability
08f1e7
08f1e7
* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.4.rc2
08f1e7
- Fix dependency on dsymutil.rst from CI
08f1e7
08f1e7
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.3.rc2
08f1e7
- Fix test file generation
08f1e7
08f1e7
* Wed Sep 23 2020 sguelton@redhat.com - 11.0.0-0.2.rc2
08f1e7
- Remove runtime dep on libedit-devel
08f1e7
08f1e7
* Mon Sep 14 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
08f1e7
- 11.0.1.rc2 Release
08f1e7
1e30ac
* Wed Aug 19 2020 Tom Stellard <tstellar@redhat.com> - 10.0.1-3
1e30ac
- Fix rust crash on ppc64le compiling firefox
1e30ac
1e30ac
* Fri Jul 31 2020 sguelton@redhat.com - 10.0.1-2
1e30ac
- Fix llvm-config alternative handling, see rhbz#1859996
1e30ac
1e30ac
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
1e30ac
- 10.0.1 Release
1e30ac
c746b4
* Wed Jun 24 2020 sguelton@redhat.com - 10.0.0-2
c746b4
- Reproducible build of test.tar.gz, see rhbz#1820319
c746b4
c8621d
* Tue Apr 7 2020 sguelton@redhat.com - 10.0.0-1
c8621d
- 10.0.0 Release
c8621d
c8621d
* Thu Feb 27 2020 Josh Stone <jistone@redhat.com> - 9.0.1-4
c8621d
- Fix a codegen bug for Rust
c8621d
c8621d
* Fri Jan 17 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-3
c8621d
- Add explicit Requires from sub-packages to llvm-libs
c8621d
c8621d
* Fri Jan 10 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
c8621d
- Fix crash with kernel bpf self-tests
c8621d
c8621d
* Thu Dec 19 2019 tstellar@redhat.com - 9.0.1-1
c8621d
- 9.0.1 Release
c8621d
c8621d
* Wed Oct 30 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-5
c8621d
- Remove work-around for threading issue in gold
c8621d
c8621d
* Wed Oct 30 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-4
c8621d
- Build libLLVM.so first to avoid OOM errors
c8621d
c8621d
* Tue Oct 01 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-3
c8621d
- Adjust run-lit-tests script to better match in tree testing
c8621d
c8621d
* Mon Sep 30 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
c8621d
- Limit number of build threads using -l option for ninja
c8621d
c8621d
* Thu Sep 26 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
c8621d
- 9.0.0 Release
c8621d
c8621d
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
c8621d
- 8.0.1 release
c8621d
c8621d
* Tue Jul 2 2019 sguelton@redhat.com - 8.0.1-0.3.rc2
c8621d
- Deactivate multithreading for gold plugin only to fix rhbz#1636479
c8621d
c8621d
* Mon Jun 17 2019 sguelton@redhat.com - 8.0.1-0.2.rc2
c8621d
- Deactivate multithreading instead of patching to fix rhbz#1636479
c8621d
c8621d
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
c8621d
- 8.0.1rc2 Release
c8621d
c8621d
* Tue May 14 2019 sguelton@redhat.com - 8.0.0-3
c8621d
- Disable threading in LTO
c8621d
c8621d
* Wed May 8 2019 sguelton@redhat.com - 8.0.0-2
c8621d
- Fix conflicts between llvm-static = 8 and llvm-dev < 8 around LLVMStaticExports.cmake
c8621d
c8621d
* Thu May 2 2019 sguelton@redhat.com - 8.0.0-1
c8621d
- 8.0.0 Release
c8621d
c8621d
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
c8621d
- 7.0.1 Release
c8621d
c8621d
* Thu Dec 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.5.rc3
c8621d
- Drop compat libs
c8621d
c8621d
* Wed Dec 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.4.rc3
c8621d
- Fix ambiguous python shebangs
c8621d
c8621d
* Tue Dec 11 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.3.rc3
c8621d
- Disable threading in thinLTO
c8621d
c8621d
* Tue Dec 11 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.2.rc3
c8621d
- Update cmake options for compat build
c8621d
c8621d
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
c8621d
- 7.0.1-rc3 Release
c8621d
c8621d
* Fri Dec 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-14
c8621d
- Don't build llvm-test on i686
c8621d
c8621d
* Thu Dec 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-13
c8621d
- Fix build when python2 is not present on system
c8621d
c8621d
* Tue Nov 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-12
c8621d
- Fix multi-lib installation of llvm-devel
c8621d
c8621d
* Tue Oct 23 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-11
c8621d
- Add sub-packages for testing
c8621d
c8621d
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-10
c8621d
- Drop scl macros
c8621d
c8621d
* Tue Aug 28 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-9
c8621d
- Drop libedit dependency
c8621d
c8621d
* Tue Aug 14 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-8
c8621d
- Only enabled valgrind functionality on arches that support it
c8621d
c8621d
* Mon Aug 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-7
c8621d
- BuildRequires: python3-devel
c8621d
c8621d
* Mon Aug 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-6
c8621d
- Backport fixes for rhbz#1610053, rhbz#1562196, rhbz#1595996
c8621d
c8621d
* Mon Aug 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-5
c8621d
- Fix ld.so.conf.d path in files list
c8621d
c8621d
* Sat Aug 04 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-4
c8621d
- Fix ld.so.conf.d path
c8621d
c8621d
* Fri Aug 03 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
c8621d
- Install ld.so.conf so llvm libs are in the library search path
c8621d
c8621d
* Wed Jul 25 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
c8621d
- Re-enable doc package now that BREW-2381 is fixed
c8621d
c8621d
* Tue Jul 10 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
c8621d
- 6.0.1 Release
c8621d
c8621d
* Mon Jun 04 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-13
c8621d
- Limit build jobs on ppc64 to avoid OOM errors
c8621d
c8621d
* Sat Jun 02 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-12
c8621d
- Switch to python3-sphinx
c8621d
c8621d
* Thu May 31 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-11
c8621d
- Remove conditionals to enable building only the llvm-libs package, we don't
c8621d
  needs these for module builds.
c8621d
c8621d
* Wed May 23 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-10
c8621d
- Add BuildRequires: libstdc++-static
c8621d
- Resolves: #1580785
c8621d
c8621d
* Wed Apr 04 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-9
c8621d
- Add conditionals to enable building only the llvm-libs package
c8621d
c8621d
* Tue Apr 03 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-8
c8621d
- Drop BuildRequires: libstdc++-static this package does not exist in RHEL8
c8621d
c8621d
* Tue Mar 20 2018 Tilmann Scheller <tschelle@redhat.com> - 5.0.1-7
c8621d
- Backport fix for rhbz#1558226 from trunk
c8621d
c8621d
* Tue Mar 06 2018 Tilmann Scheller <tschelle@redhat.com> - 5.0.1-6
c8621d
- Backport fix for rhbz#1550469 from trunk
c8621d
c8621d
* Thu Feb 22 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-5
c8621d
- Backport some retpoline fixes
c8621d
c8621d
* Tue Feb 06 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-4
c8621d
- Backport retpoline support
c8621d
c8621d
* Mon Jan 29 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-3
c8621d
- Backport r315279 to fix an issue with rust
c8621d
c8621d
* Mon Jan 15 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
c8621d
- Drop ExculdeArch: ppc64
c8621d
c8621d
* Mon Jan 08 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
c8621d
- 5.0.1 Release
c8621d
c8621d
* Thu Jun 22 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-3
c8621d
- Fix Requires for devel package again.
c8621d
c8621d
* Thu Jun 22 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-2
c8621d
- Fix Requires for llvm-devel
c8621d
c8621d
* Tue Jun 20 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
c8621d
- 4.0.1 Release
c8621d
c8621d
* Mon Jun 05 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-5
c8621d
- Build for llvm-toolset-7 rename
c8621d
c8621d
* Mon May 01 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
c8621d
- Remove multi-lib workarounds
c8621d
c8621d
* Fri Apr 28 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
c8621d
- Fix build with llvm-toolset-4 scl
c8621d
c8621d
* Mon Apr 03 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
c8621d
- Simplify spec with rpm macros.
c8621d
c8621d
* Thu Mar 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
c8621d
- LLVM 4.0.0 Final Release
c8621d
c8621d
* Wed Mar 22 2017 tstellar@redhat.com - 3.9.1-6
c8621d
- Fix %%postun sep for -devel package.
c8621d
c8621d
* Mon Mar 13 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-5
c8621d
- Disable failing tests on ARM.
c8621d
c8621d
* Sun Mar 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.1-4
c8621d
- Fix missing mask on relocation for aarch64 (rhbz 1429050)
c8621d
c8621d
* Wed Mar 01 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-3
c8621d
- revert upstream radeonsi breaking change.
c8621d
c8621d
* Thu Feb 23 2017 Josh Stone <jistone@redhat.com> - 3.9.1-2
c8621d
- disable sphinx warnings-as-errors
c8621d
c8621d
* Fri Feb 10 2017 Orion Poplawski <orion@cora.nwra.com> - 3.9.1-1
c8621d
- llvm 3.9.1
c8621d
c8621d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-8
c8621d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c8621d
c8621d
* Tue Nov 29 2016 Josh Stone <jistone@redhat.com> - 3.9.0-7
c8621d
- Apply backports from rust-lang/llvm#55, #57
c8621d
c8621d
* Tue Nov 01 2016 Dave Airlie 
c8621d
- rebuild for new arches
c8621d
c8621d
* Wed Oct 26 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-5
c8621d
- apply the patch from -4
c8621d
c8621d
* Wed Oct 26 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-4
c8621d
- add fix for lldb out-of-tree build
c8621d
c8621d
* Mon Oct 17 2016 Josh Stone <jistone@redhat.com> - 3.9.0-3
c8621d
- Apply backports from rust-lang/llvm#47, #48, #53, #54
c8621d
c8621d
* Sat Oct 15 2016 Josh Stone <jistone@redhat.com> - 3.9.0-2
c8621d
- Apply an InstCombine backport via rust-lang/llvm#51
c8621d
c8621d
* Wed Sep 07 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
c8621d
- llvm 3.9.0
c8621d
- upstream moved where cmake files are packaged.
c8621d
- upstream dropped CppBackend
c8621d
c8621d
* Wed Jul 13 2016 Adam Jackson <ajax@redhat.com> - 3.8.1-1
c8621d
- llvm 3.8.1
c8621d
- Add mips target
c8621d
- Fix some shared library mispackaging
c8621d
c8621d
* Tue Jun 07 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 3.8.0-2
c8621d
- fix color support detection on terminal
c8621d
c8621d
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
c8621d
- llvm 3.8.0 release
c8621d
c8621d
* Wed Mar 09 2016 Dan Horák <dan[at][danny.cz> 3.8.0-0.3
c8621d
- install back memory consumption workaround for s390
c8621d
c8621d
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
c8621d
- llvm 3.8.0 rc3 release
c8621d
c8621d
* Fri Feb 19 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.1
c8621d
- llvm 3.8.0 rc2 release
c8621d
c8621d
* Tue Feb 16 2016 Dan Horák <dan[at][danny.cz> 3.7.1-7
c8621d
- recognize s390 as SystemZ when configuring build
c8621d
c8621d
* Sat Feb 13 2016 Dave Airlie <airlied@redhat.com> 3.7.1-6
c8621d
- export C++ API for mesa.
c8621d
c8621d
* Sat Feb 13 2016 Dave Airlie <airlied@redhat.com> 3.7.1-5
c8621d
- reintroduce llvm-static, clang needs it currently.
c8621d
c8621d
* Fri Feb 12 2016 Dave Airlie <airlied@redhat.com> 3.7.1-4
c8621d
- jump back to single llvm library, the split libs aren't working very well.
c8621d
c8621d
* Fri Feb 05 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
c8621d
- add missing obsoletes (#1303497)
c8621d
c8621d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
c8621d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c8621d
c8621d
* Thu Jan 07 2016 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.1-1
c8621d
- new upstream release
c8621d
- enable gold linker
c8621d
c8621d
* Wed Nov 04 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
c8621d
- fix Requires for subpackages on the main package
c8621d
c8621d
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
c8621d
- initial version using cmake build system