Blame SPECS/clang.spec

900810
%bcond_with compat_build
900810
%bcond_without check
b6490f
900810
%global maj_ver 13
edce02
%global min_ver 0
fb6925
%global patch_ver 1
900810
#global rc_ver 4
900810
%global clang_version %{maj_ver}.%{min_ver}.%{patch_ver}
edce02
edce02
%global clang_tools_binaries \
edce02
	%{_bindir}/clang-apply-replacements \
edce02
	%{_bindir}/clang-change-namespace \
dd1979
	%{_bindir}/clang-check \
b6490f
	%{_bindir}/clang-doc \
dd1979
	%{_bindir}/clang-extdef-mapping \
dd1979
	%{_bindir}/clang-format \
edce02
	%{_bindir}/clang-include-fixer \
dd1979
	%{_bindir}/clang-move \
dd1979
	%{_bindir}/clang-offload-bundler \
dd1979
	%{_bindir}/clang-offload-wrapper \
edce02
	%{_bindir}/clang-query \
edce02
	%{_bindir}/clang-refactor \
edce02
	%{_bindir}/clang-rename \
dd1979
	%{_bindir}/clang-reorder-fields \
900810
	%{_bindir}/clang-repl \
dd1979
	%{_bindir}/clang-scan-deps \
dd1979
	%{_bindir}/clang-tidy \
dd1979
	%{_bindir}/clangd \
dd1979
	%{_bindir}/diagtool \
dd1979
	%{_bindir}/hmaptool \
dd1979
	%{_bindir}/pp-trace
edce02
edce02
%global clang_binaries \
edce02
	%{_bindir}/clang \
edce02
	%{_bindir}/clang++ \
edce02
	%{_bindir}/clang-%{maj_ver} \
735c94
	%{_bindir}/clang++-%{maj_ver} \
edce02
	%{_bindir}/clang-cl \
edce02
	%{_bindir}/clang-cpp \
