Blame SPECS/clang.spec

dca0b3
%bcond_with compat_build
dca0b3
%bcond_without check
dca0b3
dca0b3
%global maj_ver 13
dca0b3
%global min_ver 0
dca0b3
%global patch_ver 1
dca0b3
#global rc_ver 4
dca0b3
%global clang_version %{maj_ver}.%{min_ver}.%{patch_ver}
dca0b3
dca0b3
%global clang_tools_binaries \
dca0b3
	%{_bindir}/clang-apply-replacements \
dca0b3
	%{_bindir}/clang-change-namespace \
dca0b3
	%{_bindir}/clang-check \
dca0b3
	%{_bindir}/clang-doc \
dca0b3
	%{_bindir}/clang-extdef-mapping \
dca0b3
	%{_bindir}/clang-format \
dca0b3
	%{_bindir}/clang-include-fixer \
dca0b3
	%{_bindir}/clang-move \
dca0b3
	%{_bindir}/clang-offload-bundler \
dca0b3
	%{_bindir}/clang-offload-wrapper \
dca0b3
	%{_bindir}/clang-query \
dca0b3
	%{_bindir}/clang-refactor \
dca0b3
	%{_bindir}/clang-rename \
dca0b3
	%{_bindir}/clang-reorder-fields \
dca0b3
	%{_bindir}/clang-repl \
dca0b3
	%{_bindir}/clang-scan-deps \
dca0b3
	%{_bindir}/clang-tidy \
dca0b3
	%{_bindir}/clangd \
dca0b3
	%{_bindir}/diagtool \
dca0b3
	%{_bindir}/hmaptool \
dca0b3
	%{_bindir}/pp-trace
dca0b3
dca0b3
%global clang_binaries \
dca0b3
	%{_bindir}/clang \
dca0b3
	%{_bindir}/clang++ \
dca0b3
	%{_bindir}/clang-%{maj_ver} \
dca0b3
	%{_bindir}/clang++-%{maj_ver} \
dca0b3
	%{_bindir}/clang-cl \
dca0b3
	%{_bindir}/clang-cpp \
dca0b3
dca0b3
%if %{with compat_build}
dca0b3
%global pkg_name clang%{maj_ver}
dca0b3
# Install clang to same prefix as llvm, so that apps that use llvm-config
dca0b3
# will also be able to find clang libs.
dca0b3
%global install_prefix %{_libdir}/llvm%{maj_ver}
dca0b3
%global install_bindir %{install_prefix}/bin
dca0b3
%global install_includedir %{install_prefix}/include
dca0b3
%global install_libdir %{install_prefix}/lib
dca0b3
dca0b3
%global pkg_bindir %{install_bindir}
dca0b3
%global pkg_includedir %{install_includedir}
dca0b3
%global pkg_libdir %{install_libdir}
dca0b3
%else
dca0b3
%global pkg_name clang
dca0b3
%global install_prefix /usr
dca0b3
%global pkg_libdir %{_libdir}
dca0b3
%endif
dca0b3
dca0b3
%if 0%{?fedora} || 0%{?rhel} > 7
dca0b3
%bcond_without python3
dca0b3
%else
dca0b3
%bcond_with python3
dca0b3
%endif
dca0b3
dca0b3
%bcond_with bundle_compat_lib
dca0b3
dca0b3
%if %{with bundle_compat_lib}
dca0b3
%global compat_maj_ver 12
dca0b3
%global compat_ver %{compat_maj_ver}.0.1
dca0b3
%endif
dca0b3
dca0b3
dca0b3
%global build_install_prefix %{buildroot}%{install_prefix}
dca0b3
dca0b3
%ifarch ppc64le aarch64
dca0b3
# Too many threads on ppc64 systems causes OOM errors.
dca0b3
%global _smp_mflags -j8
dca0b3
%endif
dca0b3
dca0b3
%global clang_srcdir clang-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
dca0b3
%global clang_tools_srcdir clang-tools-extra-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
dca0b3
dca0b3
%if !%{maj_ver} && 0%{?rc_ver}
dca0b3
%global abi_revision 2
dca0b3
%endif
dca0b3
dca0b3
Name:		%pkg_name
dca0b3
Version:	%{clang_version}%{?rc_ver:~rc%{rc_ver}}
dca0b3
Release:	1%{?dist}
dca0b3
Summary:	A C language family front-end for LLVM
dca0b3
dca0b3
License:	NCSA
dca0b3
URL:		http://llvm.org
dca0b3
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz
dca0b3
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig
dca0b3
%if %{without compat_build}
dca0b3
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
dca0b3
Source2:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
dca0b3
%endif
dca0b3
Source4:	tstellar-gpg-key.asc
dca0b3
%if %{with bundle_compat_lib}
dca0b3
Source5:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{compat_ver}/clang-%{compat_ver}.src.tar.xz
dca0b3
Source6:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{compat_ver}/llvm-%{compat_ver}.src.tar.xz
dca0b3
%endif
dca0b3
%if !0%{with compat_build}
dca0b3
Source7:	macros.%{name}
dca0b3
%endif
dca0b3
dca0b3
# Patches for clang
dca0b3
Patch0:     0001-PATCH-clang-Reorganize-gtest-integration.patch
dca0b3
Patch1:     0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
dca0b3
Patch2:     0003-PATCH-clang-Don-t-install-static-libraries.patch
dca0b3
Patch3:     0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
dca0b3
Patch4:     0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
dca0b3
Patch5:     0001-PATCH-clang-Fix-scan-build-py-executable-lookup-path.patch
dca0b3
dca0b3
# Patches for clang-tools
dca0b3
Patch201:   0001-Confusable-identifiers-detection.patch
dca0b3
Patch202:   0002-Misleading-bidirectional-detection.patch
dca0b3
Patch203:   0003-Misleading-unicode-identifier-detection-pass.patch
dca0b3
dca0b3
BuildRequires:	gcc
dca0b3
BuildRequires:	gcc-c++
dca0b3
BuildRequires:	cmake
dca0b3
BuildRequires:	ninja-build
dca0b3
%if %{with compat_build}
dca0b3
BuildRequires:	llvm%{maj_ver}-devel = %{version}
dca0b3
BuildRequires:	llvm%{maj_ver}-static = %{version}
dca0b3
%else
dca0b3
BuildRequires:	llvm-devel = %{version}
dca0b3
BuildRequires:	llvm-test = %{version}
dca0b3
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
dca0b3
# is not included in libLLVM.so.
dca0b3
BuildRequires:	llvm-static = %{version}
dca0b3
BuildRequires:	llvm-googletest = %{version}
dca0b3
%endif
dca0b3
dca0b3
BuildRequires:	libxml2-devel
dca0b3
BuildRequires:	perl-generators
dca0b3
BuildRequires:	ncurses-devel
dca0b3
# According to https://fedoraproject.org/wiki/Packaging:Emacs a package
dca0b3
# should BuildRequires: emacs if it packages emacs integration files.
dca0b3
BuildRequires:	emacs
dca0b3
dca0b3
# The testsuite uses /usr/bin/lit which is part of the python3-lit package.
dca0b3
BuildRequires:	python3-lit
dca0b3
dca0b3
BuildRequires:	python3-sphinx
dca0b3
BuildRequires:	libatomic
dca0b3
dca0b3
# We need python3-devel for pathfix.py.
dca0b3
BuildRequires:	python3-devel
dca0b3
dca0b3
# For reproducible pyc file generation
dca0b3
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
dca0b3
%if 0%{?fedora}
dca0b3
BuildRequires: /usr/bin/marshalparser
dca0b3
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
dca0b3
%endif
dca0b3
dca0b3
# Needed for %%multilib_fix_c_header
dca0b3
BuildRequires:	multilib-rpm-config
dca0b3
dca0b3
# For origin certification
dca0b3
BuildRequires:	gnupg2
dca0b3
dca0b3
# scan-build uses these perl modules so they need to be installed in order
dca0b3
# to run the tests.
dca0b3
BuildRequires: perl(Digest::MD5)
dca0b3
BuildRequires: perl(File::Copy)
dca0b3
BuildRequires: perl(File::Find)
dca0b3
BuildRequires: perl(File::Path)
dca0b3
BuildRequires: perl(File::Temp)
dca0b3
BuildRequires: perl(FindBin)
dca0b3
BuildRequires: perl(Hash::Util)
dca0b3
BuildRequires: perl(lib)
dca0b3
BuildRequires: perl(Term::ANSIColor)
dca0b3
BuildRequires: perl(Text::ParseWords)
dca0b3
BuildRequires: perl(Sys::Hostname)
dca0b3
dca0b3
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
dca0b3
dca0b3
# clang requires gcc, clang++ requires libstdc++-devel
dca0b3
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
dca0b3
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
dca0b3
Requires:	libstdc++-devel
dca0b3
Requires:	gcc-c++
dca0b3
dca0b3
Provides:	clang(major) = %{maj_ver}
dca0b3
dca0b3
Conflicts:	compiler-rt < %{version}
dca0b3
Conflicts:	compiler-rt > %{version}
dca0b3
dca0b3
%description
dca0b3
clang: noun
dca0b3
    1. A loud, resonant, metallic sound.
