Accepting request 674183 from home:glaubitz:branches:devel:tools:compiler

- Remove ppc from Exclude field in spec file
- Allow use of Gold linker to be conditional
- Disable Gold linker on ppc

OBS-URL: https://build.opensuse.org/request/show/674183
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=519
This commit is contained in:
Michal Srb 2019-02-13 10:18:05 +00:00 committed by Git OBS Bridge
parent 91c9d99272
commit 448655ca5c
2 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 12 16:33:33 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Remove ppc from Exclude field in spec file
- Allow use of Gold linker to be conditional
- Disable Gold linker on ppc
-------------------------------------------------------------------
Mon Jan 14 15:39:53 UTC 2019 - msrb@suse.com

View File

@ -12,10 +12,16 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%ifarch ppc
%bcond_with gold
%else
%bcond_without gold
%endif
%define _sonum 7
%ifarch x86_64
%define has_lldb 1
@ -42,7 +48,9 @@ BuildRequires: llvm%{_sonum} = %{version}
BuildRequires: llvm%{_sonum}-LTO-devel = %{version}
BuildRequires: llvm%{_sonum}-devel = %{version}
BuildRequires: llvm%{_sonum}-emacs-plugins = %{version}
%if %{with gold}
BuildRequires: llvm%{_sonum}-gold = %{version}
%endif
BuildRequires: llvm%{_sonum}-vim-plugins = %{version}
Requires: llvm%{_sonum} = %{version}
%if 0%{?has_lldb}
@ -53,7 +61,7 @@ BuildRequires: lldb%{_sonum}-devel = %{version}
BuildRequires: python3-lldb%{_sonum} = %{version}
%endif
# Mirrors ExcludeArch in llvm%{_sonum}
ExcludeArch: ppc s390
ExcludeArch: s390
%description
LLVM is a compiler infrastructure designed for compile-time,
@ -71,7 +79,9 @@ don't require a specific LLVM version should depend on this.
Summary: Header Files for LLVM
Group: Development/Languages/Other
Requires: llvm%{_sonum}-devel = %{version}
%if %{with gold}
Requires: llvm-gold
%endif
%description devel
This package contains library and header files needed to develop
@ -140,6 +150,7 @@ 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.
%if %{with gold}
%package gold
Summary: Gold linker plugin for LLVM
Group: Development/Languages/Other
@ -151,6 +162,7 @@ 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.
%endif
%package vim-plugins
Summary: Vim plugins for LLVM
@ -245,8 +257,10 @@ echo "This is a dummy package to provide a dependency on the system compiler." >
%files -n clang-checker
%doc README
%if %{with gold}
%files gold
%doc README
%endif
%files devel
%doc README