89c3d8e
%bcond_with compat_build
8dae109
%bcond_without check
74e8e23
a5df6c7
%global maj_ver 13
cef168d
%global min_ver 0
5b7b147
%global patch_ver 1
2932468
%global rc_ver 2
1a54a32
%global clang_version %{maj_ver}.%{min_ver}.%{patch_ver}
8d35cec
David Goerger 1e780f7
%global clang_tools_binaries \
David Goerger 1e780f7
	%{_bindir}/clang-apply-replacements \
5617ce0
	%{_bindir}/clang-change-namespace \
cf309ff
	%{_bindir}/clang-check \
1ca4985
	%{_bindir}/clang-doc \
cf309ff
	%{_bindir}/clang-extdef-mapping \
cf309ff
	%{_bindir}/clang-format \
David Goerger 1e780f7
	%{_bindir}/clang-include-fixer \
cf309ff
	%{_bindir}/clang-move \
cf309ff
	%{_bindir}/clang-offload-bundler \
cf309ff
	%{_bindir}/clang-offload-wrapper \
David Goerger 1e780f7
	%{_bindir}/clang-query \
4058470
	%{_bindir}/clang-refactor \
David Goerger 1e780f7
	%{_bindir}/clang-rename \
cf309ff
	%{_bindir}/clang-reorder-fields \
bfd11a3
	%{_bindir}/clang-repl \
cf309ff
	%{_bindir}/clang-scan-deps \
cf309ff
	%{_bindir}/clang-tidy \
cf309ff
	%{_bindir}/clangd \
cf309ff
	%{_bindir}/diagtool \
cf309ff
	%{_bindir}/hmaptool \
cf309ff
	%{_bindir}/pp-trace
David Goerger 1e780f7
David Goerger 1e780f7
%global clang_binaries \
David Goerger 1e780f7
	%{_bindir}/clang \
David Goerger 1e780f7
	%{_bindir}/clang++ \
7761cfa
	%{_bindir}/clang-%{maj_ver} \
7761cfa
	%{_bindir}/clang++-%{maj_ver} \
David Goerger 1e780f7
	%{_bindir}/clang-cl \
5617ce0
	%{_bindir}/clang-cpp \
David Goerger 1e780f7
89c3d8e
%if %{with compat_build}
620fd8a
%global pkg_name clang%{maj_ver}
74e8e23
# Install clang to same prefix as llvm, so that apps that use llvm-config
74e8e23
# will also be able to find clang libs.
620fd8a
%global install_prefix %{_libdir}/llvm%{maj_ver}
74e8e23
%global install_bindir %{install_prefix}/bin
74e8e23
%global install_includedir %{install_prefix}/include
74e8e23
%global install_libdir %{install_prefix}/lib
74e8e23
74e8e23
%global pkg_bindir %{install_bindir}
620fd8a
%global pkg_includedir %{install_includedir}
74e8e23
%global pkg_libdir %{install_libdir}
74e8e23
%else
74e8e23
%global pkg_name clang
b53704a
%global install_prefix /usr
5bff53b
%global pkg_libdir %{_libdir}
74e8e23
%endif
74e8e23
b53704a
%global build_install_prefix %{buildroot}%{install_prefix}
b53704a
1ca4985
%ifarch ppc64le
1ca4985
# Too many threads on ppc64 systems causes OOM errors.
1ca4985
%global _smp_mflags -j8
1ca4985
%endif
1ca4985
1a54a32
%global clang_srcdir clang-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
1a54a32
%global clang_tools_srcdir clang-tools-extra-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
4058470
2fb038f
%if !%{maj_ver} && 0%{?rc_ver}
bfd11a3
%global abi_revision 2
2fb038f
%endif
a5df6c7
74e8e23
Name:		%pkg_name
1a54a32
Version:	%{clang_version}%{?rc_ver:~rc%{rc_ver}}
f0fcd73
Release:	2%{?dist}
4a6eb83
Summary:	A C language family front-end for LLVM
4a6eb83
4a6eb83
License:	NCSA
4a6eb83
URL:		http://llvm.org
1a54a32
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz
1a54a32
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig
89c3d8e
%if %{without compat_build}
1a54a32
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
1a54a32
Source2:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
74e8e23
%endif
ad6c72f
Source4:	tstellar-gpg-key.asc
967d1e9
%if %{without compat_build}
d99713b
Source5:	macros.%{name}
d99713b
%endif
4a6eb83
08bee7e
# Patches for clang
08bee7e
Patch0:     0001-PATCH-clang-Reorganize-gtest-integration.patch
08bee7e
Patch1:     0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
08bee7e
Patch2:     0003-PATCH-clang-Don-t-install-static-libraries.patch
fde900e
Patch3:     0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
a5df6c7
Patch4:     0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
6f28841
Patch5:     0001-PATCH-clang-Fix-scan-build-py-executable-lookup-path.patch
08bee7e
c67fd45
BuildRequires:	gcc
c67fd45
BuildRequires:	gcc-c++
4a6eb83
BuildRequires:	cmake
b53704a
BuildRequires:	ninja-build
89c3d8e
%if %{with compat_build}
620fd8a
BuildRequires:	llvm%{maj_ver}-devel = %{version}
620fd8a
BuildRequires:	llvm%{maj_ver}-static = %{version}
74e8e23
%else
4058470
BuildRequires:	llvm-devel = %{version}
434e918
BuildRequires:	llvm-test = %{version}
ad3b6d9
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
ad3b6d9
# is not included in libLLVM.so.
c67fd45
BuildRequires:	llvm-static = %{version}
f7f5784
BuildRequires:	llvm-googletest = %{version}
74e8e23
%endif
74e8e23
4a6eb83
BuildRequires:	libxml2-devel
c67fd45
BuildRequires:	perl-generators
c67fd45
BuildRequires:	ncurses-devel
d0138c6
# According to https://fedoraproject.org/wiki/Packaging:Emacs a package
d0138c6
# should BuildRequires: emacs if it packages emacs integration files.
d0138c6
BuildRequires:	emacs
ce584ee
4058470
# The testsuite uses /usr/bin/lit which is part of the python3-lit package.
c67fd45
BuildRequires:	python3-lit
ce584ee
c67fd45
BuildRequires:	python3-sphinx
c67fd45
BuildRequires:	libatomic
c473ab9
e87e2f5
# We need python3-devel for %%py3_shebang_fix
17d1605
BuildRequires:	python3-devel
ce584ee
3f6550f
# For reproducible pyc file generation
3f6550f
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
3f6550f
BuildRequires: /usr/bin/marshalparser
3f6550f
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
3f6550f
816ea52
# Needed for %%multilib_fix_c_header
c67fd45
BuildRequires:	multilib-rpm-config
82aa4d3
82aa4d3
# For origin certification
82aa4d3
BuildRequires:	gnupg2
816ea52
892c49f
# scan-build uses these perl modules so they need to be installed in order
892c49f
# to run the tests.
892c49f
BuildRequires: perl(Digest::MD5)
892c49f
BuildRequires: perl(File::Copy)
892c49f
BuildRequires: perl(File::Find)
892c49f
BuildRequires: perl(File::Path)
892c49f
BuildRequires: perl(File::Temp)
892c49f
BuildRequires: perl(FindBin)
892c49f
BuildRequires: perl(Hash::Util)
892c49f
BuildRequires: perl(lib)
892c49f
BuildRequires: perl(Term::ANSIColor)
892c49f
BuildRequires: perl(Text::ParseWords)
892c49f
BuildRequires: perl(Sys::Hostname)
892c49f
4a6eb83
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
4a6eb83
4a6eb83
# clang requires gcc, clang++ requires libstdc++-devel
4a6eb83
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
4a6eb83
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
4a6eb83
Requires:	libstdc++-devel
4a6eb83
Requires:	gcc-c++
4a6eb83
c67fd45
Provides:	clang(major) = %{maj_ver}
5e7e9e3
bf0177d
Conflicts:	compiler-rt < 11.0.0
b6fa739
4a6eb83
%description
4a6eb83
clang: noun
4a6eb83
    1. A loud, resonant, metallic sound.
