Make rust-lldb arch-specific to deal with lldb deps

This commit is contained in:
Josh Stone 2017-03-20 12:09:48 -07:00
parent c34ccf6a5e
commit 9245da2d8a
1 changed files with 15 additions and 7 deletions

View File

@ -32,18 +32,23 @@
%bcond_with bundled_llvm %bcond_with bundled_llvm
%endif %endif
# LLDB only works on some architectures
%ifarch %{arm} aarch64 %{ix86} x86_64
# LLDB isn't available everywhere... # LLDB isn't available everywhere...
%if 0%{?rhel} %if !0%{?rhel}
%bcond_with lldb
%else
%bcond_without lldb %bcond_without lldb
%else
%bcond_with lldb
%endif
%else
%bcond_with lldb
%endif %endif
Name: rust Name: rust
Version: 1.16.0 Version: 1.16.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: The Rust Programming Language Summary: The Rust Programming Language
License: (ASL 2.0 or MIT) and (BSD and ISC and MIT) License: (ASL 2.0 or MIT) and (BSD and ISC and MIT)
# ^ written as: (rust itself) and (bundled libraries) # ^ written as: (rust itself) and (bundled libraries)
@ -207,10 +212,10 @@ programs.
%package lldb %package lldb
Summary: LLDB pretty printers for Rust Summary: LLDB pretty printers for Rust
BuildArch: noarch
# LLDB is only available on some architectures # It could be noarch, but lldb has limited availability
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 #BuildArch: noarch
Requires: lldb Requires: lldb
Requires: python-lldb Requires: python-lldb
@ -413,6 +418,9 @@ make check || :
%changelog %changelog
* Mon Mar 20 2017 Josh Stone <jistone@redhat.com> - 1.16.0-3
- Make rust-lldb arch-specific to deal with lldb deps
* Fri Mar 17 2017 Josh Stone <jistone@redhat.com> - 1.16.0-2 * Fri Mar 17 2017 Josh Stone <jistone@redhat.com> - 1.16.0-2
- Limit rust-lldb arches - Limit rust-lldb arches