!3 兼容性生态引入需求包you-get
From: @wu-leilei Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
9709c2a9ff
BIN
you-get-0.4.1527.tar.gz
Normal file
BIN
you-get-0.4.1527.tar.gz
Normal file
Binary file not shown.
86
you-get.spec
Normal file
86
you-get.spec
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
Name: you-get
|
||||||
|
Version: 0.4.1527
|
||||||
|
Release: 1
|
||||||
|
Summary: Dumb downloader that scrapes the web
|
||||||
|
License: MIT
|
||||||
|
URL: https://you-get.org
|
||||||
|
Source0: https://github.com/soimort/you-get/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: bash-completion
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: fish
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: zsh
|
||||||
|
Requires: ffmpeg
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
You-Get is a command-line utility to download media contents
|
||||||
|
(videos, audios, images) from the Web, in case there is no other
|
||||||
|
handy way to do it.
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion for %{name}
|
||||||
|
Requires: bash-completion
|
||||||
|
Supplements: packageand(%{name}:bash)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Bash command line completion support for %{name}.
|
||||||
|
|
||||||
|
%package fish-completion
|
||||||
|
Summary: Fish completion for %{name}
|
||||||
|
Requires: fish
|
||||||
|
Supplements: packageand(%{name}:fish)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description fish-completion
|
||||||
|
Fish command line completion support for %{name}.
|
||||||
|
|
||||||
|
%package zsh-completion
|
||||||
|
Summary: Zsh Completion for %{name}
|
||||||
|
Requires: zsh
|
||||||
|
Supplements: packageand(%{name}:zsh)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description zsh-completion
|
||||||
|
ZSH command line completion support for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
# remove shebang
|
||||||
|
for f in $(find ./src -name "*.py"); do
|
||||||
|
sed '0,/^#!/{//d;}' -i ${f}
|
||||||
|
done
|
||||||
|
# fix interpreter
|
||||||
|
sed -i 's|^#!/usr/bin/env python3|#!%{_bindir}/python3|' you-get
|
||||||
|
|
||||||
|
%build
|
||||||
|
python3 setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||||
|
install -m0755 you-get %{buildroot}%{_bindir}
|
||||||
|
%fdupes -s %{buildroot}%{python3_sitelib}
|
||||||
|
install -Dm644 contrib/completion/you-get-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/you-get
|
||||||
|
install -Dm644 contrib/completion/you-get.fish %{buildroot}%{_datadir}/fish/completions/you-get.fish
|
||||||
|
install -Dm644 contrib/completion/_you-get %{buildroot}%{_datadir}/zsh/site-functions/_you-get
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc CHANGELOG.rst README.rst
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{_bindir}/you-get
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%{_datadir}/bash-completion/completions/you-get
|
||||||
|
|
||||||
|
%files fish-completion
|
||||||
|
%{_datadir}/fish/completions/you-get.fish
|
||||||
|
|
||||||
|
%files zsh-completion
|
||||||
|
%{_datadir}/zsh/site-functions/_you-get
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jun 30 2021 wulei <wulei80@huawei.com> - 0.4.1527-1
|
||||||
|
- Package init
|
||||||
4
you-get.yaml
Normal file
4
you-get.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: soimort/you-get
|
||||||
|
tag_prefix: v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user