4a6eb83
    2. The strident call of a crane or goose.
4a6eb83
    3. C-language family front-end toolkit.
4a6eb83
4a6eb83
The goal of the Clang project is to create a new C, C++, Objective C
4a6eb83
and Objective C++ front-end for the LLVM compiler. Its tools are built
4a6eb83
as libraries and designed to be loosely-coupled and extensible.
4a6eb83
Stephen Kitt 2ecc846
Install compiler-rt if you want the Blocks C language extension or to
Stephen Kitt 2ecc846
enable sanitization and profiling options when building, and
Stephen Kitt 2ecc846
libomp-devel to enable -fopenmp.
Stephen Kitt 2ecc846
4a6eb83
%package libs
4a6eb83
Summary: Runtime library for clang
5bff53b
Requires: %{name}-resource-filesystem%{?_isa} = %{version}
68eed61
Recommends: compiler-rt%{?_isa} = %{version}
7a3aee2
# libomp-devel is required, so clang can find the omp.h header when compiling
7a3aee2
# with -fopenmp.
7a3aee2
Recommends: libomp-devel%{_isa} = %{version}
af6de8b
Recommends: libomp%{_isa} = %{version}
4a6eb83
6699b0a
# Use lld as the default linker on ARM due to rhbz#1918924
6699b0a
%ifarch %{arm}
6699b0a
Requires: lld
6699b0a
%endif
6699b0a
4a6eb83
%description libs
4a6eb83
Runtime library for clang.
4a6eb83
4a6eb83
%package devel
01e6940
Summary: Development header files for clang
89c3d8e
%if %{without compat_build}
4a6eb83
Requires: %{name}%{?_isa} = %{version}-%{release}
b81322c
# The clang CMake files reference tools from clang-tools-extra.
b81322c
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
4c28031
Requires: %{name}-libs = %{version}-%{release}
d31698e
%endif
4a6eb83
4a6eb83
%description devel
4a6eb83
Development header files for clang.
4a6eb83
5bff53b
%package resource-filesystem
5bff53b
Summary: Filesystem package that owns the clang resource directory
5bff53b
Provides: %{name}-resource-filesystem(major) = %{maj_ver}
5bff53b
5bff53b
%description resource-filesystem
5bff53b
This package owns the clang resouce directory: $libdir/clang/$version/
5bff53b
89c3d8e
%if %{without compat_build}
4a6eb83
%package analyzer
4a6eb83
Summary:	A source code analysis framework
4a6eb83
License:	NCSA and MIT
4a6eb83
BuildArch:	noarch
4a6eb83
Requires:	%{name} = %{version}-%{release}
4a6eb83
4a6eb83
%description analyzer
4a6eb83
The Clang Static Analyzer consists of both a source code analysis
4a6eb83
framework and a standalone tool that finds bugs in C and Objective-C
4a6eb83
programs. The standalone tool is invoked from the command-line, and is
4a6eb83
intended to run in tandem with a build of a project or code base.
4a6eb83
David Goerger 1e780f7
%package tools-extra
01e6940
Summary:	Extra tools for clang
01e6940
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
01e6940
Requires:	emacs-filesystem
David Goerger 1e780f7
David Goerger 1e780f7
%description tools-extra
David Goerger 1e780f7
A set of extra tools built using Clang's tooling API.
David Goerger 1e780f7
b53704a
# Put git-clang-format in its own package, because it Requires git
d8d5392
# and we don't want to force users to install all those dependenices if they
d8d5392
# just want clang.
d8d5392
%package -n git-clang-format
01e6940
Summary:	Integration of clang-format for git
dc3ceec
Requires:	%{name}-tools-extra = %{version}-%{release}
01e6940
Requires:	git
b53704a
Requires:	python3
d8d5392
d8d5392
%description -n git-clang-format
d8d5392
clang-format integration for git.
d8d5392
8d37c48
b53704a
%package -n python3-clang
b53704a
Summary:       Python3 bindings for clang
b53704a
Requires:      %{name}-libs%{?_isa} = %{version}-%{release}
b53704a
Requires:      python3
b53704a
%description -n python3-clang
c9eea4f
%{summary}.
52c2187
b53704a
74e8e23
%endif
c9eea4f
c9eea4f
4a6eb83
%prep
82aa4d3
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}'
82aa4d3
89c3d8e
%if %{with compat_build}
08bee7e
%autosetup -n %{clang_srcdir} -p2
74e8e23
%else
82aa4d3
82aa4d3
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}'
4058470
%setup -T -q -b 1 -n %{clang_tools_srcdir}
08bee7e
%autopatch -m200 -p2
cef168d
cef168d
# failing test case
cef168d
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
ce584ee
e87e2f5
%py3_shebang_fix \
e87e2f5
	clang-tidy/tool/ \
