From bbee3c4365132600b0d6790d5a8b96a85252ca8a Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Thu, 25 Jul 2013 14:04:07 +0200 Subject: [PATCH] Patching shebang to force python3 (#987036) --- ps_mem.spec | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/ps_mem.spec b/ps_mem.spec index d997e46..cb3cc19 100644 --- a/ps_mem.spec +++ b/ps_mem.spec @@ -1,18 +1,19 @@ -Name: ps_mem -Version: 3.1 -Release: 2%{?dist} -Summary: Memory profiling tool -Group: Applications/System -License: LGPLv2 -URL: https://github.com/pixelb/scripts +Name: ps_mem +Version: 3.1 +Release: 3%{?dist} +Summary: Memory profiling tool +Group: Applications/System +License: LGPLv2 +URL: https://github.com/pixelb/scripts -Source0: https://raw.github.com/pixelb/scripts/961ff24c805a474080520403409872b04e18f4d9/scripts/ps_mem.py -Source1: http://www.gnu.org/licenses/lgpl-2.1.txt +Source0: https://raw.github.com/pixelb/scripts/961ff24c805a474080520403409872b04e18f4d9/scripts/ps_mem.py +Source1: http://www.gnu.org/licenses/lgpl-2.1.txt -BuildArch: noarch +BuildArch: noarch -Requires: python2 +Requires: python3 +BuildRequires: python3-devel %description @@ -27,6 +28,8 @@ selects the most accurate method available for the running kernel. cp -p %{SOURCE0} %{name} cp -p %{SOURCE1} LICENSE +# force python3 +sed -i "s|/usr/bin/env python|%{__python3}|" %{name} %install install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name} @@ -38,6 +41,9 @@ install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name} %changelog +* Thu Jul 25 2013 Jaromir Capik - 3.1-3 +- Patching shebang to force python3 (#987036) + * Thu May 30 2013 Jaromir Capik - 3.1-2 - Preserving file timestamps