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
c8621d
%global llvm_libdir %{_libdir}/%{name}
c8621d
%global build_llvm_libdir %{buildroot}%{llvm_libdir}
c8621d
#%%global rc_ver 6
c8621d
%global baserelease 1
c8621d
%global llvm_srcdir llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src
c8621d
%global maj_ver 10
c8621d
%global min_ver 0
c8621d
%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
c8621d
%if 0%{?rc_ver:1}
c8621d
Source0:	https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{llvm_srcdir}.tar.xz
c8621d
Source3:	https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{llvm_srcdir}.tar.xz.sig
c8621d
%else
c8621d
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{llvm_srcdir}.tar.xz
c8621d
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{llvm_srcdir}.tar.xz.sig
c8621d
%endif
c8621d
%if %{without compat_build}
c8621d
Source1:	run-lit-tests
c8621d
Source2:	lit.fedora.cfg.py
c8621d
%endif
c8621d
Source4:	https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
c8621d
c8621d
##Patch0:		0001-Filter-out-cxxflags-not-supported-by-clang.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
Patch4:		bab5908df544680ada0a3cf431f55aeccfbdb321.patch
c8621d
c8621d
# RHEL-specific patches.
c8621d
Patch101:	0001-Deactivate-markdown-doc.patch
c8621d
# Patches to convert md files to rst since we don't have the md parser in RHEL.
c8621d
#Patch102:	0001-Docs-llvm-strip-Add-help-text-to-llvm-strip-rst-doc.patch
c8621d
#Patch103:	0001-docs-Convert-remaining-command-guide-entries-from-md.patch
c8621d
### Fix crash in kernel bpf self-tests
c8621d
##Patch5: 0001-BPF-Handling-type-conversions-correctly-for-CO-RE.patch
c8621d
##Patch6: 0001-BPF-annotate-DIType-metadata-for-builtin-preseve_arr.patch
c8621d
##
c8621d
### Fix Rust codegen bug, https://github.com/rust-lang/rust/issues/69225
c8621d
##Patch7:	0001-Revert-SCEV-add-no-wrap-flag-for-SCEVAddExpr.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
c8621d
%if !0%{?rhel}
c8621d
BuildRequires:	python3-recommonmark
c8621d
%else
c8621d
BuildRequires:	pandoc
c8621d
%endif
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
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 \
c8621d
	tools/opt-viewer/*.py
c8621d
c8621d
# Convert markdown files to rst to cope with the absence of recommonmark 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
c8621d
# if CAMKE_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
	\
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
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
c8621d
# Generate lit config files.  Strip off the last line that initiates the
c8621d
# test run, so we can customize the configuration.
c8621d
head -n -1 _build/test/lit.site.cfg.py >> %{lit_cfg}
c8621d
head -n -1 _build/test/Unit/lit.site.cfg.py >> %{lit_unit_cfg}
c8621d
c8621d
# Install custom fedora config file
c8621d
cp %{SOURCE2} %{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
c8621d
install -m 0755 %{SOURCE1} %{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/
c8621d
tar -czf %{install_srcdir}/test.tar.gz test/
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
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
c8621d
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
c8621d
  %{_sbindir}/update-alternatives --remove llvm-config %{_bindir}/llvm-config
c8621d
fi
c8621d
c8621d
%endif
c8621d
c8621d
%files
c8621d
%exclude %{_mandir}/man1/llvm-config*
c8621d
%{_mandir}/man1/*
c8621d
%{_bindir}/*
c8621d
c8621d
%if %{without compat_build}
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
c8621d
%{pkg_libdir}/libLLVM-%{maj_ver}.so
c8621d
%if %{without compat_build}
c8621d
%if %{with gold}
c8621d
%{_libdir}/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
c8621d
%if %{without compat_build}
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
c8621d
%doc %{_pkgdocdir}/html
c8621d
c8621d
%files static
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
c8621d
%{_libexecdir}/tests/llvm/
c8621d
%{llvm_libdir}/unittests/
c8621d
%{_datadir}/llvm/src/unittests
c8621d
%{_datadir}/llvm/src/test.tar.gz
c8621d
%{_datadir}/llvm/lit.fedora.cfg.py
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
c8621d
%{_datadir}/llvm/src/utils
c8621d
%{_libdir}/libLLVMTestingSupport.a
c8621d
c8621d
%endif
c8621d
c8621d
%changelog
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