Switch back to Python 2

epel9
Andy Lutomirski 11 years ago
parent ee9b4e39a1
commit 85febc7ff7

@ -3,7 +3,7 @@ diff -up fish-2.1.0/share/tools/create_manpage_completions.py.orig fish-2.1.0/sh
+++ fish-2.1.0/share/tools/create_manpage_completions.py 2013-12-13 09:35:05.528351152 -0800 +++ fish-2.1.0/share/tools/create_manpage_completions.py 2013-12-13 09:35:05.528351152 -0800
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#!/usr/bin/env python -#!/usr/bin/env python
+#!/usr/bin/python3 +#!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Run me like this: ./create_manpage_completions.py /usr/share/man/man{1,8}/* > man_completions.fish # Run me like this: ./create_manpage_completions.py /usr/share/man/man{1,8}/* > man_completions.fish
@ -12,7 +12,7 @@ diff -up fish-2.1.0/share/tools/deroff.py.orig fish-2.1.0/share/tools/deroff.py
+++ fish-2.1.0/share/tools/deroff.py 2013-12-13 09:35:26.421351108 -0800 +++ fish-2.1.0/share/tools/deroff.py 2013-12-13 09:35:26.421351108 -0800
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#!/usr/bin/env python -#!/usr/bin/env python
+#!/usr/bin/python3 +#!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" Deroff.py, ported to Python from the venerable deroff.c """ """ Deroff.py, ported to Python from the venerable deroff.c """
@ -21,7 +21,7 @@ diff -up fish-2.1.0/share/tools/web_config/webconfig.py.orig fish-2.1.0/share/to
+++ fish-2.1.0/share/tools/web_config/webconfig.py 2013-12-13 09:35:32.681351122 -0800 +++ fish-2.1.0/share/tools/web_config/webconfig.py 2013-12-13 09:35:32.681351122 -0800
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#!/usr/bin/env python -#!/usr/bin/env python
+#!/usr/bin/python3 +#!/usr/bin/python
# Whether we're Python 2 # Whether we're Python 2
import sys, os import sys, os

@ -1,6 +1,6 @@
Name: fish Name: fish
Version: 2.1.0 Version: 2.1.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: A friendly interactive shell Summary: A friendly interactive shell
Group: System Environment/Shells Group: System Environment/Shells
@ -9,12 +9,9 @@ URL: http://fishshell.com/
Source0: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz Source0: http://fishshell.com/files/%{version}/fish-%{version}.tar.gz
Patch0: fish-remove-usr-local.patch Patch0: fish-remove-usr-local.patch
Patch1: fish-add-link-cxxflags.patch Patch1: fish-add-link-cxxflags.patch
Patch2: fish-use-python3.patch Patch2: fish-use-usrbinpython.patch
BuildRequires: ncurses-devel gettext groff doxygen python3 BuildRequires: ncurses-devel gettext groff doxygen
# brp-python-bytecompile doesn't parse script #! lines...
%global __python %{__python3}
%description %description
fish is a fully-equipped command line shell (like bash or zsh) that is fish is a fully-equipped command line shell (like bash or zsh) that is
@ -29,7 +26,8 @@ nothing to learn or configure.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
# This requires Python2, but nothing uses it. # This is unused. If we fiddle with Python versions, its presence will
# be confusing.
rm create_wajig_completions.py rm create_wajig_completions.py
@ -79,6 +77,9 @@ fi
%changelog %changelog
* Fri Dec 20 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-6
- Switch back to Python 2
* Fri Dec 20 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-5 * Fri Dec 20 2013 Andy Lutomirski <luto@mit.edu> - 2.1.0-5
- Add BR: python3 (for __pycache__) - Add BR: python3 (for __pycache__)
- Remove --without-xsel: fish dropped it in favor of a runtime check - Remove --without-xsel: fish dropped it in favor of a runtime check

Loading…
Cancel
Save