mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
fish.spec: add dependency on newer GCC on old platforms
Moving to C++11 requires a newer compiler on old systems; our Open Build Service repository has a newer version available for RHEL 5 & 6 builds.
This commit is contained in:
parent
eb3ed2680b
commit
599089de80
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,10 @@ URL: http://fishshell.com/
|
|||
Source0: %{name}_@VERSION@.orig.tar.gz
|
||||
BuildRequires: ncurses-devel gettext gcc-c++ autoconf
|
||||
|
||||
%if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7
|
||||
BuildRequires: gcc48 gcc48-c++
|
||||
%endif
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Requires: bc
|
||||
|
@ -34,6 +38,10 @@ is simple but incompatible with other shell languages.
|
|||
%setup -q -n %{name}-@VERSION@
|
||||
|
||||
%build
|
||||
%if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7
|
||||
export CC=gcc48
|
||||
export CXX=g++48
|
||||
%endif
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
|
Loading…
Reference in a new issue