forked from pool/streamlink
Accepting request 444737 from home:metakcahura:test
Added *.changes file. OBS-URL: https://build.opensuse.org/request/show/444737 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=1
This commit is contained in:
commit
efddd54754
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
streamlink-0.1.0.tar.gz
Normal file
3
streamlink-0.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8284d16622e70e3b56e5f43695c418972c37d6073b21d51d79644405e55b1544
|
||||
size 961634
|
66
streamlink-use-mpv.patch
Normal file
66
streamlink-use-mpv.patch
Normal file
@ -0,0 +1,66 @@
|
||||
diff -ruN a/src/streamlink_cli/argparser.py b/src/streamlink_cli/argparser.py
|
||||
--- a/src/streamlink_cli/argparser.py 2016-11-21 20:56:29.000000000 +0100
|
||||
+++ b/src/streamlink_cli/argparser.py 2016-12-06 13:45:44.026750416 +0100
|
||||
@@ -283,7 +283,7 @@
|
||||
|
||||
"'/path/with spaces/vlc' --file-caching=5000"
|
||||
|
||||
- By default VLC will be used if it can be found in its default
|
||||
+ By default MPV will be used if it can be found in its default
|
||||
location.
|
||||
"""
|
||||
)
|
||||
diff -ruN a/src/streamlink_cli/main.py b/src/streamlink_cli/main.py
|
||||
--- a/src/streamlink_cli/main.py 2016-11-21 20:56:29.000000000 +0100
|
||||
+++ b/src/streamlink_cli/main.py 2016-12-06 13:46:36.067686197 +0100
|
||||
@@ -68,7 +68,7 @@
|
||||
http = namedpipe = None
|
||||
|
||||
if not args.player:
|
||||
- console.exit("The default player (VLC) does not seem to be "
|
||||
+ console.exit("The default player (MPV) does not seem to be "
|
||||
"installed. You must specify the path to a player "
|
||||
"executable with --player.")
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
if not external:
|
||||
if not args.player:
|
||||
- console.exit("The default player (VLC) does not seem to be "
|
||||
+ console.exit("The default player (MPV) does not seem to be "
|
||||
"installed. You must specify the path to a player "
|
||||
"executable with --player.")
|
||||
|
||||
diff -ruN a/src/streamlink_cli/utils/player.py b/src/streamlink_cli/utils/player.py
|
||||
--- a/src/streamlink_cli/utils/player.py 2016-11-21 20:56:29.000000000 +0100
|
||||
+++ b/src/streamlink_cli/utils/player.py 2016-12-06 13:48:25.292985793 +0100
|
||||
@@ -15,23 +15,23 @@
|
||||
def find_default_player():
|
||||
if "darwin" in sys.platform:
|
||||
paths = os.environ.get("PATH", "").split(":")
|
||||
- paths += ["/Applications/VLC.app/Contents/MacOS/"]
|
||||
- paths += ["~/Applications/VLC.app/Contents/MacOS/"]
|
||||
- path = check_paths(("VLC", "vlc"), paths)
|
||||
+ paths += ["/Applications/mpv.app/Contents/MacOS/"]
|
||||
+ paths += ["~/Applications/mpv.app/Contents/MacOS/"]
|
||||
+ path = check_paths(("MPV", "mpv"), paths)
|
||||
elif "win32" in sys.platform:
|
||||
- exename = "vlc.exe"
|
||||
+ exename = "mpv.exe"
|
||||
paths = os.environ.get("PATH", "").split(";")
|
||||
path = check_paths((exename,), paths)
|
||||
|
||||
if not path:
|
||||
- subpath = "VideoLAN\\VLC\\"
|
||||
+ subpath = "MPV\\"
|
||||
envvars = ("PROGRAMFILES", "PROGRAMFILES(X86)", "PROGRAMW6432")
|
||||
paths = filter(None, (os.environ.get(var) for var in envvars))
|
||||
paths = (os.path.join(p, subpath) for p in paths)
|
||||
path = check_paths((exename,), paths)
|
||||
else:
|
||||
paths = os.environ.get("PATH", "").split(":")
|
||||
- path = check_paths(("vlc",), paths)
|
||||
+ path = check_paths(("mpv",), paths)
|
||||
|
||||
if path:
|
||||
# Quote command because it can contain space
|
4
streamlink.changes
Normal file
4
streamlink.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 07 17:10:01 UTC 2016 - josipponjavic@gmail.com
|
||||
|
||||
- Initial package.
|
90
streamlink.spec
Normal file
90
streamlink.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package streamlink
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: streamlink
|
||||
Version: 0.1.0
|
||||
Release: 0
|
||||
Summary: Program to pipe streams from services into a video player
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://streamlink.github.io/
|
||||
Source: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# streamlink-use-mpv.patch -- Use a lighter MPV player by default.
|
||||
Patch0: %{name}-use-mpv.patch
|
||||
Recommends: mpv
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version} > 1310
|
||||
BuildRequires: python3-devel >= 3.4
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-Sphinx
|
||||
Requires: python3-requests >= 1.0
|
||||
%else
|
||||
BuildRequires: python-devel >= 2.7
|
||||
BuildRequires: python-futures
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-singledispatch
|
||||
BuildRequires: python-Sphinx
|
||||
Requires: python-requests >= 1.0
|
||||
%endif
|
||||
|
||||
%description
|
||||
Streamlink is a CLI utility that pipes flash videos
|
||||
from online streaming services to a variety of video players
|
||||
such as MPV, or alternatively, a browser.
|
||||
The main purpose of streamlink is to convert CPU-heavy
|
||||
flash plugins to a less CPU-intensive format.
|
||||
Streamlink is a fork of the livestreamer project.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} > 1310
|
||||
python3 setup.py build
|
||||
%else
|
||||
python2 setup.py build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%{?suse_version} > 1310
|
||||
python3 setup.py install \
|
||||
%else
|
||||
python2 setup.py install \
|
||||
%endif
|
||||
--root=%{buildroot} \
|
||||
--prefix=%{_prefix}
|
||||
|
||||
find %{buildroot}{%{python3_sitelib},%{python_sitelib}} -type f -name '*.py' | while read py; do
|
||||
if [[ "$(head -c2 "$py"; echo)" == "#!" ]]; then
|
||||
chmod a+x "$py"
|
||||
else
|
||||
chmod a-x "$py"
|
||||
fi
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS CHANGELOG.md LICENSE MANIFEST.in README.md
|
||||
%{_bindir}/%{name}
|
||||
%if 0%{?suse_version} > 1310
|
||||
%{python3_sitelib}/%{name}*/
|
||||
%else
|
||||
%{python_sitelib}/%{name}*/
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user