]>
Commit | Line | Data |
---|---|---|
dea2a91e JP |
1 | Summary: A youtube-dl fork with additional features and fixes |
2 | Name: yt-dlp | |
c09f8b1b | 3 | Version: 2022.08.14 |
66944181 | 4 | Release: 1 |
dea2a91e JP |
5 | License: Public Domain |
6 | Group: Applications/System | |
7 | Source0: https://github.com/yt-dlp/yt-dlp/archive/%{version}/%{name}-%{version}.tar.gz | |
c09f8b1b JP |
8 | # Source0-md5: 405ecebddf10ca44ea6c6dedf00277a1 |
9 | Patch0: no-install-devscripts.patch | |
dea2a91e | 10 | URL: https://github.com/yt-dlp/yt-dlp |
43df0b2d | 11 | BuildRequires: python3-modules >= 1:3.7 |
dea2a91e JP |
12 | BuildRequires: python3-setuptools |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.720 | |
43df0b2d | 15 | Requires: python3-modules >= 1:3.7 |
dea2a91e JP |
16 | Requires: python3-setuptools |
17 | Requires: python3-%{name} = %{version}-%{release} | |
18 | Suggests: ffmpeg | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The | |
24 | main focus of this project is adding new features and patches while | |
25 | also keeping up to date with the original project. | |
26 | ||
27 | %package -n python3-%{name} | |
28 | Summary: Python 3 video extraction utility for YouTube | |
29 | Group: Libraries/Python | |
30 | Requires: python3-pyxattr >= 0.5.0 | |
31 | ||
32 | %description -n python3-%{name} | |
33 | Python 3 video extraction utility for YouTube. | |
34 | ||
35 | %prep | |
36 | %setup -q | |
c09f8b1b | 37 | %patch0 -p1 |
dea2a91e JP |
38 | |
39 | %build | |
40 | %py3_build | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %py3_install | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc README.md LICENSE | |
53 | %attr(755,root,root) %{_bindir}/yt-dlp | |
54 | ||
55 | %files -n python3-%{name} | |
56 | %defattr(644,root,root,755) | |
57 | %{py3_sitescriptdir}/yt_dlp | |
58 | %{py3_sitescriptdir}/yt_dlp-*-py*.egg-info |