mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
ab194f104b
* %check: export LD_LIBRARY_PATH because runtimes use external cmake projects that wouldn't find libclang++.so * %check: use LLVM's LIT_XFAIL to mark tests that are expected to fail and don't just delete them * clang: bring over *.patch files * clang: remove build requires tags from clang package that are already defined by main llvm package * clang: remove duplicates found in llvm globals and use %{pkg_datadir} instead of %{install_datadir} * clang: rename and use pkg_name -> pkg_name_clang * clang: use %{pkg_name_clang} instead of %{name} * compiler-rt and libomp: wrap in %if %{without compat_build} * libomp: also build libomp for s390x (See https://github.com/llvm/llvm-project/pull/66081) * libomp: exclude libomp-devel on s390x just like libomp itself * libomp: introduce pkg_name_libomp and cleanup the globals * libomp: remove gdb-plugin (NEED TO CONFIRM IF THIS IS REALLY TRUE) * libomp: filter out flaky libomp test: ompt/teams/distribute_dispatch.c * llvm: add BuildRequires: graphviz to llvm-doc * llvm: use %{pkg_name_llvm} instead of %{name} * make: added temporary Makefile so I can more easily run srpm or rpm builds locally * make: Added local-tmt-vm target (not really useful yet) * rpm: for non-RHEL add prefix like "Jan 05 16:17:06" to every log line This should help in finding out how long things take to build/install/... * rpm: fully specify %files for top-level packages * rpm: make all packages fully qualified * rpm: obsolete llvm-snapshot-builder * rpm: remove BuildRequires: python3-lit because we have it in-tree * rpm: remove BuildRequires: tags for clang and llvm specifics as we're building in-tree * rpm: rename %llvm_srcdir -> %srcdir_llvm * rpm: rename %pkg_name -> %pkg_name_llvm * rpm: use full qualified name in %description * rpm: use region comments in spec file to group by package. This allows editors to fold text to get a better overview * rpmlint: update rc file to reflect clang and compiler-rt (libomp has no rpmlint rc file) * use python-lit from within tree
296 lines
8.9 KiB
PHP
296 lines
8.9 KiB
PHP
#region LLVM packages
|
|
|
|
%package -n %{pkg_name_llvm}-devel
|
|
Summary: Libraries and header files for LLVM
|
|
Requires: %{pkg_name_llvm}%{?_isa} = %{version}-%{release}
|
|
Requires: %{pkg_name_llvm}-libs%{?_isa} = %{version}-%{release}
|
|
# The installed LLVM cmake files will add -ledit to the linker flags for any
|
|
# app that requires the libLLVMLineEditor, so we need to make sure
|
|
# libedit-devel is available.
|
|
Requires: libedit-devel
|
|
# The installed cmake files reference binaries from llvm-test, llvm-static, and
|
|
# llvm-gtest. We tried in the past to split the cmake exports for these binaries
|
|
# out into separate files, so that llvm-devel would not need to Require these packages,
|
|
# but this caused bugs (rhbz#1773678) and forced us to carry two non-upstream
|
|
# patches.
|
|
Requires: %{pkg_name_llvm}-static%{?_isa} = %{version}-%{release}
|
|
%if %{without compat_build}
|
|
Requires: %{pkg_name_llvm}-test%{?_isa} = %{version}-%{release}
|
|
Requires: %{pkg_name_llvm}-googletest%{?_isa} = %{version}-%{release}
|
|
%endif
|
|
|
|
|
|
Requires(post): %{_sbindir}/alternatives
|
|
Requires(postun): %{_sbindir}/alternatives
|
|
|
|
Provides: llvm-devel(major) = %{maj_ver}
|
|
|
|
%description -n %{pkg_name_llvm}-devel
|
|
This package contains library and header files needed to develop new native
|
|
programs that use the LLVM infrastructure.
|
|
|
|
%package -n %{pkg_name_llvm}-doc
|
|
Summary: Documentation for LLVM
|
|
BuildArch: noarch
|
|
BuildRequires: graphviz
|
|
Requires: %{pkg_name_llvm} = %{version}-%{release}
|
|
|
|
%description -n %{pkg_name_llvm}-doc
|
|
Documentation for the LLVM compiler infrastructure.
|
|
|
|
%package -n %{pkg_name_llvm}-libs
|
|
Summary: LLVM shared libraries
|
|
|
|
%description -n %{pkg_name_llvm}-libs
|
|
Shared libraries for the LLVM compiler infrastructure.
|
|
|
|
%package -n %{pkg_name_llvm}-static
|
|
Summary: LLVM static libraries
|
|
Conflicts: %{pkg_name_llvm}-devel < 8
|
|
|
|
Provides: llvm-static(major) = %{maj_ver}
|
|
|
|
%description -n %{pkg_name_llvm}-static
|
|
Static libraries for the LLVM compiler infrastructure.
|
|
|
|
%package -n %{pkg_name_llvm}-cmake-utils
|
|
Summary: CMake utilities shared across LLVM subprojects
|
|
|
|
%description -n %{pkg_name_llvm}-cmake-utils
|
|
CMake utilities shared across LLVM subprojects.
|
|
This is for internal use by LLVM packages only.
|
|
|
|
%if %{without compat_build}
|
|
|
|
%package -n %{pkg_name_llvm}-test
|
|
Summary: LLVM regression tests
|
|
Requires: %{pkg_name_llvm}%{?_isa} = %{version}-%{release}
|
|
Requires: %{pkg_name_llvm}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: llvm-test(major) = %{maj_ver}
|
|
|
|
%description -n %{pkg_name_llvm}-test
|
|
LLVM regression tests.
|
|
|
|
%package -n %{pkg_name_llvm}-googletest
|
|
Summary: LLVM's modified googletest sources
|
|
|
|
%description -n %{pkg_name_llvm}-googletest
|
|
LLVM's modified googletest sources.
|
|
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region CLANG packages
|
|
|
|
%package -n %{pkg_name_clang}
|
|
Summary: A C language family front-end for LLVM
|
|
|
|
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
|
URL: http://llvm.org
|
|
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: perl-generators
|
|
|
|
# According to https://fedoraproject.org/wiki/Packaging:Emacs a package
|
|
# should BuildRequires: emacs if it packages emacs integration files.
|
|
BuildRequires: emacs
|
|
|
|
BuildRequires: libatomic
|
|
|
|
%if %{without compat_build}
|
|
# For reproducible pyc file generation
|
|
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
|
BuildRequires: /usr/bin/marshalparser
|
|
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
|
|
%endif
|
|
|
|
# scan-build uses these perl modules so they need to be installed in order
|
|
# to run the tests.
|
|
BuildRequires: perl(Digest::MD5)
|
|
BuildRequires: perl(File::Copy)
|
|
BuildRequires: perl(File::Find)
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(FindBin)
|
|
BuildRequires: perl(Hash::Util)
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(Term::ANSIColor)
|
|
BuildRequires: perl(Text::ParseWords)
|
|
BuildRequires: perl(Sys::Hostname)
|
|
|
|
Requires: %{pkg_name_clang}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
# clang requires gcc, clang++ requires libstdc++-devel
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
|
|
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
|
|
Requires: libstdc++-devel
|
|
Requires: gcc-c++
|
|
|
|
Provides: clang(major) = %{maj_ver}
|
|
|
|
Conflicts: compiler-rt < 11.0.0
|
|
|
|
%description -n %{pkg_name_clang}
|
|
clang: noun
|
|
1. A loud, resonant, metallic sound.
|
|
2. The strident call of a crane or goose.
|
|
3. C-language family front-end toolkit.
|
|
|
|
The goal of the Clang project is to create a new C, C++, Objective C
|
|
and Objective C++ front-end for the LLVM compiler. Its tools are built
|
|
as libraries and designed to be loosely-coupled and extensible.
|
|
|
|
Install compiler-rt if you want the Blocks C language extension or to
|
|
enable sanitization and profiling options when building, and
|
|
libomp-devel to enable -fopenmp.
|
|
|
|
%package -n %{pkg_name_clang}-libs
|
|
Summary: Runtime library for clang
|
|
Requires: %{pkg_name_clang}-resource-filesystem%{?_isa} = %{version}
|
|
Recommends: compiler-rt%{?_isa} = %{version}
|
|
# atomic support is not part of compiler-rt
|
|
Recommends: libatomic%{?_isa}
|
|
# libomp-devel is required, so clang can find the omp.h header when compiling
|
|
# with -fopenmp.
|
|
Recommends: libomp-devel%{_isa} = %{version}
|
|
Recommends: libomp%{_isa} = %{version}
|
|
|
|
# Use lld as the default linker on ARM due to rhbz#1918924
|
|
%ifarch %{arm}
|
|
Requires: lld
|
|
%endif
|
|
|
|
%description -n %{pkg_name_clang}-libs
|
|
Runtime library for clang.
|
|
|
|
%package -n %{pkg_name_clang}-devel
|
|
Summary: Development header files for clang
|
|
Requires: %{pkg_name_clang}-libs = %{version}-%{release}
|
|
%if %{without compat_build}
|
|
Requires: %{pkg_name_clang}%{?_isa} = %{version}-%{release}
|
|
# The clang CMake files reference tools from clang-tools-extra.
|
|
Requires: %{pkg_name_clang}-tools-extra%{?_isa} = %{version}-%{release}
|
|
%endif
|
|
|
|
%description -n %{pkg_name_clang}-devel
|
|
Development header files for clang.
|
|
|
|
%package -n %{pkg_name_clang}-resource-filesystem
|
|
Summary: Filesystem package that owns the clang resource directory
|
|
Provides: %{pkg_name_clang}-resource-filesystem(major) = %{maj_ver}
|
|
|
|
%description -n %{pkg_name_clang}-resource-filesystem
|
|
This package owns the clang resouce directory: $libdir/clang/$version/
|
|
|
|
%if %{without compat_build}
|
|
%package -n %{pkg_name_clang}-analyzer
|
|
Summary: A source code analysis framework
|
|
License: Apache-2.0 WITH LLVM-exception OR NCSA OR MIT
|
|
BuildArch: noarch
|
|
Requires: %{pkg_name_clang} = %{version}-%{release}
|
|
|
|
%description -n %{pkg_name_clang}-analyzer
|
|
The Clang Static Analyzer consists of both a source code analysis
|
|
framework and a standalone tool that finds bugs in C and Objective-C
|
|
programs. The standalone tool is invoked from the command-line, and is
|
|
intended to run in tandem with a build of a project or code base.
|
|
|
|
%package -n %{pkg_name_clang}-tools-extra
|
|
Summary: Extra tools for clang
|
|
Requires: %{pkg_name_clang}-libs%{?_isa} = %{version}-%{release}
|
|
Requires: emacs-filesystem
|
|
|
|
%description -n %{pkg_name_clang}-tools-extra
|
|
A set of extra tools built using Clang's tooling API.
|
|
|
|
%package -n %{pkg_name_clang}-tools-extra-devel
|
|
Summary: Development header files for clang tools
|
|
Requires: %{pkg_name_clang}-tools-extra = %{version}-%{release}
|
|
|
|
%description -n %{pkg_name_clang}-tools-extra-devel
|
|
Development header files for clang tools.
|
|
|
|
# Put git-clang-format in its own package, because it Requires git
|
|
# and we don't want to force users to install all those dependenices if they
|
|
# just want clang.
|
|
%package -n git-clang-format
|
|
Summary: Integration of clang-format for git
|
|
Requires: %{pkg_name_clang}-tools-extra = %{version}-%{release}
|
|
Requires: git
|
|
Requires: python3
|
|
|
|
%description -n git-clang-format
|
|
clang-format integration for git.
|
|
|
|
|
|
%package -n python3-clang
|
|
Summary: Python3 bindings for clang
|
|
Requires: %{pkg_name_clang}-devel%{?_isa} = %{version}-%{release}
|
|
Requires: python3
|
|
%description -n python3-clang
|
|
%{summary}.
|
|
|
|
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region COMPILER-RT packages
|
|
|
|
%if %{without compat_build}
|
|
|
|
%package -n %{pkg_name_compiler_rt}
|
|
Summary: LLVM "compiler-rt" runtime libraries
|
|
|
|
License: Apache-2.0 WITH LLVM-exception OR NCSA OR MIT
|
|
URL: http://llvm.org
|
|
|
|
BuildRequires: python3
|
|
|
|
Requires: clang-resource-filesystem%{?isa} = %{version}
|
|
|
|
%description -n %{pkg_name_compiler_rt}
|
|
The compiler-rt project is a part of the LLVM project. It provides
|
|
implementation of the low-level target-specific hooks required by
|
|
code generation, sanitizer runtimes and profiling library for code
|
|
instrumentation, and Blocks C language extension.
|
|
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region OPENMP packages
|
|
|
|
%if %{without compat_build}
|
|
|
|
%package -n %{pkg_name_libomp}
|
|
Summary: OpenMP runtime for clang
|
|
|
|
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
|
URL: http://openmp.llvm.org
|
|
|
|
# For clang-offload-packager
|
|
BuildRequires: elfutils-libelf-devel
|
|
BuildRequires: perl
|
|
BuildRequires: perl-Data-Dumper
|
|
BuildRequires: perl-Encode
|
|
BuildRequires: libffi-devel
|
|
|
|
Requires: elfutils-libelf%{?isa}
|
|
|
|
%description -n %{pkg_name_libomp}
|
|
OpenMP runtime for clang.
|
|
|
|
%package -n %{pkg_name_libomp}-devel
|
|
Summary: OpenMP header files
|
|
Requires: %{name}%{?isa} = %{version}-%{release}
|
|
Requires: clang-resource-filesystem%{?isa} = %{version}
|
|
|
|
%description -n %{pkg_name_libomp}-devel
|
|
OpenMP header files.
|
|
|
|
%endif
|
|
|
|
#endregion
|