dca0b3
    2. The strident call of a crane or goose.
dca0b3
    3. C-language family front-end toolkit.
dca0b3
dca0b3
The goal of the Clang project is to create a new C, C++, Objective C
dca0b3
and Objective C++ front-end for the LLVM compiler. Its tools are built
dca0b3
as libraries and designed to be loosely-coupled and extensible.
dca0b3
dca0b3
Install compiler-rt if you want the Blocks C language extension or to
dca0b3
enable sanitization and profiling options when building, and
dca0b3
libomp-devel to enable -fopenmp.
dca0b3
dca0b3
%package libs
dca0b3
Summary: Runtime library for clang
dca0b3
Requires: %{name}-resource-filesystem%{?_isa} = %{version}
dca0b3
Recommends: compiler-rt%{?_isa} = %{version}
dca0b3
# libomp-devel is required, so clang can find the omp.h header when compiling
dca0b3
# with -fopenmp.
dca0b3
Recommends: libomp-devel%{_isa} = %{version}
dca0b3
Recommends: libomp%{_isa} = %{version}
dca0b3
dca0b3
%description libs
dca0b3
Runtime library for clang.
dca0b3
dca0b3
%package devel
dca0b3
Summary: Development header files for clang
dca0b3
%if %{without compat_build}
dca0b3
Requires: %{name}%{?_isa} = %{version}-%{release}
dca0b3
# The clang CMake files reference tools from clang-tools-extra.
dca0b3
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
dca0b3
Requires: %{name}-libs = %{version}-%{release}
dca0b3
%endif
dca0b3
dca0b3
%description devel
dca0b3
Development header files for clang.
dca0b3
dca0b3
%package resource-filesystem
dca0b3
Summary: Filesystem package that owns the clang resource directory
dca0b3
Provides: %{name}-resource-filesystem(major) = %{maj_ver}
dca0b3
dca0b3
%description resource-filesystem
dca0b3
This package owns the clang resouce directory: $libdir/clang/$version/
dca0b3
dca0b3
%if %{without compat_build}
dca0b3
%package analyzer
dca0b3
Summary:	A source code analysis framework
dca0b3
License:	NCSA and MIT
dca0b3
BuildArch:	noarch
dca0b3
Requires:	%{name} = %{version}-%{release}
dca0b3
dca0b3
%description analyzer
dca0b3
The Clang Static Analyzer consists of both a source code analysis
dca0b3
framework and a standalone tool that finds bugs in C and Objective-C
dca0b3
programs. The standalone tool is invoked from the command-line, and is
dca0b3
intended to run in tandem with a build of a project or code base.
dca0b3
dca0b3
%package tools-extra
dca0b3
Summary:	Extra tools for clang
dca0b3
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
dca0b3
Requires:	emacs-filesystem
dca0b3
dca0b3
%description tools-extra
dca0b3
A set of extra tools built using Clang's tooling API.
dca0b3
dca0b3
# Put git-clang-format in its own package, because it Requires git
dca0b3
# and we don't want to force users to install all those dependenices if they
dca0b3
# just want clang.
dca0b3
%package -n git-clang-format
dca0b3
Summary:	Integration of clang-format for git
dca0b3
Requires:	%{name}-tools-extra = %{version}-%{release}
dca0b3
Requires:	git
dca0b3
Requires:	python3
dca0b3
dca0b3
%description -n git-clang-format
dca0b3
clang-format integration for git.
dca0b3
dca0b3
dca0b3
%package -n python3-clang
dca0b3
Summary:       Python3 bindings for clang
dca0b3
Requires:      %{name}-libs%{?_isa} = %{version}-%{release}
dca0b3
Requires:      python3
dca0b3
%description -n python3-clang
dca0b3
%{summary}.
dca0b3
dca0b3
dca0b3
%endif
dca0b3
dca0b3
dca0b3
%prep
dca0b3
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}'
dca0b3
dca0b3
%if %{with bundle_compat_lib}
dca0b3
%setup -T -q -b 5 -n clang-%{compat_ver}.src
dca0b3
%setup -T -q -b 6 -n llvm-%{compat_ver}.src
dca0b3
%endif
dca0b3
dca0b3
%if %{with compat_build}
dca0b3
%autosetup -n %{clang_srcdir} -p2
dca0b3
%else
dca0b3
dca0b3
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}'
dca0b3
%setup -T -q -b 1 -n %{clang_tools_srcdir}
dca0b3
%autopatch -m200 -p2
dca0b3
dca0b3
# failing test case
dca0b3
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
dca0b3
dca0b3
pathfix.py -i %{__python3} -pn \
dca0b3
	clang-tidy/tool/*.py \
dca0b3
	clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
dca0b3
dca0b3
%setup -q -n %{clang_srcdir}
dca0b3
%autopatch -M200 -p2
dca0b3
dca0b3
# failing test case
dca0b3
rm test/CodeGen/profile-filter.c
dca0b3
dca0b3
pathfix.py -i %{__python3} -pn \
dca0b3
	tools/clang-format/*.py \
dca0b3
	tools/clang-format/git-clang-format \
dca0b3
	utils/hmaptool/hmaptool \
dca0b3
	tools/scan-view/bin/scan-view \
dca0b3
	tools/scan-view/share/Reporter.py \
dca0b3
	tools/scan-view/share/startfile.py \
dca0b3
	tools/scan-build-py/bin/* \
dca0b3
	tools/scan-build-py/libexec/*
dca0b3
%endif
dca0b3
dca0b3
%build
dca0b3
dca0b3
# We run the builders out of memory on armv7 and i686 when LTO is enabled
dca0b3
%ifarch %{arm} i686
dca0b3
%define _lto_cflags %{nil}
dca0b3
%else
dca0b3
# This package does not ship any object files or static libraries, so we
dca0b3
# don't need -ffat-lto-objects.
dca0b3
%global _lto_cflags %(echo %{_lto_cflags} | sed 's/-ffat-lto-objects//')
dca0b3
%endif
dca0b3
dca0b3
# lto builds with gcc 11 fail while running the lit tests.
dca0b3
%define _lto_cflags %{nil}
dca0b3
dca0b3
%if 0%{?__isa_bits} == 64
dca0b3
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
dca0b3
%else
dca0b3
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
dca0b3
%endif
dca0b3
dca0b3
%ifarch s390 s390x %{arm} %ix86 ppc64le
dca0b3
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
dca0b3
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
dca0b3
%endif
dca0b3
dca0b3
%if %{with bundle_compat_lib}
dca0b3
dca0b3
mv ../clang-%{compat_ver}.src ../clang
dca0b3
dca0b3
%global targets_to_build "X86;AMDGPU;PowerPC;NVPTX;SystemZ;AArch64;ARM;Mips;BPF;WebAssembly"
dca0b3
dca0b3
# Use llvm cmake files from the main package.
dca0b3
#sed -i 's~${LLVM_CMAKE_PATH}~%{_libdir}/cmake/llvm/~' ../clang-%{compat_ver}.src/lib/Basic/CMakeLists.txt
dca0b3
dca0b3
%cmake -S ../llvm-%{compat_ver}.src -B ../clang-compat-libs -G Ninja \
dca0b3
	-DLLVM_ENABLE_PROJECTS=clang \
dca0b3
	-DCMAKE_BUILD_TYPE=Release \
dca0b3
	-DBUILD_SHARED_LIBS=OFF \
dca0b3
	-DLLVM_ENABLE_EH=ON \
dca0b3
	-DLLVM_ENABLE_RTTI=ON \
dca0b3
	-DCMAKE_INSTALL_RPATH:BOOL=";"
dca0b3
dca0b3
%ninja_build -C ../clang-compat-libs libclang.so
dca0b3
%ninja_build -C ../clang-compat-libs libclang-cpp.so
dca0b3
dca0b3
dca0b3
%endif
dca0b3
dca0b3
# -DCMAKE_INSTALL_RPATH=";" is a workaround for llvm manually setting the
dca0b3
# rpath of libraries and binaries.  llvm will skip the manual setting
dca0b3
# if CAMKE_INSTALL_RPATH is set to a value, but cmake interprets this value
dca0b3
# as nothing, so it sets the rpath to "" when installing.
dca0b3
# -DLLVM_ENABLE_NEW_PASS_MANAGER=ON can be removed once this patch is committed:
dca0b3
# https://reviews.llvm.org/D107628
dca0b3
%cmake  -G Ninja \
dca0b3
	-DLLVM_PARALLEL_LINK_JOBS=1 \
dca0b3
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
dca0b3
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
dca0b3
	-DPYTHON_EXECUTABLE=%{__python3} \
dca0b3
	-DCMAKE_INSTALL_RPATH:BOOL=";" \
dca0b3
%ifarch s390 s390x %{arm} %ix86 ppc64le
dca0b3
	-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
dca0b3
	-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
dca0b3
%endif
dca0b3
%if %{with compat_build}
dca0b3
	-DCLANG_BUILD_TOOLS:BOOL=OFF \
dca0b3
	-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver} \
dca0b3
	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
dca0b3
	-DCLANG_INCLUDE_TESTS:BOOL=OFF \
dca0b3
%else
dca0b3
	-DCLANG_INCLUDE_TESTS:BOOL=ON \
dca0b3
	-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../%{clang_tools_srcdir} \
dca0b3
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
dca0b3
	-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
dca0b3
%if 0%{?__isa_bits} == 64
dca0b3
	-DLLVM_LIBDIR_SUFFIX=64 \
dca0b3
%else
dca0b3
	-DLLVM_LIBDIR_SUFFIX= \
dca0b3
%endif
dca0b3
%endif
dca0b3
	\
dca0b3
%if %{with compat_build}
dca0b3
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver} \
dca0b3
%else
dca0b3
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
dca0b3
%endif
dca0b3
	-DCLANG_ENABLE_ARCMT:BOOL=ON \
dca0b3
	-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
dca0b3
	-DCLANG_INCLUDE_DOCS:BOOL=ON \
dca0b3
	-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
dca0b3
	-DENABLE_LINKER_BUILD_ID:BOOL=ON \
dca0b3
	-DLLVM_ENABLE_EH=ON \
dca0b3
	-DLLVM_ENABLE_RTTI=ON \
dca0b3
	-DLLVM_BUILD_DOCS=ON \
dca0b3
	-DLLVM_ENABLE_NEW_PASS_MANAGER=ON \
dca0b3
	-DLLVM_ENABLE_SPHINX=ON \
dca0b3
	-DCLANG_LINK_CLANG_DYLIB=ON \
dca0b3
	%{?abi_revision:-DLLVM_ABI_REVISION=%{abi_revision}} \
dca0b3
	-DSPHINX_WARNINGS_AS_ERRORS=OFF \
dca0b3
	\
dca0b3
	-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
dca0b3
	-DBUILD_SHARED_LIBS=OFF \
dca0b3
	-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
dca0b3
	-DCLANG_DEFAULT_UNWINDLIB=libgcc
dca0b3
dca0b3
%cmake_build
dca0b3
dca0b3
dca0b3
%install
dca0b3
dca0b3
%cmake_install
dca0b3
dca0b3
%if %{with bundle_compat_lib}
dca0b3
install -m 0755 ../clang-compat-libs/lib/libclang.so.%{compat_maj_ver}* %{buildroot}%{_libdir}
dca0b3
install -m 0755 ../clang-compat-libs/lib/libclang-cpp.so.%{compat_maj_ver}* %{buildroot}%{_libdir}
dca0b3
%endif
dca0b3
dca0b3
%if %{with compat_build}
dca0b3
dca0b3
# Remove binaries/other files
dca0b3
rm -Rf %{buildroot}%{install_bindir}
dca0b3
rm -Rf %{buildroot}%{install_prefix}/share
dca0b3
rm -Rf %{buildroot}%{install_prefix}/libexec
dca0b3
dca0b3
%else
dca0b3
dca0b3
# File in the macros file for other packages to use.  We are not doing this
dca0b3
# in the compat package, because the version macros would # conflict with
dca0b3
# eachother if both clang and the clang compat package were installed together.
dca0b3
install -p -m0644 -D %{SOURCE7} %{buildroot}%{_rpmmacrodir}/macros.%{name}
dca0b3
sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \
dca0b3
       -e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \
dca0b3
       -e "s|@@CLANG_PATCH_VERSION@@|%{patch_ver}|" \
dca0b3
       %{buildroot}%{_rpmmacrodir}/macros.%{name}
dca0b3
dca0b3
# install clang python bindings
dca0b3
mkdir -p %{buildroot}%{python3_sitelib}/clang/
dca0b3
install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
dca0b3
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
dca0b3
dca0b3
# install scanbuild-py to python sitelib.
dca0b3
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
dca0b3
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild}
dca0b3
dca0b3
# Fix permissions of scan-view scripts
dca0b3
chmod a+x %{buildroot}%{_datadir}/scan-view/{Reporter.py,startfile.py}
dca0b3
dca0b3
# multilib fix
dca0b3
%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h
dca0b3
dca0b3
# Move emacs integration files to the correct directory
dca0b3
mkdir -p %{buildroot}%{_emacs_sitestartdir}
dca0b3
for f in clang-format.el clang-rename.el clang-include-fixer.el; do
dca0b3
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f
dca0b3
done
dca0b3
dca0b3
# remove editor integrations (bbedit, sublime, emacs, vim)
dca0b3
rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript
dca0b3
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
dca0b3
dca0b3
# TODO: Package html docs
dca0b3
rm -Rvf %{buildroot}%{_docdir}/clang/html
dca0b3
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
dca0b3
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
dca0b3
dca0b3
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
dca0b3
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
dca0b3
dca0b3
# Create Manpage symlinks
dca0b3
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++.1.gz
dca0b3
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang-%{maj_ver}.1.gz
dca0b3
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++-%{maj_ver}.1.gz
dca0b3
dca0b3
# Add clang++-{version} symlink
dca0b3
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
dca0b3
dca0b3
dca0b3
# Fix permission
dca0b3
chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
dca0b3
dca0b3
# create a link to clang's resource directory that is "constant" across minor
dca0b3
# version bumps
dca0b3
# this is required for packages like ccls that hardcode the link to clang's
dca0b3
# resource directory to not require rebuilds on minor version bumps
dca0b3
# Fix for bugs like rhbz#1807574
dca0b3
pushd %{buildroot}%{_libdir}/clang/
dca0b3
ln -s %{version} %{maj_ver}
dca0b3
popd
dca0b3
dca0b3
%endif
dca0b3
dca0b3
# Create sub-directories in the clang resource directory that will be
dca0b3
# populated by other packages
dca0b3
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
dca0b3
dca0b3
dca0b3
# Remove clang-tidy headers.  We don't ship the libraries for these.
dca0b3
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
dca0b3
dca0b3
%if %{without compat_build}
dca0b3
# Add a symlink in /usr/bin to clang-format-diff
dca0b3
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
dca0b3
%endif
dca0b3
dca0b3
%check
dca0b3
# see rhbz#1994082
dca0b3
sed -i -e "s/'ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH'/'ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH', 'SOURCE_DATE_EPOCH'/" test/lit.cfg.py
dca0b3
dca0b3
%if %{without compat_build}
dca0b3
%if %{with check}
dca0b3
# requires lit.py from LLVM utilities
dca0b3
# FIXME: Fix failing ARM tests
dca0b3
SOURCE_DATE_EPOCH=1629181597 LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
dca0b3
%endif
dca0b3
%ifarch %{arm}
dca0b3
:
dca0b3
%else
dca0b3
false
dca0b3
%endif
dca0b3
dca0b3
%endif
dca0b3
dca0b3
dca0b3
%if %{without compat_build}
dca0b3
%files
dca0b3
%license LICENSE.TXT
dca0b3
%{clang_binaries}
dca0b3
%{_mandir}/man1/clang.1.gz
dca0b3
%{_mandir}/man1/clang++.1.gz
dca0b3
%{_mandir}/man1/clang-%{maj_ver}.1.gz
dca0b3
%{_mandir}/man1/clang++-%{maj_ver}.1.gz
dca0b3
%endif
dca0b3
dca0b3
%files libs
dca0b3
%if %{without compat_build}
dca0b3
%{_libdir}/clang/
dca0b3
%{_libdir}/*.so.*
dca0b3
%else
dca0b3
%{pkg_libdir}/*.so.*
dca0b3
%{pkg_libdir}/clang/%{version}
dca0b3
%endif
dca0b3
%if %{with bundle_compat_lib}
dca0b3
%{_libdir}/libclang.so.%{compat_maj_ver}*
dca0b3
%{_libdir}/libclang-cpp.so.%{compat_maj_ver}*
dca0b3
%endif
dca0b3
dca0b3
%files devel
dca0b3
%if %{without compat_build}
dca0b3
%{_libdir}/*.so
dca0b3
%{_includedir}/clang/
dca0b3
%{_includedir}/clang-c/
dca0b3
%{_libdir}/cmake/*
dca0b3
%dir %{_datadir}/clang/
dca0b3
%{_rpmmacrodir}/macros.%{name}
dca0b3
%else
dca0b3
%{pkg_libdir}/*.so
dca0b3
%{pkg_includedir}/clang/
dca0b3
%{pkg_includedir}/clang-c/
dca0b3
%{pkg_libdir}/cmake/
dca0b3
%endif
dca0b3
dca0b3
%files resource-filesystem
dca0b3
%dir %{pkg_libdir}/clang/%{version}/
dca0b3
%dir %{pkg_libdir}/clang/%{version}/include/
dca0b3
%dir %{pkg_libdir}/clang/%{version}/lib/
dca0b3
%dir %{pkg_libdir}/clang/%{version}/share/
dca0b3
%if %{without compat_build}
dca0b3
%{pkg_libdir}/clang/%{maj_ver}
dca0b3
%endif
dca0b3
dca0b3
%if %{without compat_build}
dca0b3
%files analyzer
dca0b3
%{_bindir}/scan-view
dca0b3
%{_bindir}/scan-build
dca0b3
%{_bindir}/analyze-build
dca0b3
%{_bindir}/intercept-build
dca0b3
%{_bindir}/scan-build-py
dca0b3
%{_libexecdir}/ccc-analyzer
dca0b3
%{_libexecdir}/c++-analyzer
dca0b3
%{_libexecdir}/analyze-c++
dca0b3
%{_libexecdir}/analyze-cc
dca0b3
%{_libexecdir}/intercept-c++
dca0b3
%{_libexecdir}/intercept-cc
dca0b3
%{_datadir}/scan-view/
dca0b3
%{_datadir}/scan-build/
dca0b3
%{_mandir}/man1/scan-build.1.*
dca0b3
%{python3_sitelib}/libear
dca0b3
%{python3_sitelib}/libscanbuild
dca0b3
dca0b3
dca0b3
%files tools-extra
dca0b3
%{clang_tools_binaries}
dca0b3
%{_bindir}/c-index-test
dca0b3
%{_bindir}/find-all-symbols
dca0b3
%{_bindir}/modularize
dca0b3
%{_bindir}/clang-format-diff
dca0b3
%{_mandir}/man1/diagtool.1.gz
dca0b3
%{_emacs_sitestartdir}/clang-format.el
dca0b3
%{_emacs_sitestartdir}/clang-rename.el
dca0b3
%{_emacs_sitestartdir}/clang-include-fixer.el
dca0b3
%{_datadir}/clang/clang-format.py*
dca0b3
%{_datadir}/clang/clang-format-diff.py*
dca0b3
%{_datadir}/clang/clang-include-fixer.py*
dca0b3
%{_datadir}/clang/clang-tidy-diff.py*
dca0b3
%{_bindir}/run-clang-tidy
dca0b3
%{_datadir}/clang/run-find-all-symbols.py*
dca0b3
%{_datadir}/clang/clang-rename.py*
dca0b3
dca0b3
%files -n git-clang-format
dca0b3
%{_bindir}/git-clang-format
dca0b3
dca0b3
%files -n python3-clang
dca0b3
%{python3_sitelib}/clang/
dca0b3
dca0b3
dca0b3
%endif
dca0b3
%changelog
dca0b3
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
dca0b3
- 13.0.1 Release
dca0b3
dca0b3
* Fri Jan 21 2022 Serge Guelton - 13.0.0-3
dca0b3
- Backport bidi patches
dca0b3
dca0b3
* Wed Nov 03 2021 Timm Bäder <tbaeder@redhat.com> - 13.0.0-2
dca0b3
- Ship libclang-cpp.so.12 as well
dca0b3
dca0b3
* Wed Oct 13 2021 Timm Bäder <tbaeder@redhat.com> - 13.0.0-1
dca0b3
- Release 13.0.0
dca0b3
dca0b3
* Tue Aug 17 2021 sguelton@redhat.com - 12.0.1-5
dca0b3
- Force SOURCE_DATE_EPOCH, fix rhbz#1994082
dca0b3
dca0b3
* Mon Aug 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-4
dca0b3
- Don't requirest tests on s390x
dca0b3
dca0b3
* Mon Aug 16 2021 sguelton@redhat.com - 12.0.1-3
dca0b3
- rebuilt
dca0b3
dca0b3
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
dca0b3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
dca0b3
  Related: rhbz#1991688
dca0b3
dca0b3
* Tue Jul 13 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
dca0b3
- 12.0.1 Release
dca0b3
- Remove clang-11 compat lib
dca0b3
dca0b3
* Mon Jun 14 2021 sguelton@redhat.com - 12.0.0-5
dca0b3
- Backport
dca0b3
dca0b3
* Tue Jun 08 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-4
dca0b3
- Only enable -funwind-tables by default on Fedora arches
dca0b3
dca0b3
* Fri May 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-3
dca0b3
- Reduce number of ninja jobs on aarch64
dca0b3
dca0b3
* Fri May 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-2
dca0b3
- Add libclang.so compat library
dca0b3
dca0b3
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.cm> - 12.0.0-1
dca0b3
- 12.0.0 Release
dca0b3
dca0b3
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 11.1.0-0.5.rc2
dca0b3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
dca0b3
dca0b3
* Thu Feb 04 2021 Tom Stellard <tstellar@redhat.com> - 11.1.0-0.4.rc2
dca0b3
- Rebuild for llvm-11.1.0-0.3.rc2.el9
dca0b3
dca0b3
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.3.rc2
dca0b3
- 11.1.0-rc2 release
dca0b3
dca0b3
* Wed Jan 20 2021 Serge Guelton - 11.1.0-0.2.rc1
dca0b3
- rebuilt with https://reviews.llvm.org/D94941 applied.
dca0b3
dca0b3
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
dca0b3
- 11.1.0-rc1 release
dca0b3
dca0b3
* Wed Jan 06 2021 Serge Guelton - 11.0.1-4
dca0b3
- LLVM 11.0.1 final
dca0b3
dca0b3
* Sun Dec 20 2020 sguelton@redhat.com - 11.0.1-3.rc2
dca0b3
- llvm 11.0.1-rc2
dca0b3
dca0b3
* Wed Dec 16 2020 Tom Stellard <tstellar@redhat.com> - 11.0.1-2.rc1
dca0b3
- Don't build with -flto
dca0b3
dca0b3
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
dca0b3
- llvm 11.0.1-rc1
dca0b3
dca0b3
* Thu Oct 29 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-3
dca0b3
- Remove -ffat-lto-objects compiler flag
dca0b3
dca0b3
* Wed Oct 28 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-2
dca0b3
- Add clang-resource-filesystem sub-package
dca0b3
dca0b3
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
dca0b3
- Fix NVR
dca0b3
dca0b3
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.7
dca0b3
- llvm 11.0.0 - final release
dca0b3
dca0b3
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.6.rc6
dca0b3
- 11.0.0-rc6
dca0b3
dca0b3
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.5.rc5
dca0b3
- 11.0.0-rc5 Release
dca0b3
dca0b3
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.4.rc3
dca0b3
- Fix NVR
dca0b3
dca0b3
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
dca0b3
- 11.0.0-rc3 Release
dca0b3
dca0b3
* Tue Sep 22 2020 sguelton@redhat.com - 11.0.0-0.3.rc2
dca0b3
- Prefer gcc toolchains with libgcc_s
dca0b3
dca0b3
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.2.rc2
dca0b3
- Normalize some doc directory locations
dca0b3
dca0b3
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
dca0b3
- 11.0.0-rc2 Release
dca0b3
- Use %%license macro
dca0b3
dca0b3
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.2.rc1
dca0b3
- Fix test failures
dca0b3
dca0b3
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
dca0b3
- 11.0.0-rc1 Release
dca0b3
dca0b3
* Tue Aug 04 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-11
dca0b3
- Remove Requires: emacs-filesystem
dca0b3
dca0b3
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-10
dca0b3
- Second attempt - Rebuilt for
dca0b3
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dca0b3
dca0b3
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 10.0.0-9
dca0b3
- Disable LTO on arm and i686
dca0b3
dca0b3
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-8
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dca0b3
dca0b3
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-7
dca0b3
- Update cmake macro usage
dca0b3
- Finalize source verification
dca0b3
dca0b3
* Fri Jun 26 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-6
dca0b3
- Add cet.h header
dca0b3
dca0b3
* Mon Jun 08 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-5
dca0b3
- Accept multiple --config options
dca0b3
dca0b3
* Wed Jun  3 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 10.0.0-4
dca0b3
- Add symlink to %%{_libdir}/clang/%%{maj_ver} for persistent access to the resource directory accross minor version bumps
dca0b3
dca0b3
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 10.0.0-3
dca0b3
- Rebuilt for Python 3.9
dca0b3
dca0b3
* Tue May 19 2020 sguelton@redhat.com - 10.0.0-2
dca0b3
- Backport ad7211df6f257e39da2e5a11b2456b4488f32a1e, see rhbz#1825593
dca0b3
dca0b3
* Thu Mar 26 2020 sguelton@redhat.com - 10.0.0-1
dca0b3
- 10.0.0 final
dca0b3
dca0b3
* Tue Mar 24 2020 sguelton@redhat.com - 10.0.0-0.11.rc6
dca0b3
- 10.0.0 rc6
dca0b3
dca0b3
* Sun Mar 22 2020 sguelton@redhat.com - 10.0.0-0.10.rc5
dca0b3
- Update git-clang-format dependency, see rhbz#1815913
dca0b3
dca0b3
* Fri Mar 20 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-0.9.rc5
dca0b3
- Add dependency on libomp-devel
dca0b3
dca0b3
* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.8.rc5
dca0b3
- 10.0.0 rc5
dca0b3
dca0b3
* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.7.rc4
dca0b3
- 10.0.0 rc4
dca0b3
dca0b3
* Thu Mar 12 2020 sguelton@redhat.com - 10.0.0-0.6.rc3
dca0b3
- Move a few files from clang to clang-tools-extra.
dca0b3
dca0b3
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.5.rc3
dca0b3
- 10.0.0 rc3
dca0b3
dca0b3
* Tue Feb 25 2020 sguelton@redhat.com - 10.0.0-0.4.rc2
dca0b3
- Apply -fdiscard-value-names patch.
dca0b3
dca0b3
* Mon Feb 17 2020 sguelton@redhat.com - 10.0.0-0.3.rc2
dca0b3
- Fix NVR
dca0b3
dca0b3
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2
dca0b3
- 10.0.0 rc2
dca0b3
dca0b3
* Tue Feb 11 2020 sguelton@redhat.com - 10.0.0-0.2.rc1
dca0b3
- Explicitly conflicts with any different compiler-rt version, see rhbz#1800705
dca0b3
dca0b3
* Fri Jan 31 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-0.1.rc1
dca0b3
- Stop shipping individual component libraries
dca0b3
- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
dca0b3
dca0b3
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
dca0b3
- 10.0.0 rc1
dca0b3
dca0b3
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-3
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
dca0b3
dca0b3
* Fri Jan 10 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
dca0b3
- Fix crash with kernel bpf self-tests
dca0b3
dca0b3
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
dca0b3
- 9.0.1 Release
dca0b3
dca0b3
* Wed Dec 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-3
dca0b3
- Add explicit requires for clang-libs to fix rpmdiff errors
dca0b3
dca0b3
* Tue Dec 10 2019 sguelton@redhat.com - 9.0.0-2
dca0b3
- Activate -funwind-tables on all arches, see rhbz#1655546.
dca0b3
dca0b3
* Thu Sep 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
dca0b3
- 9.0.0 Release
dca0b3
dca0b3
* Wed Sep 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.2.rc3
dca0b3
- Reduce debug info verbosity on ppc64le to avoid OOM errors in koji
dca0b3
dca0b3
* Thu Aug 22 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc3
dca0b3
- 9.0.0 Release candidate 3
dca0b3
dca0b3
* Tue Aug 20 2019 sguelton@redhat.com - 8.0.0-4
dca0b3
- Rebuilt for Python 3.8
dca0b3
dca0b3
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.0-3.2
dca0b3
- Rebuilt for Python 3.8
dca0b3
dca0b3
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-3.1
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dca0b3
dca0b3
* Thu May 16 2019 sguelton@redhat.com - 8.0.0-3
dca0b3
- Fix for rhbz#1674031
dca0b3
dca0b3
* Fri Apr 12 2019 sguelton@redhat.com - 8.0.0-2
dca0b3
- Remove useless patch thanks to GCC upgrade
dca0b3
dca0b3
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
dca0b3
- 8.0.0 final
dca0b3
dca0b3
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.6.rc4
dca0b3
- 8.0.0 Release candidate 4
dca0b3
dca0b3
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.5.rc3
dca0b3
- Cleanup specfile after llvm dependency update
dca0b3
dca0b3
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.4.rc3
dca0b3
- 8.0.0 Release candidate 3
dca0b3
dca0b3
* Mon Feb 25 2019 tstellar@redhat.com - 8.0.0-0.3.rc2
dca0b3
- Fix compiling with -stdlib=libc++
dca0b3
dca0b3
* Thu Feb 21 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
dca0b3
- 8.0.0 Release candidate 2
dca0b3
dca0b3
* Sat Feb 09 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
dca0b3
- 8.0.0 Release candidate 1
dca0b3
dca0b3
* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-6
dca0b3
- Update patch for Python3 port of scan-view
dca0b3
dca0b3
* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-5
dca0b3
- Working CI test suite
dca0b3
dca0b3
* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4
dca0b3
- Workaround gcc-9 bug when compiling bitfields
dca0b3
dca0b3
* Fri Feb 01 2019 sguelton@redhat.com - 7.0.1-3
dca0b3
- Fix uninitialized error detected by gcc-9
dca0b3
dca0b3
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-2.1
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dca0b3
dca0b3
* Wed Dec 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
dca0b3
- Fix for rhbz#1657544
dca0b3
dca0b3
* Tue Dec 18 2018 sguelton@redhat.com - 7.0.1-1
dca0b3
- 7.0.1
dca0b3
dca0b3
* Tue Dec 18 2018 sguelton@redhat.com - 7.0.0-10
dca0b3
- Install proper manpage symlinks for clang/clang++ versions
dca0b3
dca0b3
* Fri Dec 14 2018 sguelton@redhat.com - 7.0.0-9
dca0b3
- No longer Ignore -fstack-clash-protection option
dca0b3
dca0b3
* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-8
dca0b3
- Ensure rpmlint passes on specfile
dca0b3
dca0b3
* Fri Nov 30 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-7
dca0b3
- Drop python2 dependency from clang-tools-extra
dca0b3
dca0b3
* Wed Nov 21 2018 sguelton@redhat.com - 7.0.0-6
dca0b3
- Prune unneeded reference to llvm-test-suite sub-package
dca0b3
dca0b3
* Mon Nov 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-5
dca0b3
- Run 'make check-all' instead of 'make check-clang'
dca0b3
dca0b3
* Mon Nov 19 2018 sergesanspaille <sguelton@redhat.com> - 7.0.0-4
dca0b3
- Avoid Python2 + Python3 dependency for clang-analyzer
dca0b3
dca0b3
* Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-3
dca0b3
- User helper macro to fixup config.h for multilib
dca0b3
dca0b3
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-2
dca0b3
- Use correct shebang substitution for python scripts
dca0b3
dca0b3
* Mon Sep 24 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
dca0b3
- 7.0.0 Release
dca0b3
dca0b3
* Wed Sep 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.16.rc3
dca0b3
- Move builtin headers into clang-libs sub-package
dca0b3
dca0b3
* Wed Sep 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.15.rc3
dca0b3
- Remove ambiguous python shebangs
dca0b3
dca0b3
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.14.rc3
dca0b3
- Move unversioned shared objects to devel package
dca0b3
dca0b3
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.13.rc3
dca0b3
- Rebuild with new llvm-devel that disables rpath on install
dca0b3
dca0b3
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.12.rc3
dca0b3
- Fix clang++-7 symlink
dca0b3
dca0b3
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.11.rc3
dca0b3
- 7.0.0-rc3 Release
dca0b3
dca0b3
* Mon Sep 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.10.rc2
dca0b3
- Drop siod from llvm-test-suite
dca0b3
dca0b3
* Fri Sep 07 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.9.rc2
dca0b3
- Drop python2 dependency from clang package
dca0b3
dca0b3
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.8.rc2
dca0b3
- Drop all uses of python2 from lit tests
dca0b3
dca0b3
* Sat Sep 01 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.7.rc2
dca0b3
- Add Fedora specific version string
dca0b3
dca0b3
* Tue Aug 28 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.6.rc2
dca0b3
- 7.0.0-rc2 Release
dca0b3
dca0b3
* Tue Aug 28 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.5.rc1
dca0b3
- Enable unit tests
dca0b3
dca0b3
* Fri Aug 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.4.rc1
dca0b3
- Move llvm-test-suite into a sub-package
dca0b3
dca0b3
* Fri Aug 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.3.rc1
dca0b3
- Recommend the same version of compiler-rt
dca0b3
dca0b3
* Wed Aug 15 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.2.rc1
dca0b3
- Rebuild for f30
dca0b3
dca0b3
* Mon Aug 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc1
dca0b3
- 7.0.0-rc1 Release
dca0b3
dca0b3
* Mon Jul 23 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
dca0b3
- Sync spec file with the clang6.0 package
dca0b3
dca0b3
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-2
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dca0b3
dca0b3
* Tue Jun 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
dca0b3
- 6.0.1 Release
dca0b3
dca0b3
* Wed Jun 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.2.rc2
dca0b3
- 6.0.1-rc2
dca0b3
dca0b3
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.1.rc1
dca0b3
- 6.0.1-rc1 Release
dca0b3
dca0b3
* Fri Mar 23 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-5
dca0b3
- Add a clang++-{version} symlink rhbz#1534098
dca0b3
dca0b3
* Thu Mar 22 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-4
dca0b3
- Use correct script for running lit tests
dca0b3
dca0b3
* Wed Mar 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-3
dca0b3
- Fix toolchain detection so we don't default to using cross-compilers:
dca0b3
  rhbz#1482491
dca0b3
dca0b3
* Mon Mar 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
dca0b3
- Add Provides: clang(major) rhbz#1547444
dca0b3
dca0b3
* Fri Mar 09 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
dca0b3
- 6.0.0 Release
dca0b3
dca0b3
* Mon Feb 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.6.rc2
dca0b3
- 6.0.0-rc2 Release
dca0b3
dca0b3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.5.rc1
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dca0b3
dca0b3
* Thu Feb 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.4.rc1
dca0b3
- Package python helper scripts for tools
dca0b3
dca0b3
* Fri Jan 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc1
dca0b3
- Ignore -fstack-clash-protection option instead of giving an error
dca0b3
dca0b3
* Fri Jan 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.2.rc1
dca0b3
- Package emacs integration files
dca0b3
dca0b3
* Wed Jan 24 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
dca0b3
- 6.0.0-rc1 Release
dca0b3
dca0b3
* Wed Jan 24 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-3
dca0b3
- Rebuild against llvm5.0 compatibility package
dca0b3
- rhbz#1538231
dca0b3
dca0b3
* Wed Jan 03 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.0.1-2
dca0b3
- Update Python 2 dependency declarations to new packaging standards
dca0b3
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
dca0b3
dca0b3
* Wed Dec 20 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
dca0b3
- 5.0.1 Release
dca0b3
dca0b3
* Wed Dec 13 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-3
dca0b3
- Make compiler-rt a weak dependency and add a weak dependency on libomp
dca0b3
dca0b3
* Mon Nov 06 2017 Merlin Mathesius <mmathesi@redhat.com> - 5.0.0-2
dca0b3
- Cleanup spec file conditionals
dca0b3
dca0b3
* Mon Oct 16 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
dca0b3
- 5.0.0 Release
dca0b3
dca0b3
* Wed Oct 04 2017 Rex Dieter <rdieter@fedoraproject.org> - 4.0.1-6
dca0b3
- python2-clang subpkg (#1490997)
dca0b3
- tools-extras: tighten (internal) -libs dep
dca0b3
- %%install: avoid cd
dca0b3
dca0b3
* Wed Aug 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-5
dca0b3
- Add Requires: python for git-clang-format
dca0b3
dca0b3
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 4.0.1-4
dca0b3
- Rebuilt for AutoReq cmake-filesystem
dca0b3
dca0b3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dca0b3
dca0b3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dca0b3
dca0b3
* Fri Jun 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
dca0b3
- 4.0.1 Release.
dca0b3
dca0b3
* Fri Jun 16 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-8
dca0b3
- Enable make check-clang
dca0b3
dca0b3
* Mon Jun 12 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-7
dca0b3
- Package git-clang-format
dca0b3
dca0b3
* Thu Jun 08 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-6
dca0b3
- Generate man pages
dca0b3
dca0b3
* Thu Jun 08 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-5
dca0b3
- Ignore test-suite failures until all arches are fixed.
dca0b3
dca0b3
* Mon Apr 03 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
dca0b3
- Run llvm test-suite
dca0b3
dca0b3
* Mon Mar 27 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
dca0b3
- Enable eh/rtti, which are required by lldb.
dca0b3
dca0b3
* Fri Mar 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
dca0b3
- Fix clang-tools-extra build
dca0b3
- Fix install
dca0b3
dca0b3
* Thu Mar 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
dca0b3
- clang 4.0.0 final release
dca0b3
dca0b3
* Mon Mar 20 2017 David Goerger <david.goerger@yale.edu> - 3.9.1-3
dca0b3
- add clang-tools-extra rhbz#1328091
dca0b3
dca0b3
* Thu Mar 16 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-2
dca0b3
- Enable build-id by default rhbz#1432403
dca0b3
dca0b3
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
dca0b3
- clang 3.9.1 final release
dca0b3
dca0b3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dca0b3
dca0b3
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.9.0-3
dca0b3
- Add Requires: compiler-rt to clang-libs.
dca0b3
- Without this, compiling with certain CFLAGS breaks.
dca0b3
dca0b3
* Tue Nov  1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.0-2
dca0b3
- Rebuild for new arches
dca0b3
dca0b3
* Fri Oct 14 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
dca0b3
- clang 3.9.0 final release
dca0b3
dca0b3
* Fri Jul 01 2016 Stephan Bergmann <sbergman@redhat.com> - 3.8.0-2
dca0b3
- Resolves: rhbz#1282645 add GCC abi_tag support
dca0b3
dca0b3
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
dca0b3
- clang 3.8.0 final release
dca0b3
dca0b3
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.4
dca0b3
- clang 3.8.0rc3
dca0b3
dca0b3
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.3
dca0b3
- package all libs into clang-libs.
dca0b3
dca0b3
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
dca0b3
- enable dynamic linking of clang against llvm
dca0b3
dca0b3
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
dca0b3
- clang 3.8.0rc2
dca0b3
dca0b3
* Fri Feb 12 2016 Dave Airlie <airlied@redhat.com> 3.7.1-4
dca0b3
- rebuild against latest llvm packages
dca0b3
- add BuildRequires llvm-static
dca0b3
dca0b3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3
dca0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dca0b3
dca0b3
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-2
dca0b3
- just accept clang includes moving to /usr/lib64, upstream don't let much else happen
dca0b3
dca0b3
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-1
dca0b3
- initial build in Fedora.
dca0b3
dca0b3
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
dca0b3
- initial version using cmake build system