1ca4985
	clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
15d2b4b
4058470
%setup -q -n %{clang_srcdir}
08bee7e
%autopatch -M200 -p2
efa9dd6
cef168d
# failing test case
cef168d
rm test/CodeGen/profile-filter.c
17d1605
e87e2f5
%py3_shebang_fix \
e87e2f5
	tools/clang-format/ \
15d2b4b
	tools/clang-format/git-clang-format \
fe1772d
	utils/hmaptool/hmaptool \
3dd3a6d
	tools/scan-view/bin/scan-view \
a5df6c7
	tools/scan-build-py/bin/* \
a5df6c7
	tools/scan-build-py/libexec/*
74e8e23
%endif
David Goerger 1e780f7
4a6eb83
%build
4058470
4c025cd
# We run the builders out of memory on armv7 and i686 when LTO is enabled
4c025cd
%ifarch %{arm} i686
4c025cd
%define _lto_cflags %{nil}
32b8b53
%else
32b8b53
# This package does not ship any object files or static libraries, so we
32b8b53
# don't need -ffat-lto-objects.
32b8b53
%global _lto_cflags %(echo %{_lto_cflags} | sed 's/-ffat-lto-objects//')
4c025cd
%endif
4c025cd
8c1d807
# lto builds with gcc 11 fail while running the lit tests.
8c1d807
%define _lto_cflags %{nil}
8c1d807
4058470
%if 0%{?__isa_bits} == 64
4058470
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
4058470
%else
4058470
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
4058470
%endif
4058470
69ca585
%ifarch s390 s390x %{arm} %ix86 ppc64le
8d35cec
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
8d35cec
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
8d35cec
%endif
8d35cec
a5df6c7
# -DLLVM_ENABLE_NEW_PASS_MANAGER=ON can be removed once this patch is committed:
a5df6c7
# https://reviews.llvm.org/D107628
82aa4d3
%cmake  -G Ninja \
478f0a1
	-DLLVM_PARALLEL_LINK_JOBS=1 \
b486bb1
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
4a6eb83
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
b730992
	-DPYTHON_EXECUTABLE=%{__python3} \
cd6d62e
	-DCMAKE_SKIP_RPATH:BOOL=ON \
69ca585
%ifarch s390 s390x %{arm} %ix86 ppc64le
cf309ff
	-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
cf309ff
	-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
1ca4985
%endif
89c3d8e
%if %{with compat_build}
620fd8a
	-DCLANG_BUILD_TOOLS:BOOL=OFF \
93869e0
	-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver} \
74e8e23
	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
74e8e23
	-DCLANG_INCLUDE_TESTS:BOOL=OFF \
74e8e23
%else
74e8e23
	-DCLANG_INCLUDE_TESTS:BOOL=ON \
cef168d
	-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../%{clang_tools_srcdir} \
c823f68
	-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
f7f5784
	-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
74e8e23
%if 0%{?__isa_bits} == 64
c67fd45
	-DLLVM_LIBDIR_SUFFIX=64 \
74e8e23
%else
c67fd45
	-DLLVM_LIBDIR_SUFFIX= \
74e8e23
%endif
74e8e23
%endif
4a6eb83
	\
89c3d8e
%if %{with compat_build}
620fd8a
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver} \
277bd76
%else
620fd8a
	-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
277bd76
%endif
4a6eb83
	-DCLANG_ENABLE_ARCMT:BOOL=ON \
4a6eb83
	-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
4a6eb83
	-DCLANG_INCLUDE_DOCS:BOOL=ON \
4a6eb83
	-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
455a190
	-DENABLE_LINKER_BUILD_ID:BOOL=ON \
f38da92
	-DLLVM_ENABLE_EH=ON \
f38da92
	-DLLVM_ENABLE_RTTI=ON \
c473ab9
	-DLLVM_BUILD_DOCS=ON \
a5df6c7
	-DLLVM_ENABLE_NEW_PASS_MANAGER=ON \
c473ab9
	-DLLVM_ENABLE_SPHINX=ON \
1ca4985
	-DCLANG_LINK_CLANG_DYLIB=ON \
2fb038f
	%{?abi_revision:-DLLVM_ABI_REVISION=%{abi_revision}} \
c473ab9
	-DSPHINX_WARNINGS_AS_ERRORS=OFF \
4a6eb83
	\
6a62f09
	-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
03d5785
	-DBUILD_SHARED_LIBS=OFF \
283f230
	-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
6699b0a
%ifarch %{arm}
6699b0a
	-DCLANG_DEFAULT_LINKER=lld \
6699b0a
%endif
283f230
	-DCLANG_DEFAULT_UNWINDLIB=libgcc
4a6eb83
82aa4d3
%cmake_build
4a6eb83
4a6eb83
%install
82aa4d3
82aa4d3
%cmake_install
4a6eb83
89c3d8e
%if %{with compat_build}
74e8e23
74e8e23
# Remove binaries/other files
74e8e23
rm -Rf %{buildroot}%{install_bindir}
74e8e23
rm -Rf %{buildroot}%{install_prefix}/share
74e8e23
rm -Rf %{buildroot}%{install_prefix}/libexec
74e8e23
74e8e23
%else
74e8e23
d99713b
# File in the macros file for other packages to use.  We are not doing this
d99713b
# in the compat package, because the version macros would # conflict with
d99713b
# eachother if both clang and the clang compat package were installed together.
d99713b
install -p -m0644 -D %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name}
d99713b
sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \
d99713b
       -e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \
d99713b
       -e "s|@@CLANG_PATCH_VERSION@@|%{patch_ver}|" \
d99713b
       %{buildroot}%{_rpmmacrodir}/macros.%{name}
d99713b
c9eea4f
# install clang python bindings
b53704a
mkdir -p %{buildroot}%{python3_sitelib}/clang/
b53704a
install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
b53704a
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
c9eea4f
a5df6c7
# install scanbuild-py to python sitelib.
a5df6c7
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
a5df6c7
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild}
a5df6c7
4a6eb83
# multilib fix
816ea52
%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h
4a6eb83
d0138c6
# Move emacs integration files to the correct directory
d0138c6
mkdir -p %{buildroot}%{_emacs_sitestartdir}
d0138c6
for f in clang-format.el clang-rename.el clang-include-fixer.el; do
d0138c6
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f
d0138c6
done
d0138c6
4a6eb83
# remove editor integrations (bbedit, sublime, emacs, vim)
4a6eb83
rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript
4a6eb83
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
4a6eb83
c473ab9
# TODO: Package html docs
fd536b6
rm -Rvf %{buildroot}%{_docdir}/clang/html
fd536b6
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
fd536b6
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
c473ab9
b81322c
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
b81322c
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
b81322c
d870610
# Create Manpage symlinks
d870610
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++.1.gz
d870610
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang-%{maj_ver}.1.gz
d870610
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++-%{maj_ver}.1.gz
d870610
fe4c554
# Add clang++-{version} symlink
434e918
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
434e918
434e918
01e6940
# Fix permission
01e6940
chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
d870610
43b5ca7
# create a link to clang's resource directory that is "constant" across minor
43b5ca7
# version bumps
43b5ca7
# this is required for packages like ccls that hardcode the link to clang's
43b5ca7
# resource directory to not require rebuilds on minor version bumps
43b5ca7
# Fix for bugs like rhbz#1807574
43b5ca7
pushd %{buildroot}%{_libdir}/clang/
43b5ca7
ln -s %{version} %{maj_ver}
43b5ca7
popd
43b5ca7
f2a6113
%endif
f2a6113
5bff53b
# Create sub-directories in the clang resource directory that will be
5bff53b
# populated by other packages
f2a6113
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
5bff53b
74e8e23
46e006a
# Remove clang-tidy headers.  We don't ship the libraries for these.
46e006a
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
46e006a
f2a6113
%if %{without compat_build}
e8cbe82
# Add a symlink in /usr/bin to clang-format-diff
e8cbe82
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
f2a6113
%endif
e8cbe82
4a6eb83
%check
89c3d8e
%if %{without compat_build}
8dae109
%if %{with check}
4a6eb83
# requires lit.py from LLVM utilities
892c49f
# FIXME: Fix failing ARM tests
cd6d62e
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{__ninja} check-all -C %{__cmake_builddir} || \
892c49f
%ifarch %{arm}
79d093b
:
79d093b
%else
892c49f
false
79d093b
%endif
90e3003
%endif
74e8e23
%endif
ce584ee
ce584ee
89c3d8e
%if %{without compat_build}
4a6eb83
%files
1167eb1
%license LICENSE.TXT
David Goerger 1e780f7
%{clang_binaries}
c473ab9
%{_mandir}/man1/clang.1.gz
d870610
%{_mandir}/man1/clang++.1.gz
d870610
%{_mandir}/man1/clang-%{maj_ver}.1.gz
d870610
%{_mandir}/man1/clang++-%{maj_ver}.1.gz
74e8e23
%endif
4a6eb83
4a6eb83
%files libs
89c3d8e
%if %{without compat_build}
00e1fa9
%{_libdir}/clang/
4a6eb83
%{_libdir}/*.so.*
74e8e23
%else
74e8e23
%{pkg_libdir}/*.so.*
74e8e23
%{pkg_libdir}/clang/%{version}
74e8e23
%endif
4a6eb83
4a6eb83
%files devel
89c3d8e
%if %{without compat_build}
5d6c3ad
%{_libdir}/*.so
4a6eb83
%{_includedir}/clang/
4a6eb83
%{_includedir}/clang-c/
3af19e7
%{_libdir}/cmake/*
4a6eb83
%dir %{_datadir}/clang/
d99713b
%{_rpmmacrodir}/macros.%{name}
74e8e23
%else
5d6c3ad
%{pkg_libdir}/*.so
74e8e23
%{pkg_includedir}/clang/
74e8e23
%{pkg_includedir}/clang-c/
74e8e23
%{pkg_libdir}/cmake/
74e8e23
%endif
4a6eb83
5bff53b
%files resource-filesystem
5bff53b
%dir %{pkg_libdir}/clang/%{version}/
5bff53b
%dir %{pkg_libdir}/clang/%{version}/include/
5bff53b
%dir %{pkg_libdir}/clang/%{version}/lib/
5bff53b
%dir %{pkg_libdir}/clang/%{version}/share/
89c3d8e
%if %{without compat_build}
5bff53b
%{pkg_libdir}/clang/%{maj_ver}
5bff53b
%endif
5bff53b
89c3d8e
%if %{without compat_build}
4a6eb83
%files analyzer
4a6eb83
%{_bindir}/scan-view
4a6eb83
%{_bindir}/scan-build
a5df6c7
%{_bindir}/analyze-build
a5df6c7
%{_bindir}/intercept-build
a5df6c7
%{_bindir}/scan-build-py
6a62f09
%{_libexecdir}/ccc-analyzer
6a62f09
%{_libexecdir}/c++-analyzer
a5df6c7
%{_libexecdir}/analyze-c++
a5df6c7
%{_libexecdir}/analyze-cc
a5df6c7
%{_libexecdir}/intercept-c++
a5df6c7
%{_libexecdir}/intercept-cc
6a62f09
%{_datadir}/scan-view/
6a62f09
%{_datadir}/scan-build/
4a6eb83
%{_mandir}/man1/scan-build.1.*
a5df6c7
%{python3_sitelib}/libear
a5df6c7
%{python3_sitelib}/libscanbuild
a5df6c7
4a6eb83
David Goerger 1e780f7
%files tools-extra
David Goerger 1e780f7
%{clang_tools_binaries}
5e48b7c
%{_bindir}/c-index-test
David Goerger 1e780f7
%{_bindir}/find-all-symbols
David Goerger 1e780f7
%{_bindir}/modularize
e8cbe82
%{_bindir}/clang-format-diff
5e48b7c
%{_mandir}/man1/diagtool.1.gz
5e48b7c
%{_emacs_sitestartdir}/clang-format.el
d0138c6
%{_emacs_sitestartdir}/clang-rename.el
d0138c6
%{_emacs_sitestartdir}/clang-include-fixer.el
5e48b7c
%{_datadir}/clang/clang-format.py*
5e48b7c
%{_datadir}/clang/clang-format-diff.py*
d0ee648
%{_datadir}/clang/clang-include-fixer.py*
d0ee648
%{_datadir}/clang/clang-tidy-diff.py*
a5df6c7
%{_bindir}/run-clang-tidy
d0ee648
%{_datadir}/clang/run-find-all-symbols.py*
d0ee648
%{_datadir}/clang/clang-rename.py*
David Goerger 1e780f7
d8d5392
%files -n git-clang-format
d8d5392
%{_bindir}/git-clang-format
d8d5392
b53704a
%files -n python3-clang
b53704a
%{python3_sitelib}/clang/
b53704a
c9eea4f
74e8e23
%endif
4a6eb83
%changelog
f0fcd73
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.1~rc2-2
f0fcd73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f0fcd73
2932468
* Fri Jan 14 2022 Nikita Popov <npopov@redhat.com> - 13.0.1~rc2-1
2932468
- Update to LLVM 13.0.1rc2
2932468
5b7b147
* Wed Jan 12 2022 Nikita Popov <npopov@redhat.com> - 13.0.1~rc1-1
5b7b147
- Update to LLVM 13.0.1rc1
5b7b147
6699b0a
* Thu Oct 28 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-5
6699b0a
- Make lld the default linker on arm
6699b0a
a6f7984
* Wed Oct 27 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-4
bf0177d
- Remove Conflicts: compiler-rt for newer versions of compiler-rt
bf0177d
fde900e
* Wed Oct 06 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-3
fde900e
- Fix gcc detection with redhat triples
fde900e
2fb038f
* Tue Oct 05 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-2
2fb038f
- Drop abi_revision from soname
2fb038f
bfd11a3
* Fri Oct 01 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
bfd11a3
- 13.0.0 Release
bfd11a3
3752a31
* Sat Sep 18 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-5
3752a31
- 13.0.0-rc3 Release
3752a31
8dae109
* Tue Sep 14 2021 Konrad Kleine <kkleine@redhat.com> - 13.0.0~rc1-4
8dae109
- Add --without=check option
8dae109
6f28841
* Fri Sep 10 2021 sguelton@redhat.com - 13.0.0~rc1-3
6f28841
- Apply scan-build-py intergation patch
6f28841
d99713b
* Thu Sep 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-2
d99713b
- Add macros.clang file
d99713b
a5df6c7
* Fri Aug 06 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
a5df6c7
- 13.0.0-rc1 Release
a5df6c7
f2a6113
* Thu Jul 22 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-3
f2a6113
- Fix compat build
f2a6113
c5f66f8
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
c5f66f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c5f66f8
236196a
* Tue Jul 13 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
236196a
- 12.0.1 Release
236196a
3dd3a6d
* Fri Jul 09 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-2
3dd3a6d
- Fix ambiguous python shebangs
3dd3a6d
2bf74be
* Wed Jun 30 2021 Tom Stellard <tstellar@redhat.com> - clang-12.0.1~rc3-1
2bf74be
- 12.0.1-rc3 Release
2bf74be
8ef0cdb
* Tue Jun 08 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-3
8ef0cdb
- Only enable -funwind-tables by default on Fedora arches
8ef0cdb
696be3e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 12.0.1~rc1-2
696be3e
- Rebuilt for Python 3.10
696be3e
1a54a32
* Thu May 27 2021 Tom Stellard <tstellar@redhat.com> - clang-12.0.1~rc1-1
1a54a32
- 12.0.1-rc1 Release
1a54a32
93869e0
* Tue May 18 2021 sguelton@redhat.com - 12.0.0-2
93869e0
- Use the alternative-managed version of llvm-config
93869e0
81370f3
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.cm> - 12.0.0-1
81370f3
- 12.0.0 Release
81370f3
e8cbe82
* Wed Apr 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-0.12.rc5
e8cbe82
- Add symlink to clang-format-diff in /usr/bin
e8cbe82
- rhbz#1939018
e8cbe82
56c57e4
* Thu Apr 08 2021 sguelton@redhat.com - 12.0.0-0.11.rc5
56c57e4
- New upstream release candidate
56c57e4
3f6550f
* Sat Apr 03 2021 sguelton@redhat.com - 12.0.0-0.10.rc4
3f6550f
- Make pyc files from python3-clang reproducible
3f6550f
e1a8750
* Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.9.rc4
e1a8750
- New upstream release candidate
e1a8750
b4f38b0
* Wed Mar 31 2021 Jonathan Wakely <jwakely@redhat.com> - 12.0.0-0.8.rc3
b4f38b0
- Rebuilt for removed libstdc++ symbols (#1937698)
b4f38b0
c1e69a3
* Mon Mar 15 2021 sguelton@redhat.com - 12.0.0-0.7.rc3
c1e69a3
- Apply patch D97846 to fix rhbz#1934065
c1e69a3
283f230
* Mon Mar 15 2021 Timm Bäder <tbaeder@redhat.com> 12.0.0-0.6.rc3
283f230
- Set CLANG_DEFAULT_UNWIND_LIB instead of using custom patch
283f230
- Add toolchains test to the tests.yml
283f230
6fb3a46
* Thu Mar 11 2021 sguelton@redhat.com - 12.0.0-0.5.rc3
6fb3a46
- LLVM 12.0.0 rc3
6fb3a46
bfcdcf4
* Tue Mar 09 2021 sguelton@redhat.com - 12.0.0-0.4.rc2
bfcdcf4
- rebuilt
bfcdcf4
333b956
* Mon Mar 01 2021 sguelton@redhat.com - 12.0.0-0.3.rc2
333b956
- Reapply some wrongly removed patch
333b956
52abd39
* Wed Feb 24 2021 sguelton@redhat.com - 12.0.0-0.2.rc2
52abd39
- 12.0.0-rc2 release
52abd39
cef168d
* Sun Feb 14 2021 sguelton@redhat.com - 12.0.0-0.1.rc1
cef168d
- 12.0.0-rc1 release
cef168d
cef168d
* Tue Feb 09 2021 Tom Stellard <tstellar@redhat.com> - 11.1.0-0.5.rc2
efa9dd6
- Remove some unnecessary scan-view files
efa9dd6
c631efb
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.1.0-0.4.rc2
c631efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c631efb
58487a9
* Fri Jan 22 2021 Serge Guelton - 11.1.0-0.3.rc2
58487a9
- 11.1.0-rc2 release
58487a9
a60f8bc
* Wed Jan 20 2021 Serge Guelton - 11.1.0-0.2.rc1
a60f8bc
- rebuilt with https://reviews.llvm.org/D94941 applied.
a60f8bc
81f9d35
* Thu Jan 14 2021 Serge Guelton - 11.1.0-0.1.rc1
81f9d35
- 11.1.0-rc1 release
81f9d35
a0ab815
* Wed Jan 06 2021 Serge Guelton - 11.0.1-4
a0ab815
- LLVM 11.0.1 final
a0ab815
42917e7
* Sun Dec 20 2020 sguelton@redhat.com - 11.0.1-3.rc2
42917e7
- llvm 11.0.1-rc2
42917e7
8c1d807
* Wed Dec 16 2020 Tom Stellard <tstellar@redhat.com> - 11.0.1-2.rc1
8c1d807
- Don't build with -flto
8c1d807
ad6c72f
* Tue Dec 01 2020 sguelton@redhat.com - 11.0.1-1.rc1
ad6c72f
- llvm 11.0.1-rc1
ad6c72f
32b8b53
* Thu Oct 29 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-3
32b8b53
- Remove -ffat-lto-objects compiler flag
32b8b53
5bff53b
* Wed Oct 28 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-2
5bff53b
- Add clang-resource-filesystem sub-package
5bff53b
1605d80
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
1605d80
- Fix NVR
1605d80
5964451
* Mon Oct 12 2020 sguelton@redhat.com - 11.0.0-0.7
5964451
- llvm 11.0.0 - final release
5964451
b4a94df
* Thu Oct 08 2020 sguelton@redhat.com - 11.0.0-0.6.rc6
b4a94df
- 11.0.0-rc6
b4a94df
2d021a4
* Fri Oct 02 2020 sguelton@redhat.com - 11.0.0-0.5.rc5
2d021a4
- 11.0.0-rc5 Release
2d021a4
2ac3ba8
* Sun Sep 27 2020 sguelton@redhat.com - 11.0.0-0.4.rc3
2ac3ba8
- Fix NVR
2ac3ba8
e371ba7
* Thu Sep 24 2020 sguelton@redhat.com - 11.0.0-0.1.rc3
e371ba7
- 11.0.0-rc3 Release
e371ba7
70febad
* Tue Sep 22 2020 sguelton@redhat.com - 11.0.0-0.3.rc2
70febad
- Prefer gcc toolchains with libgcc_s
70febad
fd536b6
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.2.rc2
fd536b6
- Normalize some doc directory locations
fd536b6
1167eb1
* Tue Sep 01 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
1167eb1
- 11.0.0-rc2 Release
1167eb1
- Use %%license macro
1167eb1
892c49f
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.2.rc1
892c49f
- Fix test failures
892c49f
46e006a
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
46e006a
- 11.0.0-rc1 Release
46e006a
8c8d9c6
* Tue Aug 04 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-11
8c8d9c6
- Remove Requires: emacs-filesystem
8c8d9c6
01b6b5c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-10
01b6b5c
- Second attempt - Rebuilt for
01b6b5c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
01b6b5c
4c025cd
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 10.0.0-9
4c025cd
- Disable LTO on arm and i686
4c025cd
8eeb41a
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-8
8eeb41a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8eeb41a
82aa4d3
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-7
82aa4d3
- Update cmake macro usage
82aa4d3
- Finalize source verification
82aa4d3
f923b52
* Fri Jun 26 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-6
f923b52
- Add cet.h header
f923b52
e2a664c
* Mon Jun 08 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-5
e2a664c
- Accept multiple --config options
e2a664c
43b5ca7
* Wed Jun  3 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 10.0.0-4
43b5ca7
- Add symlink to %%{_libdir}/clang/%%{maj_ver} for persistent access to the resource directory accross minor version bumps
43b5ca7
a62c5d0
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 10.0.0-3
a62c5d0
- Rebuilt for Python 3.9
a62c5d0
d933922
* Tue May 19 2020 sguelton@redhat.com - 10.0.0-2
d933922
- Backport ad7211df6f257e39da2e5a11b2456b4488f32a1e, see rhbz#1825593
d933922
0c8ce6b
* Thu Mar 26 2020 sguelton@redhat.com - 10.0.0-1
0c8ce6b
- 10.0.0 final
0c8ce6b
80c3a7c
* Tue Mar 24 2020 sguelton@redhat.com - 10.0.0-0.11.rc6
80c3a7c
- 10.0.0 rc6
80c3a7c
dc3ceec
* Sun Mar 22 2020 sguelton@redhat.com - 10.0.0-0.10.rc5
dc3ceec
- Update git-clang-format dependency, see rhbz#1815913
dc3ceec
7a3aee2
* Fri Mar 20 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-0.9.rc5
7a3aee2
- Add dependency on libomp-devel
7a3aee2
fd397b2
* Fri Mar 20 2020 sguelton@redhat.com - 10.0.0-0.8.rc5
fd397b2
- 10.0.0 rc5
fd397b2
dc1e065
* Sat Mar 14 2020 sguelton@redhat.com - 10.0.0-0.7.rc4
dc1e065
- 10.0.0 rc4
dc1e065
b736274
* Thu Mar 12 2020 sguelton@redhat.com - 10.0.0-0.6.rc3
b736274
- Move a few files from clang to clang-tools-extra.
b736274
9264afe
* Thu Mar 05 2020 sguelton@redhat.com - 10.0.0-0.5.rc3
9264afe
- 10.0.0 rc3
9264afe
b45d596
* Tue Feb 25 2020 sguelton@redhat.com - 10.0.0-0.4.rc2
b45d596
- Apply -fdiscard-value-names patch.
b45d596
28cdc98
* Mon Feb 17 2020 sguelton@redhat.com - 10.0.0-0.3.rc2
28cdc98
- Fix NVR
28cdc98
139b5a7
* Fri Feb 14 2020 sguelton@redhat.com - 10.0.0-0.1.rc2
139b5a7
- 10.0.0 rc2
139b5a7
b6fa739
* Tue Feb 11 2020 sguelton@redhat.com - 10.0.0-0.2.rc1
b6fa739
- Explicitly conflicts with any different compiler-rt version, see rhbz#1800705
b6fa739
03d5785
* Fri Jan 31 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-0.1.rc1
03d5785
- Stop shipping individual component libraries
03d5785
- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
03d5785
cf309ff
* Fri Jan 31 2020 sguelton@redhat.com - 10.0.0-0.1.rc1
cf309ff
- 10.0.0 rc1
cf309ff
51cb45d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.1-3
51cb45d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
51cb45d
5baf5a3
* Fri Jan 10 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
5baf5a3
- Fix crash with kernel bpf self-tests
5baf5a3
86a049a
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
86a049a
- 9.0.1 Release
86a049a
4c28031
* Wed Dec 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-3
4c28031
- Add explicit requires for clang-libs to fix rpmdiff errors
4c28031
797f722
* Tue Dec 10 2019 sguelton@redhat.com - 9.0.0-2
797f722
- Activate -funwind-tables on all arches, see rhbz#1655546.
797f722
d04c1c4
* Thu Sep 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
d04c1c4
- 9.0.0 Release
d04c1c4
69ca585
* Wed Sep 11 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.2.rc3
69ca585
- Reduce debug info verbosity on ppc64le to avoid OOM errors in koji
69ca585
1ca4985
* Thu Aug 22 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-0.1.rc3
1ca4985
- 9.0.0 Release candidate 3
1ca4985
7b4d800
* Tue Aug 20 2019 sguelton@redhat.com - 8.0.0-4
7b4d800
- Rebuilt for Python 3.8
7b4d800
86a9d03
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 8.0.0-3.2
86a9d03
- Rebuilt for Python 3.8
86a9d03
b3b8190
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-3.1
b3b8190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b3b8190
0965459
* Thu May 16 2019 sguelton@redhat.com - 8.0.0-3
0965459
- Fix for rhbz#1674031
0965459
32e777c
* Fri Apr 12 2019 sguelton@redhat.com - 8.0.0-2
32e777c
- Remove useless patch thanks to GCC upgrade
32e777c
25a719b
* Wed Mar 20 2019 sguelton@redhat.com - 8.0.0-1
25a719b
- 8.0.0 final
25a719b
cc03e58
* Tue Mar 12 2019 sguelton@redhat.com - 8.0.0-0.6.rc4
cc03e58
- 8.0.0 Release candidate 4
cc03e58
434e918
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.5.rc3
434e918
- Cleanup specfile after llvm dependency update
434e918
b4398f1
* Mon Mar 4 2019 sguelton@redhat.com - 8.0.0-0.4.rc3
b4398f1
- 8.0.0 Release candidate 3
b4398f1
d41e350
* Mon Feb 25 2019 tstellar@redhat.com - 8.0.0-0.3.rc2
d41e350
- Fix compiling with -stdlib=libc++
d41e350
81de65a
* Thu Feb 21 2019 sguelton@redhat.com - 8.0.0-0.2.rc2
0cae14e
- 8.0.0 Release candidate 2
0cae14e
81de65a
* Sat Feb 09 2019 sguelton@redhat.com - 8.0.0-0.1.rc1
b53704a
- 8.0.0 Release candidate 1
b53704a
b4f2f9a
* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-6
b4f2f9a
- Update patch for Python3 port of scan-view
b4f2f9a
734d45a
* Tue Feb 05 2019 sguelton@redhat.com - 7.0.1-5
734d45a
- Working CI test suite
734d45a
dc88066
* Mon Feb 04 2019 sguelton@redhat.com - 7.0.1-4
dc88066
- Workaround gcc-9 bug when compiling bitfields
dc88066
59a913a
* Fri Feb 01 2019 sguelton@redhat.com - 7.0.1-3
dc88066
- Fix uninitialized error detected by gcc-9
59a913a
aa6b830
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.1-2.1
aa6b830
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
aa6b830
1f58b21
* Wed Dec 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-2
1f58b21
- Fix for rhbz#1657544
01e6940
01e6940
* Tue Dec 18 2018 sguelton@redhat.com - 7.0.1-1
01e6940
- 7.0.1
01e6940
d870610
* Tue Dec 18 2018 sguelton@redhat.com - 7.0.0-10
d870610
- Install proper manpage symlinks for clang/clang++ versions
d870610
dbc3861
* Fri Dec 14 2018 sguelton@redhat.com - 7.0.0-9
dbc3861
- No longer Ignore -fstack-clash-protection option
dbc3861
c67fd45
* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-8
c67fd45
- Ensure rpmlint passes on specfile
c67fd45
52edfa5
* Fri Nov 30 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-7
8d37c48
- Drop python2 dependency from clang-tools-extra
52edfa5
d499533
* Wed Nov 21 2018 sguelton@redhat.com - 7.0.0-6
62621b0
- Prune unneeded reference to llvm-test-suite sub-package
62621b0
a37bcb2
* Mon Nov 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-5
a37bcb2
- Run 'make check-all' instead of 'make check-clang'
a37bcb2
b730992
* Mon Nov 19 2018 sergesanspaille <sguelton@redhat.com> - 7.0.0-4
b730992
- Avoid Python2 + Python3 dependency for clang-analyzer
b730992
816ea52
* Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-3
816ea52
- User helper macro to fixup config.h for multilib
816ea52
15d2b4b
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-2
15d2b4b
- Use correct shebang substitution for python scripts
15d2b4b
468c6f2
* Mon Sep 24 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
468c6f2
- 7.0.0 Release
468c6f2
00e1fa9
* Wed Sep 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.16.rc3
00e1fa9
- Move builtin headers into clang-libs sub-package
00e1fa9
fe1772d
* Wed Sep 19 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.15.rc3
fe1772d
- Remove ambiguous python shebangs
fe1772d
5d6c3ad
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.14.rc3
5d6c3ad
- Move unversioned shared objects to devel package
5d6c3ad
3f2f430
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.13.rc3
3f2f430
- Rebuild with new llvm-devel that disables rpath on install
3f2f430
6955c7a
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.12.rc3
6955c7a
- Fix clang++-7 symlink
6955c7a
3f7338a
* Wed Sep 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.11.rc3
3f7338a
- 7.0.0-rc3 Release
3f7338a
2fbc3e1
* Mon Sep 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.10.rc2
2fbc3e1
- Drop siod from llvm-test-suite
2fbc3e1
17d1605
* Fri Sep 07 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.9.rc2
17d1605
- Drop python2 dependency from clang package
17d1605
c823f68
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.8.rc2
c823f68
- Drop all uses of python2 from lit tests
c823f68
5a51a28
* Sat Sep 01 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.7.rc2
5a51a28
- Add Fedora specific version string
5a51a28
462b3d2
* Tue Aug 28 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.6.rc2
462b3d2
- 7.0.0-rc2 Release
462b3d2
f7f5784
* Tue Aug 28 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.5.rc1
f7f5784
- Enable unit tests
f7f5784
52c2187
* Fri Aug 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.4.rc1
52c2187
- Move llvm-test-suite into a sub-package
52c2187
68eed61
* Fri Aug 17 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.3.rc1
68eed61
- Recommend the same version of compiler-rt
68eed61
599360b
* Wed Aug 15 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.2.rc1
599360b
- Rebuild for f30
599360b
7761cfa
* Mon Aug 13 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-0.1.rc1
7761cfa
- 7.0.0-rc1 Release
7761cfa
74e8e23
* Mon Jul 23 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
74e8e23
- Sync spec file with the clang6.0 package
74e8e23
2b91340
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-2
2b91340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2b91340
6f8d08d
* Tue Jun 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
6f8d08d
- 6.0.1 Release
6f8d08d
47c2db1
* Wed Jun 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.2.rc2
47c2db1
- 6.0.1-rc2
47c2db1
8d35cec
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.1.rc1
8d35cec
- 6.0.1-rc1 Release
8d35cec
ee5cc3e
* Fri Mar 23 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-5
ee5cc3e
- Add a clang++-{version} symlink rhbz#1534098
ee5cc3e
79d093b
* Thu Mar 22 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-4
79d093b
- Use correct script for running lit tests
79d093b
63bf60b
* Wed Mar 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-3
63bf60b
- Fix toolchain detection so we don't default to using cross-compilers:
63bf60b
  rhbz#1482491
63bf60b
5e7e9e3
* Mon Mar 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
5e7e9e3
- Add Provides: clang(major) rhbz#1547444
5e7e9e3
b425aea
* Fri Mar 09 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
b425aea
- 6.0.0 Release
b425aea
90e9f0b
* Mon Feb 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.6.rc2
90e9f0b
- 6.0.0-rc2 Release
90e9f0b
cdab058
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.5.rc1
cdab058
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cdab058
d0ee648
* Thu Feb 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.4.rc1
d0ee648
- Package python helper scripts for tools
d0ee648
4b5a3e5
* Fri Jan 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc1
4b5a3e5
- Ignore -fstack-clash-protection option instead of giving an error
4b5a3e5
d0138c6
* Fri Jan 26 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.2.rc1
d0138c6
- Package emacs integration files
d0138c6
4058470
* Wed Jan 24 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
4058470
- 6.0.0-rc1 Release
4058470
ae7609a
* Wed Jan 24 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-3
ae7609a
- Rebuild against llvm5.0 compatibility package
ae7609a
- rhbz#1538231
ae7609a
0e2c86c
* Wed Jan 03 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.0.1-2
0e2c86c
- Update Python 2 dependency declarations to new packaging standards
0e2c86c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0e2c86c
0b04eda
* Wed Dec 20 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
0b04eda
- 5.0.1 Release
0b04eda
af6de8b
* Wed Dec 13 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-3
af6de8b
- Make compiler-rt a weak dependency and add a weak dependency on libomp
af6de8b
8d741f3
* Mon Nov 06 2017 Merlin Mathesius <mmathesi@redhat.com> - 5.0.0-2
8d741f3
- Cleanup spec file conditionals
8d741f3
b81322c
* Mon Oct 16 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
b81322c
- 5.0.0 Release
b81322c
c9eea4f
* Wed Oct 04 2017 Rex Dieter <rdieter@fedoraproject.org> - 4.0.1-6
c9eea4f
- python2-clang subpkg (#1490997)
c9eea4f
- tools-extras: tighten (internal) -libs dep
c9eea4f
- %%install: avoid cd
c9eea4f
d8d5392
* Wed Aug 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-5
d8d5392
- Add Requires: python for git-clang-format
d8d5392
3af19e7
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 4.0.1-4
3af19e7
- Rebuilt for AutoReq cmake-filesystem
3af19e7
ce9e3af
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
ce9e3af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ce9e3af
5166350
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
5166350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5166350
521bee1
* Fri Jun 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
521bee1
- 4.0.1 Release.
521bee1
89ced16
* Fri Jun 16 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-8
89ced16
- Enable make check-clang
89ced16
497e404
* Mon Jun 12 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-7
497e404
- Package git-clang-format
497e404
c473ab9
* Thu Jun 08 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-6
c473ab9
- Generate man pages
c473ab9
77fcedd
* Thu Jun 08 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-5
77fcedd
- Ignore test-suite failures until all arches are fixed.
77fcedd
ce584ee
* Mon Apr 03 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
ce584ee
- Run llvm test-suite
ce584ee
f38da92
* Mon Mar 27 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
f38da92
- Enable eh/rtti, which are required by lldb.
f38da92
5617ce0
* Fri Mar 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
5617ce0
- Fix clang-tools-extra build
5617ce0
- Fix install
5617ce0
018a18d
* Thu Mar 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
35b5199
- clang 4.0.0 final release
35b5199
David Goerger 1e780f7
* Mon Mar 20 2017 David Goerger <david.goerger@yale.edu> - 3.9.1-3
David Goerger 1e780f7
- add clang-tools-extra rhbz#1328091
David Goerger 1e780f7
455a190
* Thu Mar 16 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-2
455a190
- Enable build-id by default rhbz#1432403
455a190
7dd65de
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
7dd65de
- clang 3.9.1 final release
7dd65de
dda9809
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
dda9809
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dda9809
0b2ece3
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.9.0-3
0b2ece3
- Add Requires: compiler-rt to clang-libs.
0b2ece3
- Without this, compiling with certain CFLAGS breaks.
0b2ece3
3137849
* Tue Nov  1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.0-2
3137849
- Rebuild for new arches
3137849
7816b61
* Fri Oct 14 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
7816b61
- clang 3.9.0 final release
7816b61
fd63610
* Fri Jul 01 2016 Stephan Bergmann <sbergman@redhat.com> - 3.8.0-2
fd63610
- Resolves: rhbz#1282645 add GCC abi_tag support
fd63610
0706e2f
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
0706e2f
- clang 3.8.0 final release
0706e2f
679f934
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.4
679f934
- clang 3.8.0rc3
679f934
086d270
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.3
086d270
- package all libs into clang-libs.
086d270
b486bb1
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
b486bb1
- enable dynamic linking of clang against llvm
b486bb1
6a62f09
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
6a62f09
- clang 3.8.0rc2
6a62f09
61789e8
* Fri Feb 12 2016 Dave Airlie <airlied@redhat.com> 3.7.1-4
61789e8
- rebuild against latest llvm packages
650e4fe
- add BuildRequires llvm-static
61789e8
f615040
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3
f615040
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f615040
7e4861f
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-2
7e4861f
- just accept clang includes moving to /usr/lib64, upstream don't let much else happen
7e4861f
7e4861f
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-1
7e4861f
- initial build in Fedora.
7e4861f
4a6eb83
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
4a6eb83
- initial version using cmake build system