diff --git a/ranger-1.9.3.tar.gz b/ranger-1.9.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bdd5344b14cb5a338aa14fa798781cbf1c540785 Binary files /dev/null and b/ranger-1.9.3.tar.gz differ diff --git a/ranger.spec b/ranger.spec new file mode 100644 index 0000000000000000000000000000000000000000..0b2bd5d67cba000b47689c181156b6002c36aee9 --- /dev/null +++ b/ranger.spec @@ -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 - 1.9.3-1 +- package init diff --git a/ranger.yaml b/ranger.yaml new file mode 100644 index 0000000000000000000000000000000000000000..18d931f31d1d9741bb4b292093841e40606362e2 --- /dev/null +++ b/ranger.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ranger/ranger +tag_prefix: ^v +separator: .