2021.06.06, clean up

This commit is contained in:
Mikhail Novosyolov 2021-06-07 18:32:46 +03:00
parent 00ee79baf4
commit e4f0ba7dc3
2 changed files with 7 additions and 5 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
youtube-dl-2021.03.03.tar.gz: 5c8658ac94f4891db8cf471c7b755f2e8bd5a456 youtube-dl-2021.06.06.tar.gz: 5072af7496d93cb05c05c6dae4964a75024cf0e4

View file

@ -2,7 +2,7 @@
Summary: Small command-line program to download videos from YouTube Summary: Small command-line program to download videos from YouTube
Name: youtube-dl Name: youtube-dl
Version: 2021.03.03 Version: 2021.06.06
Release: 1 Release: 1
License: Public Domain and GPLv2+ License: Public Domain and GPLv2+
Group: Video Group: Video
@ -23,7 +23,8 @@ Recommends: ffmpeg
Small command-line program to download videos from YouTube and similar sites. Small command-line program to download videos from YouTube and similar sites.
%files %files
%doc LICENSE README.txt %license LICENSE
%doc README.txt
%{_bindir}/%{name} %{_bindir}/%{name}
%{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name}
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
@ -41,7 +42,8 @@ BuildArch: noarch
This package contains the Python 3 bindings for %{name}. This package contains the Python 3 bindings for %{name}.
%files -n python3-%{name} %files -n python3-%{name}
%doc LICENSE README.txt %license LICENSE
%doc README.txt
%{py3_puresitedir}/%{pypi_name} %{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-*-py%{py3_ver}.egg-info %{py3_puresitedir}/%{pypi_name}-*-py%{py3_ver}.egg-info
@ -63,7 +65,7 @@ rm youtube-dl
MANDIR=%{_mandir} MANDIR=%{_mandir}
# force the youtube-dl binary to use python 3 environment by default # force the youtube-dl binary to use python 3 environment by default
sed -i -e 's,#!/usr/bin/env python,#!/usr/bin/env python3,' %{buildroot}%{_bindir}/%{name} sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name}
rm -rf %{buildroot}%{_prefix}/etc rm -rf %{buildroot}%{_prefix}/etc
rm -f %{buildroot}%{_datadir}/doc/youtube_dl/README.txt rm -f %{buildroot}%{_datadir}/doc/youtube_dl/README.txt