2016-12-09 15:38:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package streamlink
|
|
|
|
#
|
2018-06-25 13:08:06 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-12-09 15:38:50 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2017-09-17 14:23:43 +02:00
|
|
|
|
2016-12-09 15:38:50 +01:00
|
|
|
Name: streamlink
|
2019-04-14 02:36:17 +02:00
|
|
|
Version: 1.1.1
|
2016-12-09 15:38:50 +01:00
|
|
|
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
|
2019-04-14 02:36:17 +02:00
|
|
|
# PATCH-FIX-OPENSUSE env-script-interpreter.patch Fix Rpmlint errors.
|
|
|
|
Patch0: env-script-interpreter.patch
|
|
|
|
Recommends: mpv
|
2016-12-09 15:38:50 +01:00
|
|
|
BuildArch: noarch
|
2019-04-14 02:36:17 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-17 14:23:43 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
2016-12-09 15:38:50 +01:00
|
|
|
BuildRequires: python3-devel >= 3.4
|
|
|
|
BuildRequires: python3-setuptools
|
2019-04-14 02:36:17 +02:00
|
|
|
BuildRequires: python3-requests >= 1.0
|
|
|
|
Requires: python3-pycountry
|
2017-03-07 17:13:25 +01:00
|
|
|
Requires: python3-pycryptodome
|
2017-09-17 14:23:43 +02:00
|
|
|
Requires: python3-requests >= 1.0
|
2019-04-14 02:36:17 +02:00
|
|
|
Requires: python3-websocket-client
|
|
|
|
Requires: python3-isodate
|
|
|
|
Requires: python3-PySocks
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%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
|
2019-04-14 02:36:17 +02:00
|
|
|
%patch0 -p1
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-14 02:36:17 +02:00
|
|
|
%python3_build
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%install
|
2019-04-14 02:36:17 +02:00
|
|
|
export STREAMLINK_USE_PYCOUNTRY="true"
|
|
|
|
%python3_install \
|
2016-12-09 15:38:50 +01:00
|
|
|
--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
|
2018-06-25 13:08:06 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS CHANGELOG.md MANIFEST.in README.md
|
2016-12-09 15:38:50 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{python3_sitelib}/%{name}*/
|
|
|
|
|
|
|
|
%changelog
|