From b12e77defb8645f88c24a54bb720f3cee12127ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 17 May 2018 12:34:56 +0200 Subject: [PATCH] Drop py3dir, shebang sed --- python-sure.spec | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/python-sure.spec b/python-sure.spec index e8de288..6bed737 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -73,21 +73,13 @@ heavily inspired by should.js. # Remove bundled egg-info rm -rf %{pypi_name}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/bin/env python|#!%{__python3}|' -%endif # with_python3 - %build %{?scl:scl enable %{scl} "} %py2_build %{?scl:"} %if 0%{with_python3} -pushd %{py3dir} -LANG=en_US.utf8 %py3_build -popd +%py3_build %endif %install @@ -96,9 +88,7 @@ popd %{?scl:"} %if 0%{?with_python3} -pushd %{py3dir} -LANG=en_US.utf8 %py3_install -popd +%py3_install %endif # with_python3 %check @@ -107,9 +97,7 @@ popd %{?scl:"} %if 0%{?with_python3} -pushd %{py3dir} %{__python3} -m nose --verbosity 2 -popd %endif # with_python3 %files -n python2-%{pypi_name} @@ -127,6 +115,8 @@ popd %changelog * Thu May 17 2018 Miro HronĨok - 1.4.10-1 - Updated to 1.4.10 that supports Python 3.7 (#1578530) +- Stop py3dir pushd/popd, it is not needed +- Removed an unneeded shebeng sed * Fri Feb 09 2018 Fedora Release Engineering - 1.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild