mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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
|
Source0: %{name}_@VERSION@.orig.tar.gz
|
||||||
BuildRequires: ncurses-devel gettext gcc-c++ autoconf
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
Requires: bc
|
Requires: bc
|
||||||
|
@ -34,6 +38,10 @@ is simple but incompatible with other shell languages.
|
||||||
%setup -q -n %{name}-@VERSION@
|
%setup -q -n %{name}-@VERSION@
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?opensuse_bs} && 0%{?rhel} && 0%{?rhel} < 7
|
||||||
|
export CC=gcc48
|
||||||
|
export CXX=g++48
|
||||||
|
%endif
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue