diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ranger-fm.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/ranger-fm-1.9.3.tar.gz diff --git a/python-ranger-fm.spec b/python-ranger-fm.spec new file mode 100644 index 0000000..52505b2 --- /dev/null +++ b/python-ranger-fm.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ranger-fm +Version: 1.9.3 +Release: 1 +Summary: Vim-like file manager +License: GPL3 +URL: https://ranger.github.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7e/19/a7d9bb8646f87df5a3126fc385e45c04e55639c0576d31351083cb02f248/ranger-fm-1.9.3.tar.gz +BuildArch: noarch + + +%description +A console file manager with VI key bindings. + +It provides a minimalistic and nice curses interface with a view on the +directory hierarchy. The secondary task of ranger is to figure out which +program you want to use to open your files with. + + +%package -n python3-ranger-fm +Summary: Vim-like file manager +Provides: python-ranger-fm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ranger-fm +A console file manager with VI key bindings. + +It provides a minimalistic and nice curses interface with a view on the +directory hierarchy. The secondary task of ranger is to figure out which +program you want to use to open your files with. + + +%package help +Summary: Development documents and examples for ranger-fm +Provides: python3-ranger-fm-doc +%description help +A console file manager with VI key bindings. + +It provides a minimalistic and nice curses interface with a view on the +directory hierarchy. The secondary task of ranger is to figure out which +program you want to use to open your files with. + + +%prep +%autosetup -n ranger-fm-1.9.3 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-ranger-fm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.9.3-1 +- Package Spec generated @@ -0,0 +1 @@ +6228aefd1959d586e15091758df223f6 ranger-fm-1.9.3.tar.gz |