From 253976c0e7236a9a2b2cbb0f5a9a9388cea5bba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 2 Jul 2019 13:57:24 +0200 Subject: [PATCH] Fix shell syntax in the install macro This was the error: /var/tmp/rpm-tmp.UmO2Gv: line 45: syntax error near unexpected token `fi --- macros.pyproject | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/macros.pyproject b/macros.pyproject index db479f3..9c89237 100644 --- a/macros.pyproject +++ b/macros.pyproject @@ -6,13 +6,13 @@ %pyproject_install() %{expand:\\\ %{__python3} -m pip install --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed ./*.whl -if [ -e %{buildroot}%{_bindir} ] -then -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/* +if [ -e %{buildroot}%{_bindir} ]; then + pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/* fi -if [ -e %{buildroot}%{python3_sitelib}] -sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitelib}/*.dist-info/INSTALLER +if [ -e %{buildroot}%{python3_sitelib}]; then + sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitelib}/*.dist-info/INSTALLER +fi +if [ -e %{buildroot}{python3_sitearch}]; then + sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitearch}/*.dist-info/INSTALLER fi -if [ -e %{buildroot}{python3_sitearch}] -sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitearch}/*.dist-info/INSTALLER }