Log: Update to 2023.01.06

fixed binaries permits
external manpage no pandoc to generate it yet
spec clean
This commit is contained in:
abfonly (abfonly) 2023-02-12 14:41:21 +01:00
parent c4acc405ff
commit dea934c915
3 changed files with 3517 additions and 8 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
yt-dlp-2022.11.11.tar.gz: b5bcf64c2bf1dd9895005122ad0b7f221e286d54 yt-dlp-2023.01.06.tar.gz: 906f046a901df7038e18ffc6a18e2efdcb42b010

3490
yt-dlp.1 Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,32 +3,39 @@
Summary: Small command-line program to download videos and audio from different websites Summary: Small command-line program to download videos and audio from different websites
Name: yt-dlp Name: yt-dlp
Version: 2022.11.11 Version: 2023.01.06
Release: 2 Release: 1
License: Public Domain and GPLv2+ License: Public Domain and GPLv2+
Group: Video Group: Video
Url: https://github.com/yt-dlp/yt-dlp Url: https://github.com/yt-dlp/yt-dlp
# pure source from Github requires at least pandoc which is not packaged # pure source from Github requires at least pandoc which is not packaged
Source0: https://github.com/yt-dlp/yt-dlp/releases/download/%{version}/yt-dlp.tar.gz?/yt-dlp-%{version}.tar.gz Source0: https://github.com/yt-dlp/yt-dlp/releases/download/%{version}/yt-dlp.tar.gz?/yt-dlp-%{version}.tar.gz
Source100: yt-dlp.1
BuildRequires: ffmpeg BuildRequires: ffmpeg
BuildRequires: gnupg2 BuildRequires: gnupg2
BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools) BuildRequires: python3egg(setuptools)
BuildRequires: zip BuildRequires: zip
BuildArch: noarch
Requires: python3-%{name} = %{EVRD} Requires: python3-%{name} = %{EVRD}
Recommends: ffmpeg Recommends: ffmpeg
# youtube-dl is not developed anymore, it is a fork of it # youtube-dl is not developed anymore, it is a fork of it
Obsoletes: youtube-dl < 2021.10.10 Obsoletes: youtube-dl < 2021.10.10
Provides: youtube-dl = %{EVRD} Provides: youtube-dl = %{EVRD}
BuildArch: noarch
%description %description
Small command-line program to download videos and audio from different websites. Small command-line program to download videos and audio from different websites.
Fork of youtube-dl. Fork of youtube-dl.
%files %files
%license LICENSE %license LICENSE
%doc README.txt %doc README.*
%{_bindir}/%{name} %{_bindir}/%{name}
%{_bindir}/youtube-dl %{_bindir}/youtube-dl
%{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name}
@ -48,16 +55,18 @@ This package contains the Python 3 bindings for %{name} (fork of youtube-dl)
%files -n python3-%{name} %files -n python3-%{name}
%license LICENSE %license LICENSE
%doc README.txt %doc README.*
%{python3_sitelib}/yt_dlp %{python3_sitelib}/yt_dlp
%{python3_sitelib}/yt_dlp-*-py%{py3_ver}.egg-info %{python3_sitelib}/yt_dlp-*-py%{py3_ver}.egg-info
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
%prep %prep
%autosetup -p1 -n %{name} %autosetup -p1
%build %build
# include completions
make completion-bash completion-zsh completion-fish
%py3_build %py3_build
%install %install
@ -67,9 +76,19 @@ This package contains the Python 3 bindings for %{name} (fork of youtube-dl)
sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name} sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name}
# installed as %%doc into standard location # installed as %%doc into standard location
unlink %{buildroot}%{_datadir}/doc/yt_dlp/README.txt # unlink %{buildroot}%{_datadir}/doc/yt_dlp/README.*
rmdir %{buildroot}%{_datadir}/doc/yt_dlp rmdir %{buildroot}%{_datadir}/doc/yt_dlp
rmdir %{buildroot}%{_datadir}/doc rmdir %{buildroot}%{_datadir}/doc
# compat symlink (e.g. mpv can use youtube-dl, but it is not developed anymore) # compat symlink (e.g. mpv can use youtube-dl, but it is not developed anymore)
( cd %{buildroot}%{_bindir} && ln -s %{name} youtube-dl ) ( cd %{buildroot}%{_bindir} && ln -s %{name} youtube-dl )
# fix permits
pushd %{buildroot}%{_bindir}
chmod a+rx yt-dlp youtube-dl
popd
# external man since we don't have pandoc
install -m644 %{SOURCE100} %{buildroot}%{_mandir}/man1/