streamlink/env-script-interpreter.patch
Simon Puchert 445fd18e40 Accepting request 693969 from home:simonpuchert:branches:multimedia:apps
- Make the package actually installable.
- Update to version 1.1.1.
- Use python-rpm-macros.
- Fix Rpmlint errors.

OBS-URL: https://build.opensuse.org/request/show/693969
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=7
2019-04-14 00:36:17 +00:00

136 lines
6.1 KiB
Diff

diff -Nur streamlink-1.1.1/docs/conf.py streamlink-1.1.1-patched/docs/conf.py
--- streamlink-1.1.1/docs/conf.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/docs/conf.py 2019-04-11 22:39:18.623031000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
diff -Nur streamlink-1.1.1/examples/gst-player.py streamlink-1.1.1-patched/examples/gst-player.py
--- streamlink-1.1.1/examples/gst-player.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/examples/gst-player.py 2019-04-11 22:38:39.482620126 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from __future__ import print_function
diff -Nur streamlink-1.1.1/examples/opencv-face.py streamlink-1.1.1-patched/examples/opencv-face.py
--- streamlink-1.1.1/examples/opencv-face.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/examples/opencv-face.py 2019-04-11 22:38:33.290555139 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
import logging
import sys
import streamlink
diff -Nur streamlink-1.1.1/script/github_releases.py streamlink-1.1.1-patched/script/github_releases.py
--- streamlink-1.1.1/script/github_releases.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/script/github_releases.py 2019-04-11 22:38:47.690706278 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import argparse
import logging
import re
diff -Nur streamlink-1.1.1/setup.py streamlink-1.1.1-patched/setup.py
--- streamlink-1.1.1/setup.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/setup.py 2019-04-11 22:38:20.634422322 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import codecs
from os import environ, path
from sys import argv, path as sys_path
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/error.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/error.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/error.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/error.py 2019-04-11 22:39:06.322901865 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
class FLVError(Exception):
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/f4v.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/f4v.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/f4v.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/f4v.py 2019-04-11 22:39:00.578841564 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from .box import Box, RawPayload
from .compat import is_py2
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/flv.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/flv.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/flv.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/flv.py 2019-04-11 22:38:54.026772785 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from .error import FLVError
from .compat import is_py2
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/__init__.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/__init__.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/__init__.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/__init__.py 2019-04-11 22:39:25.883107228 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from .error import *
from .amf import *
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/packet.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/packet.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/packet.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/packet.py 2019-04-11 22:38:26.898488057 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import struct
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/tag.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/tag.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/tag.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/tag.py 2019-04-11 22:37:41.630013107 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from ctypes import BigEndianStructure, Union, c_uint8
from io import BytesIO
diff -Nur streamlink-1.1.1/src/streamlink/packages/flashmedia/util.py streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/util.py
--- streamlink-1.1.1/src/streamlink/packages/flashmedia/util.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/packages/flashmedia/util.py 2019-04-11 22:37:20.297789373 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
from .compat import bytes, is_py2, string_types
diff -Nur streamlink-1.1.1/src/streamlink/plugins/dash.py streamlink-1.1.1-patched/src/streamlink/plugins/dash.py
--- streamlink-1.1.1/src/streamlink/plugins/dash.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/plugins/dash.py 2019-04-11 22:39:11.970961161 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import re
diff -Nur streamlink-1.1.1/src/streamlink/plugins/tv3cat.py streamlink-1.1.1-patched/src/streamlink/plugins/tv3cat.py
--- streamlink-1.1.1/src/streamlink/plugins/tv3cat.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/plugins/tv3cat.py 2019-04-11 22:37:34.937942913 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import logging
import re
diff -Nur streamlink-1.1.1/src/streamlink/plugins/tvplayer.py streamlink-1.1.1-patched/src/streamlink/plugins/tvplayer.py
--- streamlink-1.1.1/src/streamlink/plugins/tvplayer.py 2019-04-02 23:37:45.000000000 +0200
+++ streamlink-1.1.1-patched/src/streamlink/plugins/tvplayer.py 2019-04-11 22:37:26.373853093 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import re
from streamlink.plugin import Plugin, PluginArguments, PluginArgument