2023.12.30

This commit is contained in:
Sergey Zhemoytel 2024-01-21 23:46:30 +00:00
parent e9ae7164f2
commit 897ec0b91d
2 changed files with 18 additions and 18 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
yt-dlp-2023.12.30.tar.gz: fe662a7007ce63d2817420bb30def5ce7916e3f6 yt-dlp-2023.12.30.tar.gz: 603910501f121ec575e957909a19a3fff1d69eb5

View file

@ -7,15 +7,15 @@ Version: 2023.12.30
Release: 1 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 Source100: yt-dlp.1
BuildRequires: ffmpeg BuildRequires: ffmpeg
BuildRequires: gnupg2 BuildRequires: gnupg2
BuildRequires: pkgconfig(python3) BuildRequires: python38-devel
BuildRequires: python3egg(setuptools) BuildRequires: python38-setuptools
BuildRequires: zip BuildRequires: zip
Requires: python3-%{name} = %{EVRD} Requires: python3-%{name} = %{EVRD}
@ -30,12 +30,12 @@ Provides: youtube-dl = %{EVRD}
BuildArch: noarch 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 %doc README.* LICENSE
%doc README.*
%{_bindir}/%{name} %{_bindir}/%{name}
%{_bindir}/youtube-dl %{_bindir}/youtube-dl
%{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name}
@ -45,32 +45,32 @@ Fork of youtube-dl.
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
%package -n python3-%{name} %package -n python38-%{name}
Summary: Python 3 bindings for %{name} Summary: Python 3 bindings for %{name}
Group: Development/Python Group: Development/Python
BuildArch: noarch BuildArch: noarch
%description -n python3-%{name} %description -n python38-%{name}
This package contains the Python 3 bindings for %{name} (fork of youtube-dl) This package contains the Python 3 bindings for %{name}
(fork of youtube-dl)
%files -n python3-%{name} %files -n python38-%{name}
%license LICENSE %doc README.* LICENSE
%doc README.* %{python38_sitelib}/yt_dlp
%{python3_sitelib}/yt_dlp %{python38_sitelib}/yt_dlp-*-py%{py38_ver}.egg-info
%{python3_sitelib}/yt_dlp-*-py%{py3_ver}.egg-info
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
%prep %prep
%autosetup -p1 -n %{name}-%{version} %setup -qn %{name}
%build %build
# include completions # include completions
make completion-bash completion-zsh completion-fish make completion-bash completion-zsh completion-fish
%py3_build %py38_build
%install %install
%py3_install %py38_install
# force the binary to use python 3 environment by default # force the binary to use python 3 environment by default
sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name} sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name}