OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=482
284 lines
8.4 KiB
RPMSpec
284 lines
8.4 KiB
RPMSpec
#
|
|
# spec file for package llvm
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _sonum 3_8
|
|
Name: llvm
|
|
Version: 3.8.1
|
|
Release: 0
|
|
Summary: Low Level Virtual Machine
|
|
License: NCSA
|
|
Group: Development/Languages/Other
|
|
Url: http://www.llvm.org
|
|
# This file documents the process for updating llvm
|
|
Source0: README.packaging
|
|
Source101: baselibs.conf
|
|
# Avoid multiple providers error
|
|
BuildRequires: clang%{_sonum} = %{version}
|
|
BuildRequires: clang%{_sonum}-checker = %{version}
|
|
BuildRequires: clang%{_sonum}-devel = %{version}
|
|
BuildRequires: llvm%{_sonum} = %{version}
|
|
BuildRequires: llvm%{_sonum}-LTO-devel = %{version}
|
|
BuildRequires: llvm%{_sonum}-devel = %{version}
|
|
BuildRequires: llvm%{_sonum}-emacs-plugins = %{version}
|
|
BuildRequires: llvm%{_sonum}-gold = %{version}
|
|
BuildRequires: llvm%{_sonum}-vim-plugins = %{version}
|
|
# Avoid cycles
|
|
#!BuildIgnore: emacs
|
|
#!BuildIgnore: vim
|
|
%ifarch arm x86_64
|
|
BuildRequires: lldb%{_sonum} = %{version}
|
|
BuildRequires: lldb%{_sonum}-devel = %{version}
|
|
BuildRequires: python%{_sonum}-lldb = %{version}
|
|
%endif
|
|
Requires: llvm%{_sonum} = %{version}
|
|
|
|
%description
|
|
LLVM is a compiler infrastructure designed for compile-time,
|
|
link-time, runtime, and idle-time optimization of programs from
|
|
arbitrary programming languages.
|
|
|
|
The compiler infrastructure includes mirror sets of programming
|
|
tools as well as libraries with equivalent functionality.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package devel
|
|
Summary: Header Files for LLVM
|
|
Group: Development/Languages/Other
|
|
Requires: llvm%{_sonum}-devel = %{version}
|
|
Requires: llvm-gold
|
|
|
|
%description devel
|
|
This package contains library and header files needed to develop
|
|
new native programs that use the LLVM infrastructure.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm-devel that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package -n clang
|
|
Summary: CLANG frontend for LLVM
|
|
Group: Development/Languages/Other
|
|
Requires: clang%{_sonum} = %{version}
|
|
Provides: llvm-clang = %{version}
|
|
Obsoletes: llvm-clang < %{version}
|
|
|
|
%description -n clang
|
|
This package contains the clang (C language) frontend for LLVM.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
clang that openSUSE currently supports. Packages that
|
|
don't require a specific Clang version should depend on this.
|
|
|
|
|
|
%package -n clang-checker
|
|
Summary: Static code analyzer for CLANG
|
|
Group: Development/Languages/Other
|
|
Requires: clang%{_sonum}-checker = %{version}
|
|
Provides: llvm-clang-checker = %{version}
|
|
Obsoletes: llvm-clang-checker < %{version}
|
|
|
|
%description -n clang-checker
|
|
This package contains scan-build and scan-view, command line
|
|
static code analyzers for CLANG.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
clang-checker that openSUSE currently supports. Packages that
|
|
don't require a specific Clang version should depend on this.
|
|
|
|
|
|
%package -n clang-devel
|
|
Summary: CLANG frontend for LLVM (devel package)
|
|
Group: Development/Languages/Other
|
|
Requires: clang%{_sonum}-devel = %{version}
|
|
Provides: llvm-clang-devel = %{version}
|
|
Obsoletes: llvm-clang-devel < %{version}
|
|
|
|
%description -n clang-devel
|
|
This package contains the clang (C language) frontend for LLVM.
|
|
(development files)
|
|
|
|
This package is a dummy package that depends on the version of
|
|
clang-devel that openSUSE currently supports. Packages that
|
|
don't require a specific Clang version should depend on this.
|
|
|
|
|
|
%package LTO-devel
|
|
Summary: Link-time optimizer for LLVM (devel package)
|
|
Group: Development/Languages/Other
|
|
Requires: llvm%{_sonum}-LTO-devel = %{version}
|
|
|
|
%description LTO-devel
|
|
This package contains the link-time optimizer for LLVM.
|
|
(development files)
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm-LTO-devel that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package gold
|
|
Summary: Gold linker plugin for LLVM
|
|
Group: Development/Languages/Other
|
|
Requires: llvm%{_sonum}-gold = %{version}
|
|
|
|
%description gold
|
|
This package contains the Gold linker plugin for LLVM.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm-gold that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package vim-plugins
|
|
Summary: Vim plugins for LLVM
|
|
Group: Productivity/Text/Editors
|
|
Requires: llvm%{_sonum}-vim-plugins = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description vim-plugins
|
|
This package contains vim plugins for LLVM like syntax highlighting.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm-vim-plugins that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package emacs-plugins
|
|
Summary: Emacs plugins for LLVM
|
|
Group: Productivity/Text/Editors
|
|
Requires: llvm%{_sonum}-emacs-plugins = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description emacs-plugins
|
|
This package contains Emacs plugins for LLVM like syntax highlighting.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
llvm-emacs-plugins that openSUSE currently supports. Packages that
|
|
don't require a specific LLVM version should depend on this.
|
|
|
|
|
|
%package -n lldb
|
|
Summary: Software debugger built using LLVM libraries
|
|
Group: Development/Tools/Debuggers
|
|
Requires: lldb%{_sonum} = %{version}
|
|
|
|
%description -n lldb
|
|
LLDB is a next generation, high-performance debugger. It is built as a set
|
|
of reusable components which highly leverage existing libraries in the
|
|
larger LLVM Project, such as the Clang expression parser and LLVM
|
|
disassembler.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
lldb that openSUSE currently supports. Packages that
|
|
don't require a specific LLDB version should depend on this.
|
|
|
|
|
|
%package -n lldb-devel
|
|
Summary: Development files for LLDB
|
|
Group: Development/Languages/Other
|
|
Requires: lldb%{_sonum}-devel = %{version}
|
|
|
|
%description -n lldb-devel
|
|
This package contains the development files for LLDB.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
lldb-devel that openSUSE currently supports. Packages that
|
|
don't require a specific LLDB version should depend on this.
|
|
|
|
|
|
%package -n python-lldb
|
|
Summary: Python bindings for liblldb
|
|
Group: Development/Languages/Python
|
|
Requires: python%{_sonum}-lldb = %{version}
|
|
|
|
%description -n python-lldb
|
|
This package contains the Python bindings to clang (C language) frontend for LLVM.
|
|
|
|
This package is a dummy package that depends on the version of
|
|
python-lldb that openSUSE currently supports. Packages that
|
|
don't require a specific LLDB version should depend on this.
|
|
|
|
|
|
%prep
|
|
# Not needed
|
|
|
|
%build
|
|
echo "This is a dummy package to provide a dependency on the system compiler." > README
|
|
|
|
%install
|
|
# Not needed
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files -n clang
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files -n clang-checker
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files gold
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc README
|
|
|
|
%files -n clang-devel
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files LTO-devel
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files emacs-plugins
|
|
%defattr(-,root,root,-)
|
|
%doc README
|
|
|
|
%files vim-plugins
|
|
%defattr(-,root,root,-)
|
|
%doc README
|
|
|
|
%ifarch arm x86_64
|
|
|
|
%files -n lldb
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files -n lldb-devel
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%files -n python-lldb
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%endif
|
|
|
|
%changelog
|