From 1c8bc681233fb88f403c840ae9be440e5caec246 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Sep 05 2019 17:50:33 +0000 Subject: use python3 --- diff --git a/kde-dev-scripts.spec b/kde-dev-scripts.spec index 057c497..0c05860 100644 --- a/kde-dev-scripts.spec +++ b/kde-dev-scripts.spec @@ -1,7 +1,7 @@ Name: kde-dev-scripts Summary: KDE SDK scripts Version: 19.04.3 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and GPLv2+ and BSD URL: https://cgit.kde.org/%{name}.git @@ -18,8 +18,7 @@ BuildRequires: extra-cmake-modules BuildRequires: cmake(KF5DocTools) BuildRequires: perl-generators -# for python2-rpm-macros -BuildRequires: python2-devel +BuildRequires: python3 # for env replacement in %%install BuildRequires: sed @@ -48,7 +47,7 @@ pushd %{_target_platform} %{cmake_kf5} .. popd -make %{?_smp_mflags} -C %{_target_platform} +%make_build -C %{_target_platform} %install @@ -62,8 +61,8 @@ sed -i \ -e "s|^#! /usr/bin/env bash|#!/bin/bash|g" \ -e "s|^#!/usr/bin/env perl|#!/usr/bin/perl|g" \ -e "s|^#! /usr/bin/env perl|#!/usr/bin/perl|g" \ - -e "s|^#!/usr/bin/env python$|#!%{__python2}|g" \ - -e "s|^#! /usr/bin/env python$|#!%{__python2}|g" \ + -e "s|^#!/usr/bin/env python$|#!%{__python3}|g" \ + -e "s|^#! /usr/bin/env python$|#!%{__python3}|g" \ %{buildroot}%{_kf5_bindir}/* # unpackaged files @@ -160,6 +159,9 @@ test -n "$(grep "/usr/bin/env" %{buildroot}%{_kf5_bindir}/* 2> /dev/null )" ||: %changelog +* Thu Sep 05 2019 Rex Dieter - 19.04.3-3 +- use python3 + * Thu Jul 25 2019 Fedora Release Engineering - 19.04.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild