From b4f8bcbbe058408fa9c48dfd7d96f167bfcdd86f Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 25 Jan 2022 10:07:39 +0100 Subject: [PATCH] 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 -- 2.44.0