edce02
900810
%if %{with compat_build}
e3fa52
%global pkg_name clang%{maj_ver}
b6490f
# Install clang to same prefix as llvm, so that apps that use llvm-config
b6490f
# will also be able to find clang libs.
e3fa52
%global install_prefix %{_libdir}/llvm%{maj_ver}
b6490f
%global install_bindir %{install_prefix}/bin
b6490f
%global install_includedir %{install_prefix}/include
b6490f
%global install_libdir %{install_prefix}/lib
b6490f
b6490f
%global pkg_bindir %{install_bindir}
e3fa52
%global pkg_includedir %{install_includedir}
b6490f
%global pkg_libdir %{install_libdir}
b6490f
%else
735c94
%global pkg_name clang
735c94
%global install_prefix /usr
e3fa52
%global pkg_libdir %{_libdir}
b6490f
%endif
735c94
900810
%global build_install_prefix %{buildroot}%{install_prefix}
900810
900810
%ifarch ppc64le aarch64
900810
# Too many threads on some systems causes OOM errors.
900810
%global _smp_mflags -j8
900810
%endif
900810
900810
%global clang_srcdir clang-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
900810
%global clang_tools_srcdir clang-tools-extra-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
900810
900810
%if !%{maj_ver} && 0%{?rc_ver}
900810
%global abi_revision 2
900810
%endif
900810
edce02
%if 0%{?fedora} || 0%{?rhel} > 7
edce02
%bcond_without python3
edce02
%else
edce02
%bcond_with python3
edce02
%endif
edce02
735c94
Name:		%pkg_name
e3fa52
Version:	%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
900810
Release:	1%{?dist}
edce02
Summary:	A C language family front-end for LLVM
edce02
edce02
License:	NCSA
edce02
URL:		http://llvm.org
900810
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz
900810
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig
900810
%if %{without compat_build}
900810
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
900810
Source2:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
735c94
%endif
e3fa52
Source4:	tstellar-gpg-key.asc
900810
%if !0%{?compat_build}
900810
Source5:	macros.%{name}
900810
%endif
735c94
e3fa52
# Patches for clang
e3fa52
Patch0:     0001-PATCH-clang-Reorganize-gtest-integration.patch
e3fa52
Patch1:     0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
e3fa52
Patch2:     0003-PATCH-clang-Don-t-install-static-libraries.patch
900810
Patch3:     0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
900810
Patch4:     0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
900810
Patch5:     0001-PATCH-clang-Fix-scan-build-py-executable-lookup-path.patch
900810
dd1979
e3fa52
# Patches for clang-tools-extra
e3fa52
%if !0%{?compat_build}
e3fa52
%ifarch ix86
e3fa52
Patch201    clangd-tests.patch
e3fa52
%endif
e3fa52
%endif
735c94
75f7d8
Patch202:   0001-Confusable-identifiers-detection.patch
75f7d8
Patch203:   0002-Misleading-bidirectional-detection.patch
75f7d8
Patch204:   0003-Misleading-unicode-identifier-detection-pass.patch
75f7d8
735c94
BuildRequires:	gcc
735c94
BuildRequires:	gcc-c++
edce02
BuildRequires:	cmake
735c94
BuildRequires:	ninja-build
900810
%if %{with compat_build}
e3fa52
BuildRequires:	llvm%{maj_ver}-devel = %{version}
e3fa52
BuildRequires:	llvm%{maj_ver}-static = %{version}
b6490f
%else
edce02
BuildRequires:	llvm-devel = %{version}
735c94
BuildRequires:	llvm-test = %{version}
b6490f
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
b6490f
# is not included in libLLVM.so.
b6490f
BuildRequires:	llvm-static = %{version}
e3fa52
BuildRequires:	llvm-googletest = %{version}
b6490f
%endif
b6490f
edce02
BuildRequires:	libxml2-devel
735c94
BuildRequires:	perl-generators
735c94
BuildRequires:	ncurses-devel
735c94
# According to https://fedoraproject.org/wiki/Packaging:Emacs a package
735c94
# should BuildRequires: emacs if it packages emacs integration files.
735c94
BuildRequires:	emacs
735c94
735c94
# These build dependencies are required for the test suite.
735c94
%if %with python3
735c94
# The testsuite uses /usr/bin/lit which is part of the python3-lit package.
edce02
BuildRequires:	python3-lit
735c94
%endif
735c94
edce02
BuildRequires:	python3-sphinx
edce02
BuildRequires:	libatomic
735c94
735c94
# We need python3-devel for pathfix.py.
735c94
BuildRequires:	python3-devel
edce02
e3fa52
%if ! 0%{?rhel}
e3fa52
# For reproducible pyc file generation
e3fa52
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
e3fa52
BuildRequires: /usr/bin/marshalparser
e3fa52
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
e3fa52
%endif
e3fa52
edce02
# Needed for %%multilib_fix_c_header
735c94
BuildRequires:	multilib-rpm-config
292815
292815
# scan-build uses these perl modules so they need to be installed in order
292815
# to run the tests.
292815
BuildRequires: perl(Digest::MD5)
292815
BuildRequires: perl(File::Copy)
292815
BuildRequires: perl(File::Find)
292815
BuildRequires: perl(File::Path)
292815
BuildRequires: perl(File::Temp)
292815
BuildRequires: perl(FindBin)
292815
BuildRequires: perl(Hash::Util)
292815
BuildRequires: perl(lib)
292815
BuildRequires: perl(Term::ANSIColor)
292815
BuildRequires: perl(Text::ParseWords)
292815
BuildRequires: perl(Sys::Hostname)
edce02
edce02
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
edce02
735c94
# clang requires gcc, clang++ requires libstdc++-devel
735c94
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
735c94
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
735c94
Requires:	libstdc++-devel
735c94
Requires:	gcc-c++
735c94
735c94
Provides:	clang(major) = %{maj_ver}
735c94
dd1979
Conflicts:	compiler-rt < %{version}
dd1979
Conflicts:	compiler-rt > %{version}
dd1979
edce02
%description
edce02
clang: noun
edce02
    1. A loud, resonant, metallic sound.
