Accepting request 790050 from home:simotek:branches:shells:fish2

- Fix build with gcc10 fix-gcc10-build.patch (boo#1167862)
- Use python3 rather then python2

OBS-URL: https://build.opensuse.org/request/show/790050
OBS-URL: https://build.opensuse.org/package/show/shells/fish?expand=0&rev=48
This commit is contained in:
2020-03-31 09:41:37 +00:00
committed by Git OBS Bridge
parent 69389fb5b0
commit b82d791403
3 changed files with 21 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ License: GPL-2.0-only
Group: System/Shells
URL: https://fishshell.com/
Source: https://github.com/fish-shell/fish-shell/releases/download/%{version}/fish-%{version}.tar.gz
Patch0: fix-gcc10-build.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
@@ -32,7 +33,7 @@ BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: pcre2-devel >= 10.21
BuildRequires: pkgconfig
BuildRequires: python
BuildRequires: python3
Requires: bc
Requires: man
Recommends: terminfo
@@ -52,6 +53,7 @@ This package contains development files for the fish shell.
%prep
%setup -q
%autopatch -p1
# fix E: env-script-interpreter
find share/tools -type f -name *.py -exec sed -i -r '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} +