[packages/ranger] switch to python3; rel 2

atler atler at pld-linux.org
Tue Jan 12 22:04:22 CET 2021


commit 89bec9ec7820486ff7bce572f531f200150e00f4
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 12 22:02:49 2021 +0100

    switch to python3; rel 2

 ranger.spec | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)
---
diff --git a/ranger.spec b/ranger.spec
index 033f827..35e4a3a 100644
--- a/ranger.spec
+++ b/ranger.spec
@@ -2,14 +2,14 @@ Summary:	A simple, vim-like file manager
 Summary(hu.UTF-8):	Egyszerű, vim-szerű fájlkezelő
 Name:		ranger
 Version:	1.9.3
-Release:	1
+Release:	2
 License:	GPL v3
 Group:		Applications/Shells
 Source0:	https://ranger.github.io/%{name}-%{version}.tar.gz
 # Source0-md5:	d491987cd9fb06bee100264cfea55d26
 URL:		https://ranger.github.io/
-BuildRequires:	python-modules
-BuildRequires:	python-setuptools
+BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	sed >= 4.0
@@ -33,8 +33,7 @@ Egyszerű, vim-szerű fájlkezelő.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py_install
-%py_postclean
+%py3_install
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -51,21 +50,20 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/%{name}
 %attr(755,root,root) %{_bindir}/rifle
 %{_desktopdir}/ranger.desktop
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/ranger_fm-%{version}-py2.7.egg-info
-%endif
-%dir %{py_sitescriptdir}/ranger
-%{py_sitescriptdir}/ranger/api
-%{py_sitescriptdir}/ranger/colorschemes
-%{py_sitescriptdir}/ranger/config
-%{py_sitescriptdir}/ranger/container
-%{py_sitescriptdir}/ranger/core
-%dir %{py_sitescriptdir}/ranger/data
-%{py_sitescriptdir}/ranger/data/mime.types
-%attr(755,root,root) %{py_sitescriptdir}/ranger/data/scope.sh
-%{py_sitescriptdir}/ranger/ext
-%{py_sitescriptdir}/ranger/gui
-%{py_sitescriptdir}/ranger/*.py[co]
+%{py3_sitescriptdir}/ranger_fm-%{version}-py*.egg-info
+%dir %{py3_sitescriptdir}/ranger
+%{py3_sitescriptdir}/ranger/*.py
+%{py3_sitescriptdir}/ranger/__pycache__
+%{py3_sitescriptdir}/ranger/api
+%{py3_sitescriptdir}/ranger/colorschemes
+%{py3_sitescriptdir}/ranger/config
+%{py3_sitescriptdir}/ranger/container
+%{py3_sitescriptdir}/ranger/core
+%dir %{py3_sitescriptdir}/ranger/data
+%{py3_sitescriptdir}/ranger/data/mime.types
+%attr(755,root,root) %{py3_sitescriptdir}/ranger/data/scope.sh
+%{py3_sitescriptdir}/ranger/ext
+%{py3_sitescriptdir}/ranger/gui
 %{_mandir}/man1/ranger.1*
 %{_mandir}/man1/rifle.1*
 %{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ranger.git/commitdiff/89bec9ec7820486ff7bce572f531f200150e00f4



More information about the pld-cvs-commit mailing list