From ff66cb6b3011ef1963fec4085bf0742f0f27b3b2 Mon Sep 17 00:00:00 2001 From: Carl George Date: Apr 11 2022 21:24:00 +0000 Subject: Minor corrections for building without ptipython --- diff --git a/ptpython.spec b/ptpython.spec index 208b7f1..bf4297c 100644 --- a/ptpython.spec +++ b/ptpython.spec @@ -49,10 +49,13 @@ find -name \*.py | xargs sed -i -e '1 {/^#!\//d}' %install %pyproject_install %pyproject_save_files %{name} +%if %{without ptipython} +rm %{buildroot}%{_bindir}/ptipython* +%endif %check -%pyproject_check_import -e ptpython.contrib.asyncssh_repl +%pyproject_check_import -e ptpython.contrib.asyncssh_repl %{!?with_ptipython:-e ptpython.ipython} %files -n ptpython3 -f %{pyproject_files}