Blame SPECS/llvm.spec

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