Fix bad /usr/bin/env substitution.

This commit is contained in:
Jerry James 2016-04-03 10:01:13 -06:00
parent d681cf5ee5
commit 97e1adcc55
1 changed files with 6 additions and 6 deletions

View File

@ -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 <loganjerry@gmail.com> - 1.0-2
- Fix bad /usr/bin/env substitution
* Thu Mar 31 2016 Jerry James <loganjerry@gmail.com> - 1.0-1
- Update to 1.0
- All patches have been upstreamed; drop them all