1 %define pypi_name mps-youtube
2 %define module mps_youtube
3 %define egg_name mps_youtube
4 Summary: Terminal-based YouTube player and downloader
9 Group: Applications/Multimedia
10 Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
11 # Source0-md5: 7560fda429491a41b1a4a20ad9cd3a3b
12 URL: https://github.com/mps-youtube/mps-youtube
13 BuildRequires: python3-modules
14 BuildRequires: python3-setuptools
15 BuildRequires: rpm-pythonprov
16 BuildRequires: rpmbuild(macros) >= 1.714
17 Requires: desktop-file-utils
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This project is based on mps, a terminal based program to search,
23 stream and download music. This implementation uses YouTube as a
24 source of content and can play and download video as well as audio.
25 The pafy library handles interfacing with YouTube.
34 rm -rf $RPM_BUILD_ROOT
38 rm -rf $RPM_BUILD_ROOT
41 %update_desktop_database
44 %update_desktop_database
47 %defattr(644,root,root,755)
48 %doc README.rst CHANGELOG
49 %attr(755,root,root) %{_bindir}/mpsyt
50 %{_desktopdir}/%{name}.desktop
51 %{py3_sitescriptdir}/%{module}
52 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info