Blame SPECS/llvm.spec

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