Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define module livestreamer
- Name: python-%{module}
- Version: 1.7.5
- Release: %mkrel 1
- Summary: CLI for piping video streams to video players
- License: BSD
- Group: Development/Python
- URL: http://livestreamer.tanuki.se/
- Source0: https://github.com/chrippa/livestreamer/archive/v%{version}.tar.gz
- BuildArch: noarch
- BuildRequires: python-setuptools
- Requires: python-requests
- %description
- Livestreamer is CLI program that extracts streams from various services and
- pipes them into a video player of choice.
- #---------------------------------------------------------------------------
- %package -n python3-%{module}
- Summary: CLI for piping video streams to video players
- Group: Development/Python
- BuildArch: noarch
- BuildRequires: python3-setuptools
- Requires: python3-requests
- %description -n python3-%{module}
- Livestreamer is CLI program that extracts streams from various services and
- pipes them into a video player of choice.
- This is the Python 3 build of %{module}.
- #---------------------------------------------------------------------------
- %prep
- %setup -q -n %{module}-%{version}
- cp -a . %{py3dir}
- %build
- pushd %{py3dir}
- %{__python3} setup.py build
- popd
- %{__python} setup.py build
- %install
- pushd %{py3dir}
- %{__python3} setup.py install --root=%{buildroot} --skip-build
- mv %{buildroot}%{_bindir}/livestreamer %{buildroot}%{_bindir}/python3-livestreamer
- popd
- %{__python} setup.py install --root=%{buildroot} --skip-build
- %files
- %doc AUTHORS *.rst LICENSE*
- %{_bindir}/%{module}
- %{python_sitelib}/%{module}
- %{python_sitelib}/%{module}_cli
- %{python_sitelib}/%{module}-%{version}-py%{pyver}.egg-info
- %files -n python3-%{module}
- %doc AUTHORS *.rst LICENSE*
- %{_bindir}/python3-%{module}
- %{python3_sitelib}/%{module}
- %{python3_sitelib}/%{module}_cli
- %{python3_sitelib}/%{module}-%{version}-py%{py3ver}.egg-info
Add Comment
Please, Sign In to add comment