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
f07775
%global _smp_mflags -j8
f07775
fefa20
%global llvm_libdir %{_libdir}/%{name}
fefa20
%global build_llvm_libdir %{buildroot}%{llvm_libdir}
6c366f
#%%global rc_ver 6
f07775
%global baserelease 2
6c366f
%global llvm_srcdir llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src
f07775
%global maj_ver 11
ef93f8
%global min_ver 0
8cfbb4
%global patch_ver 1
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
f07775
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{llvm_srcdir}.tar.xz
f07775
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{llvm_srcdir}.tar.xz.sig
4fb979
%if %{without compat_build}
f07775
Source3:	run-lit-tests
f07775
Source4:	lit.fedora.cfg.py
ef93f8
%endif
ef93f8
f07775
# Fix coreos-installer test crash on s390x (rhbz#1883457), https://reviews.llvm.org/D89034
f07775
Patch1:		0001-SystemZ-Use-LA-instead-of-AGR-in-eliminateFrameIndex.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
8cfbb4
Patch4:		0001-SelectionDAG-Avoid-aliasing-analysis-if-the-object-s.patch
4fb979
4fb979
# RHEL-specific patches.
f07775
Patch101:      0001-Deactivate-markdown-doc.patch
f07775
Patch102:      error-opening-permission.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
f07775
4fb979
%if !0%{?rhel}
f07775
BuildRequires: python3-recommonmark
6c366f
%else
f07775
BuildRequires: pandoc
4fb979
%endif
f07775
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
f07775
# The installed cmake files reference binaries from llvm-test and llvm-static.
f07775
# We tried in the past to split the cmake exports for these binaries out into
f07775
# separate files, so that llvm-devel would not need to Require these packages,
f07775
# but this caused bugs (rhbz#1773678) and forced us to carry two non-upstream
f07775
# patches.
f07775
Requires:	llvm-static%{?_isa} = %{version}-%{release}
f07775
Requires:	llvm-test%{?_isa} = %{version}-%{release}
f07775
f07775
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
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
6c366f
%autosetup -n %{llvm_srcdir} -p2
ef93f8
ef93f8
pathfix.py -i %{__python3} -pn \
ef93f8
	test/BugPoint/compile-custom.ll.py \
f07775
	tools/opt-viewer/*.py \
f07775
	utils/update_cc_test_checks.py
ef93f8
f07775
# Convert markdown files to rst to cope with the absence of compatible md parser in rhel.
6c366f
# The sed expression takes care of a slight difference between pandoc markdown and sphinx markdown.
6c366f
find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pandoc -f markdown -o ${md%.md}.rst  ; done
6c366f
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
f07775
# if CMAKE_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
	\
f07775
%if %{without compat_build}
f07775
	-DLLVM_VERSION_SUFFIX='' \
f07775
%endif
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 \
6c366f
	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
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
6c366f
# ghost presence
6c366f
touch %{buildroot}%{_bindir}/llvm-config
6c366f
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
6c366f
# Remove testing of update utility tools
6c366f
rm -rf test/tools/UpdateTestChecks
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
f07775
# Clang needs these for running lit tests.
f07775
cp utils/update_cc_test_checks.py %{install_srcdir}/utils/
f07775
cp -R utils/UpdateTestChecks %{install_srcdir}/utils/
f07775
f07775
%if %{with gold}
f07775
# Add symlink to lto plugin in the binutils plugin directory.
f07775
%{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
f07775
ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/
f07775
%endif
f07775
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`
6c366f
  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
6c366f
for f in %{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
f07775
# FIXME: use %%cmake_build instead of %%__ninja
f07775
LD_LIBRARY_PATH=%{buildroot}/%{_libdir}  %{__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
6c366f
  %{_sbindir}/update-alternatives --remove llvm-config %{_bindir}/llvm-config-%{__isa_bits}
ef93f8
fi
ef93f8
4fb979
%endif
fefa20
ef93f8
%files
f07775
%license LICENSE.TXT
4fb979
%exclude %{_mandir}/man1/llvm-config*
4fb979
%{_mandir}/man1/*
4fb979
%{_bindir}/*
4fb979
4fb979
%if %{without compat_build}
6c366f
%exclude %{_bindir}/llvm-config
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
f07775
%license LICENSE.TXT
fefa20
%{pkg_libdir}/libLLVM-%{maj_ver}.so
4fb979
%if %{without compat_build}
ef93f8
%if %{with gold}
ef93f8
%{_libdir}/LLVMgold.so
f07775
%{_libdir}/bfd-plugins/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
f07775
%license LICENSE.TXT
4fb979
%if %{without compat_build}
6c366f
%ghost %{_bindir}/llvm-config
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
f07775
%license LICENSE.TXT
fefa20
%doc %{_pkgdocdir}/html
ef93f8
ef93f8
%files static
f07775
%license LICENSE.TXT
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
f07775
%license LICENSE.TXT
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
4fb979
%{_libdir}/cmake/llvm/LLVMTestExports.cmake
ef93f8
ef93f8
%files googletest
f07775
%license LICENSE.TXT
ef93f8
%{_datadir}/llvm/src/utils
ef93f8
%{_libdir}/libLLVMTestingSupport.a
ef93f8
4fb979
%endif
fefa20
ef93f8
%changelog
8cfbb4
* Sat Sep 04 2021 Tom Stellard <tstellar@redhat.com> - 11.0.1-2
8cfbb4
- Backport bpftrace fix
8cfbb4
8cfbb4
* Wed Sep 01 2021 Tom Stellard <tstellar@redhat.com> - 11.0.1-1
8cfbb4
- 11.0.1 Release
8cfbb4
8cfbb4
* Mon Jul 19 2021 Tom Stellard <tstellar@redhat.com> - 11.0.0-3
8cfbb4
- Stop installing lit tests
8cfbb4
f07775
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-2
f07775
- Remove obsolete patch
f07775
f07775
* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-1
f07775
- 11.0.1 final release
f07775
f07775
* Wed Sep 30 2020 sguelton@redhat.com - 11.0.0-0.6.rc2
f07775
- Restore default CI behavior wrt. number of threads
f07775
f07775
* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.5.rc2
f07775
- Fix test case depending on fs capability
f07775
f07775
* Fri Sep 25 2020 sguelton@redhat.com - 11.0.0-0.4.rc2
f07775
- Fix dependency on dsymutil.rst from CI
f07775
f07775
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.3.rc2
f07775
- Fix test file generation
f07775
f07775
* Wed Sep 23 2020 sguelton@redhat.com - 11.0.0-0.2.rc2
f07775
- Remove runtime dep on libedit-devel
f07775
f07775
* Mon Sep 14 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
f07775
- 11.0.1.rc2 Release
f07775
6c366f
* Wed Aug 19 2020 Tom Stellard <tstellar@redhat.com> - 10.0.1-3
6c366f
- Fix rust crash on ppc64le compiling firefox
6c366f
6c366f
* Fri Jul 31 2020 sguelton@redhat.com - 10.0.1-2
6c366f
- Fix llvm-config alternative handling, see rhbz#1859996
6c366f
6c366f
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
6c366f
- 10.0.1 Release
6c366f
6c366f
* Wed Jun 24 2020 sguelton@redhat.com - 10.0.0-2
6c366f
- Reproducible build of test.tar.gz, see rhbz#1820319
6c366f
6c366f
* Tue Apr 7 2020 sguelton@redhat.com - 10.0.0-1
6c366f
- 10.0.0 Release
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