[packages/git-core] switch to python3

atler atler at pld-linux.org
Tue Jan 25 10:08:39 CET 2022


commit b4f8bcbbe058408fa9c48dfd7d96f167bfcdd86f
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 25 10:07:39 2022 +0100

    switch to python3

 git-core.spec | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/git-core.spec b/git-core.spec
index 2c25e84..e99e7b4 100644
--- a/git-core.spec
+++ b/git-core.spec
@@ -57,7 +57,7 @@ BuildRequires:	perl-base
 %if %{with gnome_keyring} || %{with libsecret}
 BuildRequires:	pkgconfig
 %endif
-BuildRequires:	python-devel
+BuildRequires:	python3-devel
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-perlprov >= 4.1-13
 BuildRequires:	rpm-pythonprov
@@ -488,15 +488,14 @@ Dopełnianie parametrów komendy git dla powłoki zsh.
 # we build things in contrib but want to have it clean for doc purporses, too
 cp -a contrib contrib-doc
 
-%{__sed} -i -e '1s|#!/usr/bin/env python$|#!%{__python}|' git-p4.py
-
 %build
 %{__aclocal}
 %{__autoconf}
 %configure \
 	--sysconfdir=%{_sysconfdir}/git-core \
 	%{?with_pcre:--with-libpcre2} \
-	--with-openssl
+	--with-openssl \
+	--with-python="%{__python3}"
 
 echo "BLK_SHA1=1" >> config.mak
 
@@ -651,9 +650,6 @@ ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-https
 ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-ftp
 ln -snf git-remote-http $RPM_BUILD_ROOT%{gitcoredir}/git-remote-ftps
 
-# remove unneeded files
-%py_postclean
-
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
 %find_lang git
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-core.git/commitdiff/b4f8bcbbe058408fa9c48dfd7d96f167bfcdd86f



More information about the pld-cvs-commit mailing list