Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb51574' into 'master'
Split llvm and clang libs to separate packages

See merge request mer-core/llvm!13
  • Loading branch information
Matti Kosola committed Jan 29, 2021
2 parents 0096e7e + 43d6253 commit 30b9621
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
16 changes: 13 additions & 3 deletions rpm/clang.spec
Expand Up @@ -63,6 +63,7 @@ Requires: libstdc++-devel
Requires: gcc-c++

Provides: clang(major) = %{maj_ver}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description
clang: noun
Expand All @@ -74,11 +75,17 @@ 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.

%package libs
Summary: Runtime library for clang

%description libs
Runtime library for clang.

%package devel
Summary: Development header files for clang
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development header files for clang
Requires: %{name}%{?_isa} = %{version}-%{release}
# The clang CMake files reference tools from clang-tools-extra.
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}

%description devel
Development header files for clang.
Expand Down Expand Up @@ -198,6 +205,9 @@ popd
%files
%license clang/LICENSE.TXT
%{clang_binaries}

%files libs
%license clang/LICENSE.TXT
%{_libdir}/clang/
%{_libdir}/*.so.*

Expand Down
14 changes: 12 additions & 2 deletions rpm/llvm.spec
Expand Up @@ -26,6 +26,7 @@ Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake, ninja
BuildRequires: gcc, python3-base
Requires: %{name}-libs = %{version}-%{release}

%description
LLVM is a compiler infrastructure designed for compile-time, link-time, runtime,
Expand All @@ -37,10 +38,16 @@ languages is in development. The compiler infrastructure
includes mirror sets of programming tools as well as libraries with equivalent
functionality.

%package libs
Summary: LLVM shared libraries

%description libs
Shared libraries for the LLVM compiler infrastructure.

%package devel
Summary: Libraries and Header Files for LLVM
Group: Development/Tools
Requires: %{name} = %{version}
Requires: %{name} = %{version}-%{release}

%description devel
LLVM Header files
Expand Down Expand Up @@ -104,9 +111,12 @@ popd
%defattr(-, root, root)
%license llvm/LICENSE.TXT
%{_bindir}/*
%{_datadir}/opt-viewer

%files libs
%license llvm/LICENSE.TXT
%{_libdir}/*.so.*
%{_libdir}/libLLVM-*.so
%{_datadir}/opt-viewer

%files devel
%defattr(-, root, root)
Expand Down

0 comments on commit 30b9621

Please sign in to comment.