Blame SPECS/clang.spec

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