edce02
    2. The strident call of a crane or goose.
edce02
    3. C-language family front-end toolkit.
edce02
edce02
The goal of the Clang project is to create a new C, C++, Objective C
edce02
and Objective C++ front-end for the LLVM compiler. Its tools are built
edce02
as libraries and designed to be loosely-coupled and extensible.
edce02
e3fa52
Install compiler-rt if you want the Blocks C language extension or to
e3fa52
enable sanitization and profiling options when building, and
e3fa52
libomp-devel to enable -fopenmp.
e3fa52
edce02
%package libs
edce02
Summary: Runtime library for clang
e3fa52
Requires: %{name}-resource-filesystem%{?_isa} = %{version}
735c94
Recommends: compiler-rt%{?_isa} = %{version}
dd1979
# libomp-devel is required, so clang can find the omp.h header when compiling
dd1979
# with -fopenmp.
dd1979
Recommends: libomp-devel%{_isa} = %{version}
735c94
Recommends: libomp%{_isa} = %{version}
edce02
edce02
%description libs
edce02
Runtime library for clang.
edce02
edce02
%package devel
735c94
Summary: Development header files for clang
900810
%if %{without compat_build}
edce02
Requires: %{name}%{?_isa} = %{version}-%{release}
edce02
# The clang CMake files reference tools from clang-tools-extra.
edce02
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
b6490f
Requires: %{name}-libs = %{version}-%{release}
dd1979
%endif
edce02
edce02
%description devel
edce02
Development header files for clang.
edce02
e3fa52
%package resource-filesystem
e3fa52
Summary: Filesystem package that owns the clang resource directory
e3fa52
Provides: %{name}-resource-filesystem(major) = %{maj_ver}
e3fa52
e3fa52
%description resource-filesystem
e3fa52
This package owns the clang resouce directory: $libdir/clang/$version/
e3fa52
900810
%if %{without compat_build}
edce02
%package analyzer
edce02
Summary:	A source code analysis framework
edce02
License:	NCSA and MIT
edce02
BuildArch:	noarch
edce02
Requires:	%{name} = %{version}-%{release}
edce02
edce02
%description analyzer
edce02
The Clang Static Analyzer consists of both a source code analysis
edce02
framework and a standalone tool that finds bugs in C and Objective-C
edce02
programs. The standalone tool is invoked from the command-line, and is
edce02
intended to run in tandem with a build of a project or code base.
edce02
edce02
%package tools-extra
735c94
Summary:	Extra tools for clang
735c94
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
735c94
Requires:	emacs-filesystem
edce02
edce02
%description tools-extra
edce02
A set of extra tools built using Clang's tooling API.
edce02
735c94
# Put git-clang-format in its own package, because it Requires git
edce02
# and we don't want to force users to install all those dependenices if they
edce02
# just want clang.
edce02
%package -n git-clang-format
735c94
Summary:	Integration of clang-format for git
dd1979
Requires:	%{name}-tools-extra = %{version}-%{release}
735c94
Requires:	git
735c94
Requires:	python3
edce02
edce02
%description -n git-clang-format
edce02
clang-format integration for git.
edce02
dd1979
735c94
%package -n python3-clang
735c94
Summary:       Python3 bindings for clang
735c94
Requires:      %{name}-libs%{?_isa} = %{version}-%{release}
735c94
Requires:      python3
735c94
%description -n python3-clang
735c94
%{summary}.
735c94
735c94
b6490f
%endif
edce02
edce02
735c94
%prep
900810
%if %{with compat_build}
e3fa52
%autosetup -n %{clang_srcdir} -p2
b6490f
%else
b6490f
%setup -T -q -b 1 -n %{clang_tools_srcdir}
e3fa52
%autopatch -m200 -p2
b6490f
e3fa52
# failing test case
e3fa52
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
edce02
edce02
pathfix.py -i %{__python3} -pn \
edce02
	clang-tidy/tool/*.py \
b6490f
	clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
edce02
b6490f
%setup -q -n %{clang_srcdir}
e3fa52
%autopatch -M200 -p2
735c94
e3fa52
# failing test case
e3fa52
rm test/CodeGen/profile-filter.c
edce02
edce02
pathfix.py -i %{__python3} -pn \
edce02
	tools/clang-format/*.py \
edce02
	tools/clang-format/git-clang-format \
edce02
	utils/hmaptool/hmaptool \
900810
	tools/scan-view/bin/scan-view \
900810
	tools/scan-build-py/bin/* \
900810
	tools/scan-build-py/libexec/*
b6490f
%endif
edce02
edce02
%build
edce02
e3fa52
# We run the builders out of memory on armv7 and i686 when LTO is enabled
e3fa52
%ifarch %{arm} i686
e3fa52
%define _lto_cflags %{nil}
e3fa52
%else
e3fa52
# This package does not ship any object files or static libraries, so we
e3fa52
# don't need -ffat-lto-objects.
e3fa52
%global _lto_cflags %(echo %{_lto_cflags} | sed 's/-ffat-lto-objects//')
e3fa52
%endif
e3fa52
e3fa52
# lto builds with gcc 11 fail while running the lit tests.
e3fa52
%define _lto_cflags %{nil}
e3fa52
b6490f
%if 0%{?__isa_bits} == 64
b6490f
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
b6490f
%else
b6490f
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
b6490f
%endif
b6490f
e3fa52
mkdir -p %{_vpath_builddir}
e3fa52
cd %{_vpath_builddir}
edce02
b6490f
%ifarch s390 s390x %{arm} %ix86 ppc64le
735c94
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
735c94
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
735c94
%endif
735c94
b6490f
# -DCMAKE_INSTALL_RPATH=";" is a workaround for llvm manually setting the
b6490f
# rpath of libraries and binaries.  llvm will skip the manual setting
b6490f
# if CAMKE_INSTALL_RPATH is set to a value, but cmake interprets this value
b6490f
# as nothing, so it sets the rpath to "" when installing.
735c94
%cmake .. -G Ninja \
735c94
	-DLLVM_PARALLEL_LINK_JOBS=1 \
edce02
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
edce02
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
735c94
	-DPYTHON_EXECUTABLE=%{__python3} \
b6490f
	-DCMAKE_INSTALL_RPATH:BOOL=";" \
b6490f
%ifarch s390 s390x %{arm} %ix86 ppc64le
dd1979
	-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
dd1979
	-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
b6490f
%endif
900810
%if %{with compat_build}
e3fa52
	-DCLANG_BUILD_TOOLS:BOOL=OFF \
900810
	-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver} \
b6490f
	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
b6490f
	-DCLANG_INCLUDE_TESTS:BOOL=OFF \
b6490f
%else
edce02
	-DCLANG_INCLUDE_TESTS:BOOL=ON \
e3fa52
	-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../../%{clang_tools_srcdir} \
edce02
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
edce02
	-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
735c94
%if 0%{?__isa_bits} == 64
735c94
	-DLLVM_LIBDIR_SUFFIX=64 \
735c94
%else
735c94
	-DLLVM_LIBDIR_SUFFIX= \
735c94
%endif
b6490f
%endif
edce02
	\
900810
%if %{with compat_build}
e3fa52
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver} \
b6490f
%else
e3fa52
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
b6490f
%endif
edce02
	-DCLANG_ENABLE_ARCMT:BOOL=ON \
edce02
	-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
edce02
	-DCLANG_INCLUDE_DOCS:BOOL=ON \
edce02
	-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
edce02
	-DENABLE_LINKER_BUILD_ID:BOOL=ON \
edce02
	-DLLVM_ENABLE_EH=ON \
edce02
	-DLLVM_ENABLE_RTTI=ON \
edce02
	-DLLVM_BUILD_DOCS=ON \
900810
	-DLLVM_ENABLE_NEW_PASS_MANAGER=ON \
edce02
	-DLLVM_ENABLE_SPHINX=ON \
dd1979
	-DCLANG_LINK_CLANG_DYLIB=ON \
900810
	%{?abi_revision:-DLLVM_ABI_REVISION=%{abi_revision}} \
edce02
	-DSPHINX_WARNINGS_AS_ERRORS=OFF \
edce02
	\
edce02
	-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
dd1979
	-DBUILD_SHARED_LIBS=OFF \
e3fa52
	-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
e3fa52
	-DCLANG_DEFAULT_UNWINDLIB=libgcc
edce02
e3fa52
%cmake_build
edce02
edce02
%install
e3fa52
e3fa52
pushd %{_vpath_builddir}
e3fa52
%cmake_install
e3fa52
popd
735c94
900810
%if %{with compat_build}
b6490f
b6490f
# Remove binaries/other files
b6490f
rm -Rf %{buildroot}%{install_bindir}
b6490f
rm -Rf %{buildroot}%{install_prefix}/share
b6490f
rm -Rf %{buildroot}%{install_prefix}/libexec
b6490f
b6490f
%else
735c94
900810
# File in the macros file for other packages to use.  We are not doing this
900810
# in the compat package, because the version macros would # conflict with
900810
# eachother if both clang and the clang compat package were installed together.
900810
install -p -m0644 -D %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name}
900810
sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \
900810
       -e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \
900810
       -e "s|@@CLANG_PATCH_VERSION@@|%{patch_ver}|" \
900810
       %{buildroot}%{_rpmmacrodir}/macros.%{name}
900810
735c94
# install clang python bindings
735c94
mkdir -p %{buildroot}%{python3_sitelib}/clang/
735c94
install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
735c94
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
edce02
900810
# install scanbuild-py to python sitelib.
900810
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
900810
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild}
900810
edce02
# multilib fix
edce02
%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h
edce02
735c94
# Move emacs integration files to the correct directory
735c94
mkdir -p %{buildroot}%{_emacs_sitestartdir}
735c94
for f in clang-format.el clang-rename.el clang-include-fixer.el; do
735c94
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f
735c94
done
735c94
edce02
# remove editor integrations (bbedit, sublime, emacs, vim)
edce02
rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript
edce02
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
735c94
735c94
# TODO: Package html docs
e3fa52
rm -Rvf %{buildroot}%{_docdir}/clang/html
e3fa52
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
e3fa52
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
735c94
735c94
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
edce02
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
735c94
735c94
# Create Manpage symlinks
735c94
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++.1.gz
735c94
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang-%{maj_ver}.1.gz
735c94
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++-%{maj_ver}.1.gz
735c94
b6490f
# Add clang++-{version} symlink
735c94
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
735c94
735c94
735c94
# Fix permission
735c94
chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
735c94
292815
# create a link to clang's resource directory that is "constant" across minor
292815
# version bumps
292815
# this is required for packages like ccls that hardcode the link to clang's
292815
# resource directory to not require rebuilds on minor version bumps
292815
# Fix for bugs like rhbz#1807574
292815
pushd %{buildroot}%{_libdir}/clang/
292815
ln -s %{version} %{maj_ver}
292815
popd
292815
900810
%endif
900810
e3fa52
# Create sub-directories in the clang resource directory that will be
e3fa52
# populated by other packages
900810
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
e3fa52
edce02
292815
# Remove clang-tidy headers.  We don't ship the libraries for these.
292815
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
292815
900810
%if %{without compat_build}
e3fa52
# Add a symlink in /usr/bin to clang-format-diff
e3fa52
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
900810
%endif
e3fa52
edce02
%check
e3fa52
cd %{_vpath_builddir}
e3fa52
900810
%if %{without compat_build}
900810
%if %{with check}
735c94
# requires lit.py from LLVM utilities
e3fa52
# FIXME: Fix failing ARM tests
e3fa52
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
900810
%endif
e3fa52
%ifarch %{arm}
b6490f
:
b6490f
%else
e3fa52
false
Pablo Greco 572d10
%endif
edce02
b6490f
%endif
735c94
edce02
900810
%if %{without compat_build}
edce02
%files
292815
%license LICENSE.TXT
edce02
%{clang_binaries}
edce02
%{_mandir}/man1/clang.1.gz
735c94
%{_mandir}/man1/clang++.1.gz
735c94
%{_mandir}/man1/clang-%{maj_ver}.1.gz
735c94
%{_mandir}/man1/clang++-%{maj_ver}.1.gz
b6490f
%endif
edce02
735c94
%files libs
900810
%if %{without compat_build}
735c94
%{_libdir}/clang/
735c94
%{_libdir}/*.so.*
b6490f
%else
b6490f
%{pkg_libdir}/*.so.*
b6490f
%{pkg_libdir}/clang/%{version}
b6490f
%endif
edce02
edce02
%files devel
900810
%if %{without compat_build}
735c94
%{_libdir}/*.so
edce02
%{_includedir}/clang/
edce02
%{_includedir}/clang-c/
735c94
%{_libdir}/cmake/*
edce02
%dir %{_datadir}/clang/
900810
%{_rpmmacrodir}/macros.%{name}
b6490f
%else
b6490f
%{pkg_libdir}/*.so
b6490f
%{pkg_includedir}/clang/
b6490f
%{pkg_includedir}/clang-c/
b6490f
%{pkg_libdir}/cmake/
b6490f
%endif
edce02
e3fa52
%files resource-filesystem
e3fa52
%dir %{pkg_libdir}/clang/%{version}/
e3fa52
%dir %{pkg_libdir}/clang/%{version}/include/
e3fa52
%dir %{pkg_libdir}/clang/%{version}/lib/
e3fa52
%dir %{pkg_libdir}/clang/%{version}/share/
900810
%if %{without compat_build}
e3fa52
%{pkg_libdir}/clang/%{maj_ver}
e3fa52
%endif
e3fa52
900810
%if %{without compat_build}
edce02
%files analyzer
edce02
%{_bindir}/scan-view
edce02
%{_bindir}/scan-build
900810
%{_bindir}/analyze-build
900810
%{_bindir}/intercept-build
900810
%{_bindir}/scan-build-py
edce02
%{_libexecdir}/ccc-analyzer
edce02
%{_libexecdir}/c++-analyzer
900810
%{_libexecdir}/analyze-c++
900810
%{_libexecdir}/analyze-cc
900810
%{_libexecdir}/intercept-c++
900810
%{_libexecdir}/intercept-cc
edce02
%{_datadir}/scan-view/
edce02
%{_datadir}/scan-build/
edce02
%{_mandir}/man1/scan-build.1.*
900810
%{python3_sitelib}/libear
900810
%{python3_sitelib}/libscanbuild
edce02
edce02
%files tools-extra
edce02
%{clang_tools_binaries}
dd1979
%{_bindir}/c-index-test
edce02
%{_bindir}/find-all-symbols
edce02
%{_bindir}/modularize
e3fa52
%{_bindir}/clang-format-diff
dd1979
%{_mandir}/man1/diagtool.1.gz
dd1979
%{_emacs_sitestartdir}/clang-format.el
735c94
%{_emacs_sitestartdir}/clang-rename.el
735c94
%{_emacs_sitestartdir}/clang-include-fixer.el
dd1979
%{_datadir}/clang/clang-format.py*
dd1979
%{_datadir}/clang/clang-format-diff.py*
735c94
%{_datadir}/clang/clang-include-fixer.py*
735c94
%{_datadir}/clang/clang-tidy-diff.py*
900810
%{_bindir}/run-clang-tidy
735c94
%{_datadir}/clang/run-find-all-symbols.py*
735c94
%{_datadir}/clang/clang-rename.py*
edce02
edce02
%files -n git-clang-format
edce02
%{_bindir}/git-clang-format
edce02
735c94
%files -n python3-clang
735c94
%{python3_sitelib}/clang/
735c94
292815
b6490f
%endif
edce02
%changelog
900810
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
900810
- 13.0.1 Release
900810
900810
* Fri Jan 21 2022 Serge Guelton - 13.0.0-3
900810
- Backport bidi patches
75f7d8
900810
* Fri Oct 22 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-2
900810
- Don't emit unwind tables for bpf
75f7d8
900810
* Fri Oct 15 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
900810
- 13.0.0 Release
e3fa52
e3fa52
* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
e3fa52
- 12.0.1 release
e3fa52
e3fa52
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
e3fa52
- 12.0.0 release
fb6925
292815
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
292815
- 11.0.0 final release
292815
292815
* Thu Sep 17 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
292815
- 11.0.0-rc2 Release
292815
dd1979
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
dd1979
- 10.0.1 release
dd1979
dd1979
* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1
dd1979
- 10.0.0 final
dd1979
b6490f
* Fri Jan 10 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
b6490f
- Fix crash with kernel bpf self-tests
b6490f
b6490f
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
b6490f
- 9.0.1 Release
b6490f
b6490f
* Fri Nov 15 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-5
b6490f
- Fix typo from previous patch: move clang-libs dep to correct sub-package
b6490f
b6490f
* Thu Nov 14 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-4
b6490f
- Add explicit requires for clang-libs to fix rpmdiff errors
b6490f
b6490f
* Wed Oct 02 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-3
b6490f
- Limit build to 8 threads to avoid OOM on x86_64
b6490f
b6490f
* Wed Oct 02 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
b6490f
- Disable CLANG_LINK_CLANG_DYLIB
b6490f
b6490f
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
b6490f
- 9.0.0 Release
b6490f
735c94
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
735c94
- 8.0.1 Release
735c94
735c94
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
735c94
- 8.0.1rc2 Release
735c94
735c94
* Thu Apr 11 2019 sguelton@redhat.com - 8.0.0-1
735c94
- 8.0.0 Release
735c94
edce02
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
edce02
- 7.0.1-1 Release
edce02
edce02
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
edce02
- 7.0.1-rc3 Release
edce02
edce02
* Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-12
edce02
- User helper macro to fixup config.h for multilib
edce02
edce02
* Sat Oct 27 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-11
edce02
- Enable make check
edce02
edce02
* Mon Oct 15 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-10
edce02
- Remove Provides: llvm-toolset-6.0-clang-libs
edce02
edce02
* Fri Oct 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-9
edce02
- Add Provides: llvm-toolset-6.0-clang-libs
edce02
edce02
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-8
edce02
- Don't use python2 for the build
edce02
edce02
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-7
edce02
- Drop scl macros
edce02
edce02
* Tue Sep 25 2018 Tomas Orsava <torsava@redhat.com> - 6.0.1-6
edce02
- Change Requires from python3 to platform-python
edce02
- The python3 package was renamed to platform-python
edce02
- Related: rhbz#1619153
edce02
edce02
* Fri Sep 14 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-5
edce02
- Use python3 for git-clang-format
edce02
edce02
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-4
edce02
- Fix python dependencies
edce02
edce02
* Tue Aug 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
edce02
- Install ld.so.conf file in the root filesystem
edce02
edce02
* Thu Aug 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
edce02
- Remove annobin work-around
edce02
edce02
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
edce02
- 6.0.1 Release
edce02
edce02
* Wed Apr 11 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-7
edce02
- Add conditionals to enable building only the clang-libs package
edce02
edce02
* Fri Apr 06 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-6
edce02
- Use cmake from base RHEL
edce02
edce02
* Mon Mar 19 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-5
edce02
- Backport r310435 from clang trunk. rhbz#1558223
edce02
edce02
* Mon Mar 19 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-4
edce02
- Use system gcc instead of dts.
edce02
edce02
* Tue Feb 06 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-3
edce02
- Backport retpoline support
edce02
edce02
* Sat Jan 20 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
edce02
- Limit number of build threads on ppc64le to avoid OOM errors
edce02
edce02
* Tue Jan 09 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
edce02
- 5.0.1 Release
edce02
edce02
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
edce02
- 4.0.1 Release.
edce02
edce02
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-15
edce02
- Fix Requires for clang-tools-extra
edce02
edce02
* Wed Jun 21 2017 Tom Stellard 
edce02
- Fix Requires for clang-tools-extra
edce02
edce02
* Tue Jun 20 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-13
edce02
- Drop libomp dependency on s390x
edce02
edce02
* Thu Jun 15 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-12
edce02
- Use libstdc++ from devtoolset-7
edce02
edce02
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-11
edce02
- Fix libomp requires
edce02
edce02
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-10
edce02
- Build for llvm-toolset-7 rename
edce02
edce02
* Tue May 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-9
edce02
- Use ld from devtoolset in clang toolchain
edce02
edce02
* Mon May 29 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-8
edce02
- Add dependency on libopenmp
edce02
edce02
* Thu May 25 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-7
edce02
- Fix check for gcc install
edce02
edce02
* Wed May 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-6
edce02
- Add devtoolset-6 dependency for newer libstdc++
edce02
edce02
* Fri May 12 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-5
edce02
- Add dependency on compiler-rt
edce02
edce02
* Tue May 02 2017 Tom Stellard <tstellar@redhat.com>
edce02
- Fix dependencies with scl
edce02
edce02
* Mon May 01 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
edce02
- Build with llvm-toolset-4
edce02
edce02
* Mon Mar 27 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
edce02
- Enable eh/rtti, which are required by lldb.
edce02
edce02
* Fri Mar 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
edce02
- Fix clang-tools-extra build
edce02
- Fix install
edce02
edce02
* Thu Mar 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
edce02
- clang 4.0.0 final release
edce02
edce02
* Mon Mar 20 2017 David Goerger <david.goerger@yale.edu> - 3.9.1-3
edce02
- add clang-tools-extra rhbz#1328091
edce02
edce02
* Thu Mar 16 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-2
edce02
- Enable build-id by default rhbz#1432403
edce02
edce02
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
edce02
- clang 3.9.1 final release
edce02
edce02
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
edce02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
edce02
edce02
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.9.0-3
edce02
- Add Requires: compiler-rt to clang-libs.
edce02
- Without this, compiling with certain CFLAGS breaks.
edce02
edce02
* Tue Nov  1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.0-2
edce02
- Rebuild for new arches
edce02
edce02
* Fri Oct 14 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
edce02
- clang 3.9.0 final release
edce02
edce02
* Fri Jul 01 2016 Stephan Bergmann <sbergman@redhat.com> - 3.8.0-2
edce02
- Resolves: rhbz#1282645 add GCC abi_tag support
edce02
edce02
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
edce02
- clang 3.8.0 final release
edce02
edce02
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.4
edce02
- clang 3.8.0rc3
edce02
edce02
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.3
edce02
- package all libs into clang-libs.
edce02
edce02
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
edce02
- enable dynamic linking of clang against llvm
edce02
edce02
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
edce02
- clang 3.8.0rc2
edce02
edce02
* Fri Feb 12 2016 Dave Airlie <airlied@redhat.com> 3.7.1-4
edce02
- rebuild against latest llvm packages
edce02
- add BuildRequires llvm-static
edce02
edce02
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3
edce02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
edce02
edce02
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-2
edce02
- just accept clang includes moving to /usr/lib64, upstream don't let much else happen
edce02
edce02
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-1
edce02
- initial build in Fedora.
edce02
edce02
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
edce02
- initial version using cmake build system