From 897ec0b91d192008681bab4d30196161d2a27e3c Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Sun, 21 Jan 2024 23:46:30 +0000 Subject: [PATCH] 2023.12.30 --- .abf.yml | 2 +- yt-dlp.spec | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.abf.yml b/.abf.yml index 27e3e58..356ecd1 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - yt-dlp-2023.12.30.tar.gz: fe662a7007ce63d2817420bb30def5ce7916e3f6 + yt-dlp-2023.12.30.tar.gz: 603910501f121ec575e957909a19a3fff1d69eb5 diff --git a/yt-dlp.spec b/yt-dlp.spec index cbc8328..9a823ba 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -7,15 +7,15 @@ Version: 2023.12.30 Release: 1 License: Public Domain and GPLv2+ 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 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: gnupg2 -BuildRequires: pkgconfig(python3) -BuildRequires: python3egg(setuptools) +BuildRequires: python38-devel +BuildRequires: python38-setuptools BuildRequires: zip Requires: python3-%{name} = %{EVRD} @@ -30,12 +30,12 @@ Provides: youtube-dl = %{EVRD} BuildArch: noarch %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. %files -%license LICENSE -%doc README.* +%doc README.* LICENSE %{_bindir}/%{name} %{_bindir}/youtube-dl %{_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} Group: Development/Python BuildArch: noarch -%description -n python3-%{name} -This package contains the Python 3 bindings for %{name} (fork of youtube-dl) +%description -n python38-%{name} +This package contains the Python 3 bindings for %{name} +(fork of youtube-dl) -%files -n python3-%{name} -%license LICENSE -%doc README.* -%{python3_sitelib}/yt_dlp -%{python3_sitelib}/yt_dlp-*-py%{py3_ver}.egg-info +%files -n python38-%{name} +%doc README.* LICENSE +%{python38_sitelib}/yt_dlp +%{python38_sitelib}/yt_dlp-*-py%{py38_ver}.egg-info #----------------------------------------------------------------------------- %prep -%autosetup -p1 -n %{name}-%{version} +%setup -qn %{name} %build # include completions make completion-bash completion-zsh completion-fish -%py3_build +%py38_build %install -%py3_install +%py38_install # force the binary to use python 3 environment by default sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name}