diff --git a/python-cogapp.changes b/python-cogapp.changes index db6795a..6b743ec 100644 --- a/python-cogapp.changes +++ b/python-cogapp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 5 14:29:56 UTC 2023 - Joan Torres + +- Add .py suffix to avoid conflicts with the cog browser package. + ------------------------------------------------------------------- Mon May 29 11:38:28 UTC 2023 - Daniel Garcia diff --git a/python-cogapp.spec b/python-cogapp.spec index 708e46f..4fc3bda 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -50,23 +50,24 @@ need. %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog -%python_clone -a %{buildroot}%{_bindir}/cog +%python_clone -a %{buildroot}%{_bindir}/cog.py +# remove redundant binary +rm %{buildroot}%{_bindir}/cog %check # reverse -q from addopts in setup.cfg %pytest -v %post -%python_install_alternative cog +%python_install_alternative cog.py %postun -%python_uninstall_alternative cog +%python_uninstall_alternative cog.py %files %{python_files} %license LICENSE.txt %doc README.rst -%python_alternative %{_bindir}/cog +%python_alternative %{_bindir}/cog.py %{python_sitelib}/cogapp %{python_sitelib}/cogapp-%{version}*-info