]>
Commit | Line | Data |
---|---|---|
aecf2692 ER |
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 | |
5 | Name: mps-youtube | |
52db69fb | 6 | Version: 0.2.8 |
2b09ad52 | 7 | Release: 5 |
aecf2692 ER |
8 | License: GPL v3 |
9 | Group: Applications/Multimedia | |
10 | Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz | |
52db69fb | 11 | # Source0-md5: 7560fda429491a41b1a4a20ad9cd3a3b |
aecf2692 ER |
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 | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
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. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %py3_build | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | %py3_install | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %post | |
41 | %update_desktop_database | |
42 | ||
43 | %postun | |
44 | %update_desktop_database | |
45 | ||
46 | %files | |
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 |