From 97e1adcc5503b1c8060a16a4724294b601438723 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Apr 03 2016 16:01:13 +0000 Subject: Fix bad /usr/bin/env substitution. --- diff --git a/sympy.spec b/sympy.spec index 849fc4a..e106166 100644 --- a/sympy.spec +++ b/sympy.spec @@ -1,6 +1,6 @@ Name: sympy Version: 1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Python library for symbolic mathematics License: BSD URL: http://sympy.org/ @@ -90,8 +90,8 @@ HTML documentation for sympy. %setup -q -c # Do not depend on env -for fil in $(grep -Frl "%{_bindir}/env python" .); do - sed -i.orig 's,%{_bindir}/env python,%{_bindir}/python,' $fil +for fil in $(grep -rl "^#\![[:blank:]]*%{_bindir}/env" .); do + sed -i.orig 's,^\(#\![[:blank:]]*%{_bindir}/\)env ,\1,' $fil touch -r $fil.orig $fil rm -f $fil.orig done @@ -130,9 +130,6 @@ popd # Install the python3 version pushd python3 %py3_install -sed -i 's,%{_bindir}/python,&3,' %{buildroot}%{_bindir}/isympy -chmod a+x %{buildroot}%{_bindir}/isympy -touch -r bin/isympy %{buildroot}%{_bindir}/isympy mv %{buildroot}%{_bindir}/isympy %{buildroot}%{_bindir}/python3-isympy mv %{buildroot}%{_mandir}/man1/isympy.1 \ %{buildroot}%{_mandir}/man1/python3-isympy.1 @@ -209,6 +206,9 @@ popd %{_docdir}/%{name}-doc/html %changelog +* Sat Apr 2 2016 Jerry James - 1.0-2 +- Fix bad /usr/bin/env substitution + * Thu Mar 31 2016 Jerry James - 1.0-1 - Update to 1.0 - All patches have been upstreamed; drop them all