mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e8f927bb83 | |||
| 42bc909cf3 |
@@ -9,13 +9,16 @@ Summary: A command-line program to download videos from online video plat
|
|||||||
License: Unlicense
|
License: Unlicense
|
||||||
URL: https://github.com/yt-dlp/yt-dlp
|
URL: https://github.com/yt-dlp/yt-dlp
|
||||||
# License of the specfile
|
# License of the specfile
|
||||||
Source: https://src.fedoraproject.org/rpms/yt-dlp/raw/rawhide/f/yt-dlp.spec.license
|
Source0: https://src.fedoraproject.org/rpms/yt-dlp/raw/rawhide/f/yt-dlp.spec.license
|
||||||
|
# Downgrade websockets version requirement on <= 41
|
||||||
|
Patch1: https://src.fedoraproject.org/rpms/yt-dlp/raw/6308364583e19fe367ca9be500e8c3a9366ff10c/f/0001-Revert-rh-websockets-Upgrade-websockets-to-13.0-1081.patch
|
||||||
|
# Downgrade requests version requirement on 40
|
||||||
|
Patch2: https://src.fedoraproject.org/rpms/yt-dlp/raw/b8d3a225839bf53a4d53cc79ee8cbb0a7640dafd/f/0002-Revert-rh-requests-Bump-minimum-requests-version-to-.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(hatchling)
|
BuildRequires: anda-srpm-macros
|
||||||
BuildRequires: python3dist(pip)
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
# Needed for %%check
|
# Needed for %%check
|
||||||
@@ -26,7 +29,7 @@ BuildRequires: %{py3_dist pytest}
|
|||||||
BuildRequires: pandoc
|
BuildRequires: pandoc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
BuildRequires: anda-srpm-macros
|
Requires: yt-dlp-git+default = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
# ffmpeg-free is now available in Fedora.
|
# ffmpeg-free is now available in Fedora.
|
||||||
Recommends: /usr/bin/ffmpeg
|
Recommends: /usr/bin/ffmpeg
|
||||||
@@ -90,14 +93,18 @@ Fish command line completion support for %{name}.
|
|||||||
|
|
||||||
# Remove unnecessary shebangs
|
# Remove unnecessary shebangs
|
||||||
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
|
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
|
||||||
# Relax version constraints
|
|
||||||
sed -i 's@"\(requests\|urllib3\|websockets\)>=.*"@"\1"@' pyproject.toml
|
%if 0%{?fedora} <= 41
|
||||||
|
%autopatch 1 -p1
|
||||||
|
%endif
|
||||||
|
%if 0%{?fedora} = 40
|
||||||
|
%autopatch 2 -p1
|
||||||
|
|
||||||
# Update version number
|
# Update version number
|
||||||
%{python3} devscripts/update-version.py %{version} -c master -r yt-dlp/yt-dlp-master-builds
|
%{python3} devscripts/update-version.py %{version} -c master -r yt-dlp/yt-dlp-master-builds
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -r
|
%pyproject_buildrequires -x default,curl-cffi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Docs and shell completions
|
# Docs and shell completions
|
||||||
@@ -119,7 +126,7 @@ make yt-dlp.1 completion-bash completion-zsh completion-fish
|
|||||||
%files -f %{pyproject_files}
|
%files -f %{pyproject_files}
|
||||||
%{_bindir}/yt-dlp
|
%{_bindir}/yt-dlp
|
||||||
%{_mandir}/man1/yt-dlp.1*
|
%{_mandir}/man1/yt-dlp.1*
|
||||||
%doc README.md
|
%doc README.md Changelog.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%files bash-completion
|
%files bash-completion
|
||||||
@@ -131,5 +138,7 @@ make yt-dlp.1 completion-bash completion-zsh completion-fish
|
|||||||
%files fish-completion
|
%files fish-completion
|
||||||
%{fish_completions_dir}/yt-dlp.fish
|
%{fish_completions_dir}/yt-dlp.fish
|
||||||
|
|
||||||
|
%pyproject_extras_subpkg -n yt-dlp-git default
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|||||||
Reference in New Issue
Block a user