!2 引入兼容性生态需求包ranger
From: @cherry530 Reviewed-by: @myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
6cdb737fde
BIN
ranger-1.9.3.tar.gz
Normal file
BIN
ranger-1.9.3.tar.gz
Normal file
Binary file not shown.
42
ranger.spec
Normal file
42
ranger.spec
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Name: ranger
|
||||||
|
Version: 1.9.3
|
||||||
|
Release: 1
|
||||||
|
Summary: A vim-like file manager
|
||||||
|
License: GPLv3+
|
||||||
|
URL: https://ranger.github.io/
|
||||||
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: desktop-file-utils python3-devel python3-setuptools
|
||||||
|
%description
|
||||||
|
Ranger is a free console file manager that gives you greater flexibility and a
|
||||||
|
good overview of your files without having to leave your *nix console. It
|
||||||
|
visualizes the directory tree in two dimensions: the directory hierarchy on
|
||||||
|
one, lists of files on the other, with a preview to the right so you know where
|
||||||
|
you'll be going.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
sed -i -e '1d;2i#!/usr/bin/python3' %{name}.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
||||||
|
mv %{buildroot}%{_pkgdocdir} _doc
|
||||||
|
find _doc -type f -exec chmod -R -x '{}' \;
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc _doc/*
|
||||||
|
%{_bindir}/ranger
|
||||||
|
%{_bindir}/rifle
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
%{_datadir}/applications/ranger.desktop
|
||||||
|
%{_mandir}/man1/ranger.1*
|
||||||
|
%{_mandir}/man1/rifle.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 21 2021 xuping <xuping33@huawei.com> - 1.9.3-1
|
||||||
|
- package init
|
||||||
4
ranger.yaml
Normal file
4
ranger.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: ranger/ranger
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user