david_david

python-livestreamer.spec

Apr 14th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. %define module livestreamer
  2.  
  3. Name: python-%{module}
  4. Version: 1.7.5
  5. Release: %mkrel 1
  6. Summary: CLI for piping video streams to video players
  7. License: BSD
  8. Group: Development/Python
  9. URL: http://livestreamer.tanuki.se/
  10. Source0: https://github.com/chrippa/livestreamer/archive/v%{version}.tar.gz
  11. BuildArch: noarch
  12. BuildRequires: python-setuptools
  13.  
  14. Requires: python-requests
  15.  
  16. %description
  17. Livestreamer is CLI program that extracts streams from various services and
  18. pipes them into a video player of choice.
  19.  
  20. #---------------------------------------------------------------------------
  21.  
  22. %package -n python3-%{module}
  23. Summary: CLI for piping video streams to video players
  24. Group: Development/Python
  25. BuildArch: noarch
  26. BuildRequires: python3-setuptools
  27.  
  28. Requires: python3-requests
  29.  
  30. %description -n python3-%{module}
  31. Livestreamer is CLI program that extracts streams from various services and
  32. pipes them into a video player of choice.
  33. This is the Python 3 build of %{module}.
  34.  
  35. #---------------------------------------------------------------------------
  36.  
  37. %prep
  38. %setup -q -n %{module}-%{version}
  39. cp -a . %{py3dir}
  40.  
  41. %build
  42. pushd %{py3dir}
  43. %{__python3} setup.py build
  44. popd
  45.  
  46. %{__python} setup.py build
  47.  
  48. %install
  49. pushd %{py3dir}
  50. %{__python3} setup.py install --root=%{buildroot} --skip-build
  51. mv %{buildroot}%{_bindir}/livestreamer %{buildroot}%{_bindir}/python3-livestreamer
  52. popd
  53.  
  54. %{__python} setup.py install --root=%{buildroot} --skip-build
  55.  
  56. %files
  57. %doc AUTHORS *.rst LICENSE*
  58. %{_bindir}/%{module}
  59. %{python_sitelib}/%{module}
  60. %{python_sitelib}/%{module}_cli
  61. %{python_sitelib}/%{module}-%{version}-py%{pyver}.egg-info
  62.  
  63. %files -n python3-%{module}
  64. %doc AUTHORS *.rst LICENSE*
  65. %{_bindir}/python3-%{module}
  66. %{python3_sitelib}/%{module}
  67. %{python3_sitelib}/%{module}_cli
  68. %{python3_sitelib}/%{module}-%{version}-py%{py3ver}.egg-info
Add Comment
Please, Sign In to add comment